-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
sentry_issue_alert actions/conditions/filters name bug #200
Comments
I had a similar situation where we set a name, but Sentry changed it every time. I just changed the name to make it match what Sentry always did and the behaviour stopped. So I guess you could work around it by explicitly setting the name to what Sentry puts into the field. |
I'm also getting bit by this issue. I am able to use Should name actually be a |
This problem is also affecting me and I was not able to ignore changes for actions 🤔 . I only have 1 actions specified in my resource and when adding the following lifecycle block I still see the same result as posted above where the action is removed and created again without the name and channel_id.
How did you achieved the ignore? |
I found the solution in another issue. #109 This does the trick to ignore it properly!
|
I plan to investigate this further this weekend. I suspect we need a custom diff suppressor function. |
Unfortunately, the diff suppressor doesn't work for lists: hashicorp/terraform-plugin-sdk#477 I will have to do something more advanced in the Read method. |
I have changed it so that the provider now compares the action, condition, and filter definitions from the server against the shape of the user's definitions. This means you can safely omit things like the name and channel id. #268 |
@jianyuan Looks like there's a regression of this issue now that the
Happy to raise as a new issue if preferred. |
This should hopefully reinstate the lossy check: #362 I'm aiming to release this tomorrow. |
@adamstrawson I have just shipped v0.12.1. Let me know if that works! |
That did the trick, thanks for the quick turn around on a solution! 👏 |
What is the proper way to set conditions to an empty list? I keep getting either an error, or terraform is adding its own value, no matter what I try. |
@ocdrums3 Can you try |
I have created the following sentry_metric_alert:
I don't want to set the name of actions and conditions, so I created the alert without this. But when I then try and run another plan terraform thinks that a name has been added outside of the terraform and so tries to remove this:
This bug really clutters up any plans I run, as I have 100 alert rules all claiming there are changes to apply. I have tried to use the lifecycle ignore rule but the plan still shows changes each time :( Is there anything we could do about this?
The text was updated successfully, but these errors were encountered: