Skip to content

Conversation

@GPortas
Copy link
Contributor

@GPortas GPortas commented May 19, 2025

What this PR does / why we need it:

Adds an input parameter to the built-in Users SPI that allows specifying the datasource to be used. Currently, the supported options are:

user-store

user-store-qa

In the quarkus.properties file, it's not required to define both datasources—only the ones in use (e.g., if user-store-qa isn't needed, it can be omitted). However, both must be declared in the persistence.xml file to properly configure the JPA persistence units.

This change enables support for multiple databases from a single Keycloak server. In our setup, beta-keycloak.dataverse.org connects to both the QA and Beta databases.

When configuring the SPI within a Keycloak realm, the appropriate target datasource must be specified.

Which issue(s) this PR closes:

Special notes for your reviewer:

This is already installed and tested on beta-keycloak.dataverse.org

Suggestions on how to test this:

You can verify that beta-keycloak supports both the beta.dataverse.org and qa.dataverse.org environments equally.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

N/A

Is there a release notes update needed for this change?:

N/A

Additional documentation:

None

@github-actions github-actions bot added the Type: Bug a defect label May 19, 2025
@coveralls
Copy link

coveralls commented May 19, 2025

Coverage Status

coverage: 23.081%. remained the same
when pulling 272d488 on 679-spi-multidatasource-setup
into c4379a0 on develop.

@github-actions

This comment has been minimized.

@github-actions
Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:679-spi-multidatasource-setup
ghcr.io/gdcc/configbaker:679-spi-multidatasource-setup

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@GPortas GPortas added Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 SPA.Q2 Not related to any specific Q2 feature GREI Re-arch Issues related to the GREI Dataverse rearchitecture FY25 Sprint 23 FY25 Sprint 23 (2025-05-07 - 2025-05-21) and removed Type: Bug a defect labels May 20, 2025
@GPortas GPortas moved this to Ready for Review ⏩ in IQSS Dataverse Project May 20, 2025
@GPortas GPortas marked this pull request as ready for review May 20, 2025 08:14
@GPortas GPortas added the SPA These changes are required for the Dataverse SPA label May 20, 2025
@cmbz cmbz added the FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) label May 22, 2025
@cmbz cmbz added the FY25 Sprint 25 FY25 Sprint 25 (2025-06-04 - 2025-06-18) label Jun 4, 2025
@cmbz cmbz added the FY25 Sprint 26 FY25 Sprint 26 (2025-06-18 - 2025-07-02) label Jun 19, 2025
Copy link
Member

@qqmyers qqmyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure any of us can do justice in a review. From what I know of Keycloak, this makes sense and, as noted, it is already working to support beta and qa. I noticed the build failed so I've restarted a run. I think if that passes and QA can briefly test it (create built in users on beta and QA via jsf/api and then verify that the user can login via the SPA (showing that keycloak is checking the two databases on the two different machines), it's good to go.

@github-project-automation github-project-automation bot moved this from Ready for Review ⏩ to Ready for QA ⏩ in IQSS Dataverse Project Jun 20, 2025
@ofahimIQSS
Copy link
Contributor

looks good, thanks! Going to merge.

@ofahimIQSS ofahimIQSS merged commit cd8e5fa into develop Jun 23, 2025
16 checks passed
@ofahimIQSS ofahimIQSS deleted the 679-spi-multidatasource-setup branch June 23, 2025 18:55
@github-project-automation github-project-automation bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Jun 23, 2025
@pdurbin pdurbin added this to the 6.7 milestone Jun 23, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jun 24, 2025
@cmbz cmbz added the FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) label Jul 2, 2025
@cmbz cmbz added the FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) label Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 23 FY25 Sprint 23 (2025-05-07 - 2025-05-21) FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) FY25 Sprint 25 FY25 Sprint 25 (2025-06-04 - 2025-06-18) FY25 Sprint 26 FY25 Sprint 26 (2025-06-18 - 2025-07-02) FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q2 Not related to any specific Q2 feature SPA These changes are required for the Dataverse SPA

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Configure QA environment for the SPA

7 participants