-
Notifications
You must be signed in to change notification settings - Fork 248
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
filter_current_dashboard of newrelic_one_dashboard is not handled properly #1494
Comments
I was referring to this anomalous behaviour in #1413 so I really appreciate you raising this issue to address directly. Thanks. |
Thanks @rdhar , I've added |
The issue is still present in v2.33.0
|
IssueHi, this is still not working correctly in 2.34.1.
I had some issue setting up dashboards originated from a json file copy from an old dashboard.
This works fine, however, it is pointing to the old dashboard. So, I've changed the config to
The dashboard still points to the old one. ExperimentsI did some experiments
|
We are having the same issue. More data:
|
@joshua-paypay and @MrColeC your issue sounds like a separate issue from the one the original post was about. Could you maybe open a second issue to track that? |
The experience I have is the same as what is reported:
Even though the state of the dashboard is unchanged, and terraform applied successfully, subsequent back-to-back TF runs express that the value needs to change from |
@MrColeC I may have incorrectly mixed your and @joshua-paypay's experiences together. My apologies. I saw that you said you were having "the same issue" immediately after their comment, which seems to have different expected behavior from the original post. |
Sorry I am being confusing. Thank you for discussing this.
The TF state and the New Relic UI are not in sync. |
@MrColeC Gotcha, thank you for clarifying. It sounds like you have two (possibly related) issues then.
Can you elaborate on what updates you've seen this desync with? Are these changes made to the widget via the UI? Or changes made with Terraform? |
Context:
Results: Result details:
|
Does this help @zeffron ? |
@MrColeC Yes, thank you! |
While re-trying #1413, I came across a li'l tidbit that might help address this issue (i.e., unnecessary noise in the execution logs) with an interim solution: leveraging resource "newrelic_one_dashboard" "the_dashboard" {
lifecycle {
ignore_changes = [
page[0].widget_bar["filter_current_dashboard"],
page[0].widget_pie["filter_current_dashboard"],
page[0].widget_table["filter_current_dashboard"],
]
}
name = "The Dashboard"
… This will suppress redundant noise from |
Support for Lifecycle only exists on Resources, not Dynamic blocks. As the nature of a Dashboard can be complex at times and most have multiple pages and widgets, Dynamics are generally used. I agree this helps the example, but for us it is not going to help in production. |
Hey @dvishniakov & @MrColeC, could you retry your use-cases? Following the release of v2.38.0 , I've found it addressed some issues relating to dashboard filters. |
@rdhar I do see in some limited use cases, or base case deployments with no follow on updates, it is functional. However, at scale and on updates, I still see issues. I think the issue persists. I looked over the PR's merged in that made up v2.38.0 and I didn't see any changes I would think are associated with this issue. |
Hey folks 👋 we're trying something new with this issue. We released a fix in a beta version - v2.41.0-beta.1. We would really appreciate it if you could grab this release and let us know if it fixes the issues you're seeing for filter_current_dashboard. Thanks! |
Thank you @mbazhlekova !! Testing it now |
@mbazhlekova our testing and our use cases all seem to work with this. This is a full solution and we see no side effects. Nice! |
Can confirm the beta seems to work for our use case as well. |
I am now trying an update on a dashboard and getting
I am looking into if that is an issue with how we use this, or upstream. |
Based upon what I can read on our side, I do not think we are causing this error condition. I do believe that we are tripping old safety code that was added late last year to prevent someone from attempting to configure this same feature from two different ways. Suspected source: |
@MrColeC We intentionally don't allow |
We are not setting it, we are just using To reproduce:
|
@MrColeC Depending on Terraform version, I think it can tell the difference between something explicitly set to |
The test code I am using to reproduce this I posted above. When trying what you said (good idea!) it still did not work.
I believe the reason why is that |
Ah, yes, I missed the change to the NRQL statement initially. I am able to reproduce the same failure. |
@MrColeC I see, thanks for the clarification! Looks like we need to refine the logic a bit to get it to work properly. |
@MrColeC @zeffron We rolled out another release - v2.41.0-beta.2 with a fix for the |
v2.41.0-beta.2 does seem to have resolved the issue for me. |
I agree with @zeffron |
Please include the following with your bug report
provider
configuration (sensitive details redacted)Terraform Version
1.0.9
Affected Resource(s)
Please list the resources as a list, for example:
newrelic_one_dashboard
one_dashboard_raw
(according to Bug/Regression: Inability to filter by facet withone_dashboard_raw
#1413 )Terraform Configuration
Any basic config of newrelic_one_dashboard with widget_table and filter_current_dashboard=true
Actual Behavior
Terraform plan and apply operations show changes every time:
Expected Behavior
no changes
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
orterraform plan
(after apply)Debug Output
Panic Output
Important Factoids
References
The text was updated successfully, but these errors were encountered: