-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
keycloak_user_federation: sort desired and after mappers by name #8761
keycloak_user_federation: sort desired and after mappers by name #8761
Conversation
Is this intentionally still a draft? |
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.
Looks OK to me. If nobody objects, I'll merge this on the weekend.
Backport to stable-8: 💚 backport PR created✅ Backport PR branch: Backported as #8836 🤖 @patchback |
@fgruenbauer thanks for your contribution! |
* sort desired mappers by name * sort mappers fetched after update by name * only sort mapper list if there are desired mappers specified * add fallback `''` in case `name` is not a key or `None` when sorting mappers * add changelog fragment (cherry picked from commit 982b8d8)
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8837 🤖 @patchback |
* sort desired mappers by name * sort mappers fetched after update by name * only sort mapper list if there are desired mappers specified * add fallback `''` in case `name` is not a key or `None` when sorting mappers * add changelog fragment (cherry picked from commit 982b8d8)
… desired and after mappers by name (#8836) keycloak_user_federation: sort desired and after mappers by name (#8761) * sort desired mappers by name * sort mappers fetched after update by name * only sort mapper list if there are desired mappers specified * add fallback `''` in case `name` is not a key or `None` when sorting mappers * add changelog fragment (cherry picked from commit 982b8d8) Co-authored-by: fgruenbauer <gruenbauer@b1-systems.de>
… desired and after mappers by name (#8837) keycloak_user_federation: sort desired and after mappers by name (#8761) * sort desired mappers by name * sort mappers fetched after update by name * only sort mapper list if there are desired mappers specified * add fallback `''` in case `name` is not a key or `None` when sorting mappers * add changelog fragment (cherry picked from commit 982b8d8) Co-authored-by: fgruenbauer <gruenbauer@b1-systems.de>
…ible-collections#8761) * sort desired mappers by name * sort mappers fetched after update by name * only sort mapper list if there are desired mappers specified * add fallback `''` in case `name` is not a key or `None` when sorting mappers * add changelog fragment
…ible-collections#8761) * sort desired mappers by name * sort mappers fetched after update by name * only sort mapper list if there are desired mappers specified * add fallback `''` in case `name` is not a key or `None` when sorting mappers * add changelog fragment
SUMMARY
The module inconsistently sorts the mappers.
The module sorts the mappers fetched for the before state by name. The desired mappers and the mappers fetched after an update are not sorted. When comparing the desired mappers with the before mappers, changes are detected even if the mappers in both lists are the same except for the order. When diffing before with after mappers, differences are shown when the mappers are the same except for the order.
The changes add sorting by name for the desired mappers and the mappers fetched after an update, analog to the existing sorting for the before mappers. This minimizes the diff and makes the change detection more accurate.
ISSUE TYPE
COMPONENT NAME
keycloak_user_federation