Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@agagancarczyk
Copy link
Contributor

@agagancarczyk agagancarczyk commented Sep 22, 2023

Closes #23327

@agagancarczyk agagancarczyk requested a review from a team as a code owner September 22, 2023 15:18
@ghost ghost added the team/ui label Sep 22, 2023
@jonkoops jonkoops linked an issue Sep 22, 2023 that may be closed by this pull request
2 tasks
Copy link
Contributor

@jonkoops jonkoops left a comment

Choose a reason for hiding this comment

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

Looks like this PR fixes several bugs, if they are two distinct bugs I would prefer we have two PRs instead. The reason for this is that we can only link a single issue per commit, otherwise one of them will not show up in the release notes.

import { toUser } from "./routes/User";

import "./user-section.css";
import RealmRepresentation from "libs/keycloak-admin-client/lib/defs/realmRepresentation";
Copy link
Contributor

Choose a reason for hiding this comment

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

This import should be coming from @keycloak/keycloak-admin-client

await adminClient.users.update(
{ id: user!.id! },
toUserRepresentation(data),
{
Copy link
Contributor

Choose a reason for hiding this comment

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

The toUserRepresentation() function still needs to be called on the data being passed here.

@agagancarczyk agagancarczyk changed the title Fixed creating and editing user Fixed creating user Sep 22, 2023
@cypress
Copy link

cypress bot commented Sep 22, 2023

Passing run #9058 ↗︎

0 527 48 0 Flakiness 0

Details:

Merge b3f27e0 into 0bae359...
Project: Keycloak Admin UI Commit: 898d8f54fe ℹ️
Status: Passed Duration: 12:48 💡
Started: Sep 22, 2023 4:52 PM Ended: Sep 22, 2023 5:05 PM

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

Copy link
Contributor

@ssilvert ssilvert left a comment

Choose a reason for hiding this comment

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

LGTM. I'd also like @edewit to take a look and approve before merging.

@ssilvert ssilvert requested a review from edewit September 22, 2023 18:51
Copy link
Contributor

@jonkoops jonkoops left a comment

Choose a reason for hiding this comment

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

LGTM!

@jonkoops jonkoops merged commit d8ff73e into keycloak:main Sep 22, 2023
@cypress
Copy link

cypress bot commented Sep 23, 2023

2 flaky tests on run #9064 ↗︎

0 1054 96 0 Flakiness 2

Details:

Fixed creating user (#23484)
Project: Keycloak Admin UI Commit: d8ff73e34f
Status: Passed Duration: 13:07 💡
Started: Sep 25, 2023 12:23 AM Ended: Sep 25, 2023 12:37 AM
Flakiness  group_test.spec.ts • 1 flaky test • firefox

View Output Video

Test Artifacts
Group test > Child Groups > Delete group from item bar Output Screenshots
Flakiness  masthead_test.spec.ts • 1 flaky test • firefox

View Output Video

Test Artifacts
Masthead tests > Desktop view > Go to account console and back to admin console Output Screenshots

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User cannot be created via Admin UI if custom user attribute is required

3 participants