terraform-provider-newrelic icon indicating copy to clipboard operation
terraform-provider-newrelic copied to clipboard

Allow filterCurrentDashboard in one_dashboard_json

Open tcgbrett opened this issue 2 years ago • 4 comments

Feature Description

Currently, there doesn't seem to be a documented way to allow "filter_current_dashboard" on tables. This is a requirement for some dashboards to be effective, and it's not reasonable to have to change them all manually after every TF update.

  • As a further note - this field is not exported from the dashboard when you click "Copy JSON"

Describe Alternatives

I've considered using one_dashboard, but that doesn't support all of the latest features as the json one, so I feel stuck.

tcgbrett avatar Feb 09 '23 19:02 tcgbrett

Thanks for feedback @tcgbrett

The filter_current_dashboard was a hack that the Terraform team put in place because we need the GUID to set the filter, but the GUID is only available after create, so we do some magic to make it work. This is also why you can't find it in the dashboard json.

After discussing this internally I don't think we'll have a solution for this on the API side. I am exploring adding variables to the one_dashboard_json resource, which would mean we could add selfGUID or something similar to allow the filtering. Would this work for you?

kidk avatar Feb 10 '23 08:02 kidk

@kidk It should be ok for me. Did you have some time to work on this feature ?

franek avatar Sep 18 '23 15:09 franek

I have similar issue but basically what you've described here seems to be a bug in newrelic api that import of json isn't allowing to setup correct guid for "linkedEntityGuids" ?

piramix avatar Oct 17 '23 06:10 piramix

cc: @sanderblue

NSSPKrishna avatar Oct 18 '23 04:10 NSSPKrishna