terraform-provider-authentik icon indicating copy to clipboard operation
terraform-provider-authentik copied to clipboard

replace TypeList with TypeSet for idempotency

Open rasschaert opened this issue 1 year ago • 2 comments

fixes #377

Warning: I don't know how to write golang, but it's 2023 and we have AI now. This is what it came up with. I built and tested this code and it does appear to resolve the issue reported in #377.

I feel like a patient going to a doctor with a printed out WebMD diagnosis. I'm sorry for doing it this way but I figured it might save you some time. I'm just trying to be helpful in the only way I know how.

rasschaert avatar Jul 05 '23 11:07 rasschaert

Thanks for the PR!

usually listConsistentMerge is supposed to deal with this (it tries to order the list it gets from the API in the same order as the one that's in terraform state), but I'll do some more testing with that

BeryJu avatar Jul 05 '23 11:07 BeryJu

Has this been solved yet, since I'm still observing some idempotency issues. If I can help in any way or form let me know.

lucasilverentand avatar Mar 05 '24 14:03 lucasilverentand