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

Fix composites comparison for role in is_struct_included keycloak.py … #6688

Conversation

elfelip
Copy link
Contributor

@elfelip elfelip commented Jun 14, 2023

Fix comparison problem with is_struct_included function of keycloak.py module utils.

SUMMARY

This apply when we compare composite in keycloak roles to detect if a change is needed.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

keycloak.py module utils

ADDITIONAL INFORMATION

This fis is needed to support composites in Keycloak roles.

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug identity module_utils module_utils plugins plugin (any type) labels Jun 14, 2023
@ansibullbot ansibullbot added new_plugin New plugin tests tests unit tests/unit labels Jun 14, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-6 backport-7 Automatically create a backport for the stable-7 branch labels Jun 14, 2023
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Besides this nit about the changelog fragment, LGTM.

…y.yml

Co-authored-by: Felix Fontein <felix@fontein.de>
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jun 14, 2023
@felixfontein felixfontein merged commit 032996e into ansible-collections:main Jun 14, 2023
135 checks passed
@patchback
Copy link

patchback bot commented Jun 14, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/032996e0052a514a17775c4492532c3505a7e142/pr-6688

Backported as #6689

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jun 14, 2023
#6688)

* Fix composites comparison for role in is_struct_included keycloak.py function

* Add changelog fragment and unit tests

* Update changelogs/fragments/6688-is-struct-included-bug-in-keycloak-py.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 032996e)
@patchback
Copy link

patchback bot commented Jun 14, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/032996e0052a514a17775c4492532c3505a7e142/pr-6688

Backported as #6690

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jun 14, 2023
#6688)

* Fix composites comparison for role in is_struct_included keycloak.py function

* Add changelog fragment and unit tests

* Update changelogs/fragments/6688-is-struct-included-bug-in-keycloak-py.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 032996e)
@felixfontein
Copy link
Collaborator

@elfelip thanks a lot!

felixfontein pushed a commit that referenced this pull request Jun 14, 2023
…role in is_struct_included keycloak.py … (#6689)

Fix composites comparison for role in is_struct_included keycloak.py … (#6688)

* Fix composites comparison for role in is_struct_included keycloak.py function

* Add changelog fragment and unit tests

* Update changelogs/fragments/6688-is-struct-included-bug-in-keycloak-py.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 032996e)

Co-authored-by: Philippe Gauthier <philippe.gauthier@inspq.qc.ca>
felixfontein pushed a commit that referenced this pull request Jun 14, 2023
…role in is_struct_included keycloak.py … (#6690)

Fix composites comparison for role in is_struct_included keycloak.py … (#6688)

* Fix composites comparison for role in is_struct_included keycloak.py function

* Add changelog fragment and unit tests

* Update changelogs/fragments/6688-is-struct-included-bug-in-keycloak-py.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 032996e)

Co-authored-by: Philippe Gauthier <philippe.gauthier@inspq.qc.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 Automatically create a backport for the stable-7 branch bug This issue/PR relates to a bug identity module_utils module_utils new_plugin New plugin plugins plugin (any type) tests tests unit tests/unit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants