thousandeyes / terraform-provider-thousandeyes

ThousandEyes Terraform Provider
Apache License 2.0
21 stars 27 forks source link

fix: fixes bugs related to alert rule notifications #115

Closed pedro-te closed 2 years ago

pedro-te commented 2 years ago

ThousandEyes API documentation states that to update alert rules, the full list of fields must be sent. Docs.

I should also note that while the fix is very simple, debugging these issues (apart from the recipient list order) was not easy and took me a full day basically, because there's still a lot about this codebase that I don't know.

Tests are passing:

go vet ./... && echo && go test ./...

?       github.com/thousandeyes/terraform-provider-thousandeyes [no test files]
ok      github.com/thousandeyes/terraform-provider-thousandeyes/thousandeyes    (cached)

Tested the provider locally multiple times. Worked well in my tests, but please let me know if I can make it easier to review this and to verify.