jarredhj0214 opened a new pull request, #12511:
URL: https://github.com/apache/gravitino/pull/12511
### What changes were proposed in this pull request?
This PR adds best-effort bulk group access-control APIs as the second part
of #12287.
Changes include:
- Add bulk group add request/response DTOs.
- Add a core `GroupAdd` bulk item model.
- Add `AccessControlDispatcher#addGroups` and `#removeGroups`.
- Implement bulk group add/remove logic in `AccessControlManager` with
item-level results.
- Dispatch existing per-group add/remove pre, success, and failure events
for bulk group operations.
- Add REST APIs for bulk group add/remove.
- Add OpenAPI definitions and access-control documentation for bulk group
APIs.
- Add tests for best-effort behavior, owner-group removal validation,
request size validation, and listener events.
### Why are the changes needed?
#12287 tracks best-effort bulk operations for access-control entities under
a metalake. The first PR added the shared bulk foundation and bulk user APIs.
This PR continues the epic by adding bulk group APIs using the same approach.
Part of #12287.
### Does this PR introduce _any_ user-facing change?
Yes.
New REST APIs:
- `POST /api/bulk/metalakes/{metalake}/groups/add`
- `POST /api/bulk/metalakes/{metalake}/groups/remove`
The APIs use the existing `gravitino.server.bulk.maxItems` limit introduced
by the bulk foundation PR.
--
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]