-
Notifications
You must be signed in to change notification settings - Fork 251
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
[newrelic_one_dashboard_raw] messes up widget order during insertion/deletion #1452
Comments
Thanks for the detailed report @tommyforlini We'll keep this in mind when redesigning the dashboard resource. We'll explore if there's something we can do in the meantime. |
I'm getting a similar behavior with
Looks like the widget ids get recycled at random, instead of being preserved between calls. |
For now, I use "ignore_changes" in "lifecycle". This is the only thing I can come up with. |
Are you still experiencing this with latest version? There's been some changes on the API and Terraform side to improve this issue. cc @melumuccu @guhcampos @tommyongsf We also recently added support for json dashboards: #2044 |
We haven’t heard back from you in a long time so we will close the ticket. If you feel this is still a valid request or bug, feel free to create a new issue. |
I didn't have the same issue as OP, but I had the same issue as @guhcampos . The solution is that widgets needs to be ordered primarily by row, and then secondarily by col. This will stop "flapping" changes in TF plans that never actually get applied. |
This is still occurring with |
Terraform Version
Terraform v1.0.0 . Also tested with the latest v1.0.8.
Affected Resource(s)
newrelic_one_dashboard_raw
Terraform Configuration
Terraform NewRelic Provider: 2.26.0 (latest)
Actual Behavior
Expected Behavior
Steps to Reproduce
terraform apply
on the tf code above (in Terraform Configuration section) -> create 9 widgets of different types (viz.table, viz.line, viz.markdown) on the same page.terraform plan
-> observe that the order of the widgets has been shifted:terrafrom apply
Important factors
newrelic_one_dashboard_raw
does not manage the widget order correctly. Hence an insertion/deletion would result in the order being messed up. When the API is sent, NewRelic doesn't know how to handle / doesn't allow a big change in widget types, then it throws out error.The text was updated successfully, but these errors were encountered: