-
Notifications
You must be signed in to change notification settings - Fork 7.4k
add description to groups #39174
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 description to groups #39174
Conversation
fixes: keycloak#39172 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
@@ -86,5 +86,6 @@ | |||
<include file="META-INF/jpa-changelog-26.0.0.xml"/> | |||
<include file="META-INF/jpa-changelog-26.1.0.xml"/> | |||
<include file="META-INF/jpa-changelog-26.2.0.xml"/> | |||
<include file="META-INF/jpa-changelog-26.2.1.xml"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this being an enhancement, and while we don't backport enhancemnets, this should then be 26.3 and not a patch release. We also avoid updating databases in patch releases, as it could lead to downtimes when applied to large tables. While this might be ok for minor releases, this is unexpected for patch releases.
<include file="META-INF/jpa-changelog-26.2.1.xml"/> | |
<include file="META-INF/jpa-changelog-26.2.1.xml"/> |
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the change. I pushed one small commit regarding the DB.
I tested the UI manually, and found the following glitches that probably need fixing in this PR:
- After creating the group and choosing the "Rename" action, the existing name of the group and the description are both empty. I expect them to be pre-filled with the name and description of the current group.
- After changing the description in the popup and submitting it, the new name is saved to the database, but not the description. The description also doesn't change in the UI.
Please have a look at those two glitches. Thanks!
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DB changes now look good to me, and I also manually tested the UI.
One small nit-pick: Please update the test case to also update the description, see
keycloak/js/libs/keycloak-admin-client/test/groups.spec.ts
Lines 69 to 74 in 97727db
it("update single groups", async () => { | |
const groupId = currentGroup.id; | |
await kcAdminClient.groups.update( | |
{ id: groupId! }, | |
{ name: "another-group-name" }, | |
); |
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the change! Approving assuming the tests will end up green.
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.forms.ResetPasswordTest#resetPasswordWrongSmtp
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unreported flaky test detected, please review
fixes: #39172
Signed-off-by: Erik Jan de Wit erikjan.dewit@gmail.com