Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Keycloak organization UUID to data providers #1373

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bickelj
Copy link
Contributor

@bickelj bickelj commented Dec 10, 2024

Given that an organization might exist in Keycloak prior to the introduction of the data provider row here or vice versa, we intend to support setting the Keycloak organization ID optionally. This change allows the software to defer linking a PDC Keycloak organization to a PDC service data provider until both exist.

Broaden the scope of the KeycloakId to allow it to be a Keycloak UUID
for either a Keycloak user or a Keycloak organization.

Issue #1291
Given that an organization might exist in Keycloak prior to the
introduction of the data provider row here or vice versa, we intend to
support setting the Keycloak organization ID optionally. This change
allows the software to defer linking a PDC Keycloak organization to a
PDC service data provider until both exist.

This commit does not make use of the Keycloak organization UUID but
allows the software to store it and make use of it for data providers.

Issue #1291
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 86.11111% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.18%. Comparing base (62801d9) to head (06aa63f).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/handlers/dataProvidersHandlers.ts 37.50% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1373      +/-   ##
==========================================
- Coverage   87.34%   87.18%   -0.17%     
==========================================
  Files         185      185              
  Lines        2387     2396       +9     
  Branches      314      326      +12     
==========================================
+ Hits         2085     2089       +4     
+ Misses        302      281      -21     
- Partials        0       26      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bickelj bickelj requested a review from slifty December 10, 2024 18:00
@bickelj
Copy link
Contributor Author

bickelj commented Dec 10, 2024

@slifty Obviously it needs tests and expansion to funders and changemakers, but I wanted your opinion on this before making those changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant