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

   ### What changes were proposed in this pull request?
   
   - Remove direct object-policy association and single-policy lookup APIs from 
REST, Java client, MCP, OpenAPI, docs, and UI.
   - Keep object policy listings and update the optimizer to consume 
`listPolicyInfos()`.
   - Add REST, MCP, and optimizer tests for the removed APIs.
   
   ### Why are the changes needed?
   
   Policy-on-tag governance supersedes direct object-policy associations. The 
old mutation and single-policy lookup paths leave two ways to manage or read 
object policies.
   
   Follow-up to #12176.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Object-policy association and single-policy lookup endpoints, 
`SupportsPolicies.associatePolicies/getPolicy`, and the corresponding MCP tools 
are removed. Object policy listings and metalake-level policy CRUD remain 
available.
   
   ### How was this patch tested?
   
   - `./gradlew spotlessApply`
   - Targeted server, Java client, and optimizer tests
   - `./gradlew :mcp-server:testPython` (271 tests)
   - `./gradlew :docs:build`
   - `./gradlew :web-v2:web:lintCheck :web-v2:web:prettierCheck`
   


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