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 contact point notifier update #1361

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

julienduchesne
Copy link
Member

@julienduchesne julienduchesne commented Feb 21, 2024

Helps #769, not a full fix though (a contact point should always be deletable on its own)

When a contact point gets all of its notifiers deleted, it's functionally deleted in the API.
This shouldn't happen when updating, so in order to prevent that, we can add new notifiers at the beginning of the update and delete the old ones only at the end of the process

Doing things in that order ensures that there will always be one notifier active since there's a TF resource validation that there should be at least one notifier

Helps #769, not a full fix though
When a contact point gets all of its notifiers deleted, it's functionally deleted in the API
This shouldn't happen when updating, so in order to prevent that, we can add new notifiers and delete the old ones only at the end of the process
Doing things in that order ensures that there will always be one notifier active since there's a TF resource validation that there should be at least one notifier
@julienduchesne julienduchesne requested review from a team as code owners February 21, 2024 13:44
Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

Copy link
Member

@JacobsonMT JacobsonMT left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@julienduchesne julienduchesne merged commit ff5d849 into main Feb 21, 2024
24 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/fix-contact-point-update branch February 21, 2024 16:23
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.

None yet

2 participants