-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ForceNew on labels #4734
Added ForceNew on labels #4734
Conversation
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @melinath, please review this PR or find an appropriate assignee. |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=184495" |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccBillingBudget_billingBudgetUpdateRemoveFilter|TestAccBillingBudget_billingBudgetLastperiodExample|TestAccBillingBudget_billingBudgetBasicExample|TestAccBillingBudget_billingBudgetFilterExample|TestAccBillingBudget_billingBudgetNotifyExample|TestAccComputeBackendService_internalLoadBalancing You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=184501" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the docs it looks like description can be modified without recreating the resource - perhaps input
should just be on key
and valueType
?
It would be great to have a test that would have caught this - i.e. verifying that label deletion works.
The issue on the |
yes, the issue is not with description - it should be safe to update description without recreating the resource. With the current PR, it seems like updating the description would be a change to the label, which would cause the entire resource to be recreated. Is that correct? I think we only need to recreate if a label key or valueType changes; we shouldn't recreate if a label description changes. |
I see what you mean now. Thank you. @melinath Updating the PR |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=185262" |
@melinath I added a test on updating description |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccComputeBackendService_internalLoadBalancing|TestAccLoggingMetric_descriptionUpdated|TestAccTags You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=185264" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test should be making sure that changing the label key works (rather than the description), since changing the label key was the original trigger of the bug.
Changes in key and/or value triggers recreation. There is nothing we should do in test for these two fields. We want to make sure changing description does not trigger recreation |
per discussion:
|
Fixes hashicorp/terraform-provider-google#9000
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)