terraform-provider-newrelic
terraform-provider-newrelic copied to clipboard
Bug/Regression: Inability to filter by facet with `one_dashboard_raw`
Summary
The newly-introduced one_dashboard_raw
(documentation) does not appear to support filtering by facets, which is a significant regression.
Expected Behaviour
Much like one_dashboard
, it should be possible to filter by facet using the linked_entity_guids
attribute, or similar alternative.
Actual Behaviour
There is no replacement or workaround. If anything, now the account ID needs to be explicitly declared which is undoes the work done in #1193 merged in #1219 for v2.19.0 to inherit the dashboard's account ID by default.
Environment
- Terraform: v1.0.3
- Provider: v2.24.1
- OS: Windows 10 Pro
Thanks for your time.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.
I can understand marking this as stale due to the lack of activity. That being said, this is a significant regression of functionality preventing wider adoption of one_dashboard_raw
in most capacities. Would hope this considered as a priority for complete configuration of dashboard, per #1211.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs.
This issue has been automatically closed due to a lack of activity for an extended period of time.
Hi @kidk. Per #1211, bumping this as the lack of facet filtering is a significant regression blocking wider adoption of one_dashboard_raw
.
Hi, we also face the same issue, For now we need to activate filter with the UI but then terraform is in error!
Following the release of v2.30.0, the changelog mentions the introduction of filter_current_dashboard
feature to determine the linked page entity guid automatically. This is great news, many thanks for the implementation @pmillett! Would it be possible to share some documentation around usage example please, @jthurman42?
There are at least three issues (#1349, #1200, #1193) which are perfectly resolved by this feature. Could you also confirm this applies to one_dashboard_raw
just as it does to one_dashboard
for a consistent roll-out?
On an existing dashboard, I removed linked_entity_guids = […]
lines and replaced them with filter_current_dashboard = true
. While the operation completed successfully without error, the widgets didn't have any filters.
When I re-ran terraform apply
, I observed filter_current_dashboard = false -> true
again, implying it was never set.
Edit: Per v2.30.1, the filter_current_dashboard = false -> true
continues to exist but the widgets now have the expected filter set.
Unfortunately, using filter_current_dashboard = true
is still not possible in one_dashboard_raw
and using data source to query entity for linked_entity_guids
is not an option when the name of a dashboard can change. I would love to see this improvement added as it would solve a lot of issues with our dashboards.