newrelic / terraform-provider-newrelic

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

newrelic_notification_channel name update #2093

Open andrewhooker79 opened 1 year ago

andrewhooker79 commented 1 year ago

Hi there,

I am seeing a bug with the Notification Channel name consistency when applied using Terraform,

Terraform Version

3.6.1

Affected Resource(s)

newrelic_notification_channel

Terraform Configuration

resource "newrelic_notification_channel" "its-infra-database-pd" { name = "PD - IT Services Service" type = "PAGERDUTY_SERVICE_INTEGRATION" destination_id = newrelic_notification_destination.its_infra_pd_destination.id product = "IINT"

property { key = "summary" value = "{{ annotations.title.[0] }}" } }



### Actual Behavior
When updating the above resource and altering the 'name' value this is not fully reflected in the UI.
It is not updated here in the workflow reference:
![image](https://user-images.githubusercontent.com/5954993/201063935-f3ea9a70-2b05-4d86-b1c2-78c43edf6dc0.png)
but it is updated if we try and manually edit something i the channel:
![image](https://user-images.githubusercontent.com/5954993/201064023-04ef5935-f698-4b44-9bf7-b1cd1c0034eb.png)

### Expected Behavior
It should update consistently in both locations. This correctly happens when editing the name directly in the UI.

### Steps to Reproduce
1) Create new newrelic_notification_channel with name = "one" and link to a workflow
2) apply using terraform
3) check result
4) amend terrafom code so name = "two"
5) apply terraform
6) observe result
IliaShurygin commented 1 year ago

Hi! Thank you for the report!

We have reproduced the issue on our side. The channel name is updated correctly, but it seems like we have an issue with out UI that continues to show the old name.

I cannot give an exact ETA, but I hope we get to addressing this fairly soon.