MonkeyCanCode opened a new pull request, #2154:
URL: https://github.com/apache/polaris/pull/2154

   Enable request tracing via money patching:
   
   Original:
   ```
   ➜  polaris git:(python_client_debug_flag) ./polaris --profile dev principals 
list
   {"name": "root", "clientId": "root", "properties": {}, "createTimestamp": 
1753151091780, "lastUpdateTimestamp": 1753151091780, "entityVersion": 1}
   ```
   
   With debug mode (dummy password from the getting start example):
   ```
   ➜  polaris git:(python_client_debug_flag) ./polaris --profile dev --debug 
principals list
   Request: POST http://localhost:8181/api/catalog/v1/oauth/tokens
   Headers: HTTPHeaderDict({'Content-Type': 
'application/x-www-form-urlencoded'})
   Body: 
grant_type=client_credentials&client_id=root&client_secret=s3cr3t&scope=PRINCIPAL_ROLE%3AALL
   
   Request: GET http://localhost:8181/api/management/v1/principals
   Headers: {'Accept': 'application/json', 'User-Agent': 
'OpenAPI-Generator/1.0.0/python', 'Authorization': 'Bearer 
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJwb2xhcmlzIiwic3ViIjoiMSIsImlhdCI6MTc1MzE1NjUwMiwiZXhwIjoxNzUzMTYwMTAyLCJqdGkiOiIyMjc3NTc4Yi1mOGQ2LTQ3NjctODc2Yy0xZjg0YjVhOTFjOWIiLCJhY3RpdmUiOnRydWUsImNsaWVudF9pZCI6InJvb3QiLCJwcmluY2lwYWxJZCI6MSwic2NvcGUiOiJQUklOQ0lQQUxfUk9MRTpBTEwifQ.CXHMjqgGtGZZ9hUtS_Tqi4hr2Zt5kIdifqWVH0sWO2Ycbju3J6f4KWu4TgBB7FT6PQUbFqIAZiNBOAkZRpCDygUPEZ3-bt3cbTt9LWfkQYRXFnJF7-fM42zSK3Go7t1AVfYShDLozexgBvZGg700SYdcffKdCpARke7IX8VjLl_0uqZ4ygtjWwmoIHxfVH8WCTXajdvTOH7MF6aPgdVr5_y4KiCfZoTu5DG9gSJLYYAu1sVfUtQ07hGWs6wJUENLt9ZBjBBJI80Um70Oq3U508MC4y10FBWIKRrs8655le976TfcRjY_BPxpJaekBQIrxP7qz1hqP8XGSPRuFTgWbQ'}
   
   {"name": "root", "clientId": "root", "properties": {}, "createTimestamp": 
1753151091780, "lastUpdateTimestamp": 1753151091780, "entityVersion": 1}
   ```
   
   Also, as the current code will requires an user to provide an argument even 
if the type is bool. To fix that (assuming that is not intensional), a code fix 
is provided (otherwise, we will need to do `--debug XXX`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to