roryqi opened a new pull request, #12549:
URL: https://github.com/apache/gravitino/pull/12549

   ### What changes were proposed in this pull request?
   
   Add the public Java API contracts for policy-on-tag:
   
   1. Add `PolicyTagAssociation` and `PolicyTagSelector`.
   2. Add policy-to-tag association operations to `PolicyOperations` and 
`TagOperations`.
   3. Add `VIEW_POLICY` and `VIEW_TAG` privileges.
   4. Add tests for tag-value selector matching and privilege binding scopes.
   
   The new operation methods provide default implementations that throw
   `UnsupportedOperationException`, keeping existing implementations 
source-compatible
   until the implementation PRs override them.
   
   ### Why are the changes needed?
   
   These APIs establish the public contracts required by the policy-on-tag 
governance
   model and allow the implementation to be reviewed in smaller follow-up PRs.
   
   Fix: #12548
   
   Part of #12176.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. It adds evolving Java APIs for policy-to-tag associations, tag-value 
selectors,
   and policy/tag view privileges. This PR does not add runtime implementation 
behavior.
   
   ### How was this patch tested?
   
   - `./gradlew spotlessApply`
   - `./gradlew :api:test :clients:client-java:compileJava`
   - `git diff --check`


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