newrelic / terraform-provider-newrelic

Terraform provider for New Relic
https://registry.terraform.io/providers/newrelic/newrelic/latest/docs
Mozilla Public License 2.0
200 stars 244 forks source link

Resource `newrelic_one_dashboard`: Threshold from/to defaults to 0 with `widget_line` #2705

Open jackie-linz opened 6 days ago

jackie-linz commented 6 days ago

Please include the following with your bug report

:warning: Important: Failure to include the following, such as omitting the Terraform configuration in question, may delay resolving the issue.

Terraform Version

v1.9.0 with newrelic provider 3.38.1

Affected Resource(s)

with

                "threshold": [
                  {
                    "from": 0,
                    "name": "Good",
                    "severity": "success",
                    "to": 200
                  },
                  {
                    "from": 200,
                    "name": "Needs improvement",
                    "severity": "warning",
                    "to": 500
                  },
                  {
                    "from": 500,
                    "name": "Poor",
                    "severity": "critical"
                  }
                ],

Actual Behavior

The to value for the Poor threshold is set to 0, which is wrong

image

Expected Behavior

The to value should be left unset image

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
pranav-new-relic commented 5 days ago

@jackie-linz thanks for reporting this - this issue is already on our radar via other internal feedback we've received. We shall be prioritizing this based on our current task queue.