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

Add a proper sorting of associate-role's permissions #551

Merged

Conversation

gasttor
Copy link
Contributor

@gasttor gasttor commented Dec 17, 2024

This PR adds a sorting of the permission-list, which we receive from the commercetools-API. The sorting was added within the function Create, Update and Read of the resource associate-role. The sorting of the permissions, which we get from commercetools, is not predictable so that terraform gets confused (See description of issue #505). After sorting the permissions, so that they are in the same order as in the plan, the create, read and update works fine.

Fixes #505

NEW FEATURES | UPGRADE NOTES | ENHANCEMENTS | BUG FIXES | EXPERIMENTS

  • Fixed a bug, which prevents the proper creation, updating and reading of permissions from associate-roles

@gasttor gasttor requested a review from a team as a code owner December 17, 2024 18:15
@gasttor gasttor requested a review from demeyerthom December 17, 2024 18:15
@demeyerthom
Copy link
Member

@gasttor Looks good to me! Will merge this and release

@demeyerthom demeyerthom merged commit 05271ce into labd:main Dec 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resource commercetools_associate_role: order of permissions
2 participants