lasdf1234 opened a new pull request, #11169:
URL: https://github.com/apache/gravitino/pull/11169
### What changes were proposed in this pull request?
This PR wires built-in IdP storage on top of the storage model already
merged into `main` (#11127, #11140).
Main changes:
- Add `IdpManager`, `IdpManagerFactory`, and `GravitinoEnv` lifecycle wiring
for built-in IdP storage
- Add generic IdP user/group provider and service abstractions in `core`
- Load built-in IdP providers from the `idp-basic` plugin via `ServiceLoader`
- Integrate built-in IdP storage providers with `JDBCBackend`
- Add unit tests for factory, env wiring, services, backend integration, and
plugin providers
- Simplify wiring by removing deprecated `Idp*Meta` interface dependencies
in favor of the current `idp/storage` layout
Rebased onto latest `apache/gravitino` `main` (merged with `-X theirs` so
upstream changes take precedence on conflicts).
### Why are the changes needed?
The storage model PRs add relational objects and mapper layers for built-in
IdP storage. This PR finishes the runtime wiring so the built-in IdP
implementation can be discovered and used by the core storage framework.
Fix: #11044
### Does this PR introduce _any_ user-facing change?
No user-facing API is introduced. This change adds internal built-in IdP
storage wiring for the server-side implementation.
### How was this patch tested?
```bash
./gradlew :core:compileJava :plugins:idp-basic:compileJava
:plugins:idp-basic:compileTestJava -PskipITs
./gradlew :core:test -PskipITs -PskipDockerTests=true -PskipWeb=true \
--tests org.apache.gravitino.TestGravitinoEnv \
--tests org.apache.gravitino.TestIdpManagerFactory \
--tests
org.apache.gravitino.storage.relational.service.TestIdpUserMetaService \
--tests
org.apache.gravitino.storage.relational.service.TestIdpGroupMetaService
./gradlew :plugins:idp-basic:test -PskipITs -PskipDockerTests=true
-PskipWeb=true \
--tests org.apache.gravitino.storage.provider.TestIdpBasicUserMetaProvider
\
--tests org.apache.gravitino.storage.provider.TestIdpBasicGroupMetaProvider
```
Made with [Cursor](https://cursor.com)
--
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]