lasdf1234 opened a new issue, #12512:
URL: https://github.com/apache/gravitino/issues/12512
## Describe the feature
Add lightweight user/group lookup APIs that return metadata from `user_meta`
/ `group_meta` only, without loading role bindings.
- New API types: `BasicUser`, `BasicGroup`
- New methods: `getBasicUser`, `getBasicGroup`
- REST endpoints:
- `GET /api/metalakes/{metalake}/users/{user}/basic`
- `GET /api/metalakes/{metalake}/groups/{group}/basic`
- Include listener events for both operations
## Motivation
Full `getUser` / `getGroup` joins role tables. Callers that only need
identity metadata (name, id, externalId, enabled, audit) should avoid that
overhead.
## Describe the solution
- Query only the meta table via `UserMetaService.getBasicUserByIdentifier` /
`GroupMetaService.getBasicGroupByIdentifier`
- Expose through core dispatcher, REST, Java client, and OpenAPI
- Emit `GET_BASIC_USER` / `GET_BASIC_GROUP` pre/post/failure events
--
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]