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

Oncall Integration: Fix removing templates #1201

Merged

Conversation

julienduchesne
Copy link
Member

Closes #1199
This was broken in #1185
I added a test so that it doesn't occur again

@julienduchesne julienduchesne requested a review from a team as a code owner December 5, 2023 18:08
Copy link

github-actions bot commented Dec 5, 2023

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.

@@ -218,7 +222,7 @@ func ResourceIntegration() *schema.Resource {
return false
}
for k, v := range oldTemplateMap {
if newTemplateMap[k] != v {
if fmt.Sprintf("%v", newTemplateMap[k]) != fmt.Sprintf("%v", v) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit convoluted. I'm approving because I eventually understood it, but it took me a short while.

Copy link
Member Author

Choose a reason for hiding this comment

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

I explained it!

Closes #1199
This was broken in #1185
I added a test so that it doesn't occur again
@julienduchesne julienduchesne force-pushed the julienduchesne/oncall-integration-remove-templates branch from b6c41e9 to 51060b6 Compare December 6, 2023 15:22
@julienduchesne julienduchesne merged commit dcc2c5e into master Dec 6, 2023
23 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/oncall-integration-remove-templates branch December 6, 2023 15:31
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.

Plugin did not respond on 2.7.0 only - grafana_oncall_integration change results in panic
2 participants