Skip to content

Decoupling legacy and dynamic user profiles and exposing metadata from admin api - #22533

Merged
pedroigor merged 3 commits into
keycloak:mainfrom
pedroigor:userprofile
Aug 29, 2023
Merged

Decoupling legacy and dynamic user profiles and exposing metadata from admin api#22533
pedroigor merged 3 commits into
keycloak:mainfrom
pedroigor:userprofile

Conversation

@pedroigor

Copy link
Copy Markdown
Contributor

Closes #22532

  • Adding more test coverage to user management when registration as username and edit username settings are set
  • Adding more test coverage to user management through account and user APIs
  • Adding more test coverage to attribute validation and how they are managed through user profile

…m admin api

Closes keycloak#22532

Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
@pedroigor
pedroigor requested review from a team as code owners August 17, 2023 19:58
@pedroigor
pedroigor requested a review from a team August 17, 2023 19:58
@pedroigor
pedroigor requested a review from a team as a code owner August 17, 2023 19:58
@pedroigor
pedroigor requested a review from edewit August 17, 2023 20:02
@cypress

cypress Bot commented Aug 17, 2023

Copy link
Copy Markdown

1 flaky tests on run #8573 ↗︎

0 527 48 0 Flakiness 1

Details:

Merge 3ed6860 into a7c2fd8...
Project: Keycloak Admin UI Commit: 1113bc72a2 ℹ️
Status: Passed Duration: 30:13 💡
Started: Aug 22, 2023 5:11 PM Ended: Aug 22, 2023 6:41 PM
Flakiness  cypress/e2e/realm_settings_general_tab_test.spec.ts • 1 flaky test • chrome

View Output Video

Test Artifacts
Realm settings general tab tests > Test all general tab switches Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

Comment thread js/apps/admin-ui/src/realm-settings/EmailTab.tsx Outdated
Comment thread js/apps/admin-ui/src/user/EditUser.tsx Outdated
Comment thread js/apps/admin-ui/src/user/components/SelectComponent.tsx
)}
{isUserProfileEnabled ? (
<UserProfileFields />
<UserProfileFields config={user?.userProfileMetadata!} />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since the model defines userProfileMetadata as optional, I would prefer if we don't use the non-null assertion operator, as it can lead to errors around nullability, even if in this case the response might always be defined.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it must be defined at this point because isUserProfileEnabled is true

edewit and others added 2 commits August 22, 2023 14:30
@edewit
edewit requested a review from jonkoops August 22, 2023 12:50
@pedroigor
pedroigor merged commit 248bb17 into keycloak:main Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decoupling legacy and dynamic user profiles and exposing metadata from admin api

4 participants