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

`custom_properties` do not update

Open lughino opened this issue 11 months ago • 2 comments

Hi there,

I seem to have found a bug in the custom_properties field of the feature flags. Given a resource

resource "launchdarkly_feature_flag" "test_flag" {
  project_key = "default"
  key         = "test_flag"
  name        = "test_flag"
  temporary   = true
  client_side_availability {
    using_environment_id = true
    using_mobile_key     = false
  }

  variation_type = "boolean"
  variations {
    value = "true"
  }
  variations {
    value = "false"
  }

  defaults {
    on_variation  = 1
    off_variation = 1
  }

  custom_properties {
    key   = "jira.issues"
    name  = "Jira Issues"
    value = ["PROJ-43", "PROJ-51", "PROJ-52"]
  }
}

If I update the jira issues custom_properties, terraform does not pick up any changes. I tried to change/remove/add any value inside the value's list of strings but terraform seems not to recognise that that field has been updated.

Using LaunchDarkly provider version 2.18.0

lughino avatar Mar 01 '24 15:03 lughino