feat: [MTRX-1308] Add archived field to launchdarkly_metrics resources #348
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds archived boolean field to launchdarkly_metric resource to allow users to mark metrics as archived through Terraform.
added TO-DO comments for api client since ldapi.MetricPost does not support Archived field yet so when LD api client is merged I will uncomment the archived field code in create/update operations
made changes as we have discussed in Tech spec: https://docs.google.com/document/d/1HKRRgdSnHoXjrLnzRY9_7hQw4Q5pW9Q_AQdpO0wTm9w/edit?tab=t.0#heading=h.lcgpt7k0oisq
Jira Ticket: https://launchdarkly.atlassian.net/browse/MTRX-1308
DB PR: https://github.com/launchdarkly/gonfalon/pull/51985
Backend PR: https://github.com/launchdarkly/gonfalon/pull/51995
Wait!
Testing
For any changes you make, please ensure your acceptance test conform to the following:
ImportState
andImportStateVerify
are set to true.ImportStateVerifyIgnore
can be used if we explicitly expect a value to be different when imported, such as in the case of obfuscated values like API keysLaunchDarkly Employees
For more information on how to build, test, and release, see the internal provider runbook.
Related Jira issue: MTRX-1308: Add archived field support to launchdarkly_metric Terraform resource