Abyss-lord opened a new pull request, #10761:
URL: https://github.com/apache/gravitino/pull/10761

   ### What changes were proposed in this pull request?
   
   Add metadata object role support to the Python client by introducing 
`MetadataObjectRoleOperations`, `RoleNamesListResponse`, and `RoleErrorHandler`.
   
   This PR also adds unit tests for:
   - listing bound role names for a metadata object
   - role response serialization and validation
   - role error handler exception mapping
   
   ### Why are the changes needed?
   
   The Python client currently lacks support for listing role names bound to a 
metadata object, while the corresponding server-side API already exists.
   
   This change fills that gap so Python client users can consume metadata 
object role APIs consistently and get proper client-side exception mapping for 
role-related failures.
   
   Fix: #(issue)
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes.
   
   It adds Python client support for listing role names bound to a metadata 
object through the new metadata object role operations.
   
   No property keys are added or removed.
   
   ### How was this patch tested?
   
   Added unit tests covering:
   - request path generation for metadata object role operations
   - successful role name listing
   - `RoleNamesListResponse` serialization and validation
   - `RoleErrorHandler` mappings for representative `ILLEGAL_ARGUMENTS`, 
`NOT_FOUND`, and `ALREADY_EXISTS` cases
   
   Verified with:
   1. `cd clients/client-python && PYTHONPATH=$PWD python -m unittest 
tests.unittests.client.test_metadata_object_role_operations -v`
   2. `./gradlew :clients:client-python:unitTests --console=plain`
   


-- 
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