roryqi opened a new pull request, #12855: URL: https://github.com/apache/gravitino/pull/12855
### What changes were proposed in this pull request? Add lifecycle events for policy-to-tag relation changes: 1. Add pre, success, and failure events for adding a policy to a tag. 2. Add pre, success, and failure events for removing a policy from a tag. 3. Include association snapshots and selectors in the events. 4. Wire the events through the policy and tag dispatchers. 5. Add unit tests for successful, failed, and idempotent operations. ### Why are the changes needed? Policy-to-tag mutations need listener and audit extension points. This follow-up builds on the Core support merged in #12718. Fix: #12176 ### Does this PR introduce _any_ user-facing change? No. This PR adds Core listener events. REST and client APIs are handled separately. ### How was this patch tested? - `./gradlew :core:spotlessApply` - `./gradlew :core:test --tests org.apache.gravitino.listener.api.event.TestPolicyTagRelationEvent --no-build-cache` - `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]
