Hello,
We have noticed some strange ordering issues with group_roles objects.
Please note:
- We made no changes to code, other than what is outlined below
- We consider this a major issue - while we could say that this would result in no changes to user experience, we cannot assume that and it is causing extra hours of development time to make sure that each change is checked/validated to make sure it won't have any impact
This example is when we attempted an upgrade from MyPureCloud client 1.23.0 to 1.25.1
Steps:
- Ran our pipeline with 1.23.0 - resulted in "No changes. Infrastructure is up-to-date.", which is what we expected
- Ran our pipeline with 1.25.1 - resulted in 153 objects to change
After looking into the changes it will attempt to make, it seems it is simply changing the order of the roles (please note the role_id swap), for example:
module.group_roles.genesyscloud_group_roles.xxx will be updated in-place
~ resource "genesyscloud_group_roles" "xxx" {
id = "xxx_id"
# (1 unchanged attribute hidden)
~ roles {
~ role_id = "Role_ID_1" -> "Role_ID_2"
# (1 unchanged attribute hidden)
}
~ roles {
~ role_id = "Role_ID_2" -> "Role_ID_1"
# (1 unchanged attribute hidden)
}
}
The example above is just a simple one, it gets much more complicated when the roles don't have the same divisions assigned, and if there are more than 2 roles.
Thank you.