magic-modules icon indicating copy to clipboard operation
magic-modules copied to clipboard

remove computed keys from json

Open megan07 opened this issue 4 years ago • 6 comments

Fixes https://github.com/hashicorp/terraform-provider-google/issues/9976 Fixes https://github.com/hashicorp/terraform-provider-google/issues/7242 as well, I think

I chose this approach because that second issue seemed to show there were more fields than just the one showing up in the test that were computed, and I think this should cover them all, but it's also possible I'm overlooking a potential issue.

If this PR is for Terraform, I acknowledge that I have:

  • [x] Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • [x] Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • [x] Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • [x] Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • [x] Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

monitoring: fixed perma-diff in `google_monitoring_dashboard` by not comparing computed keys returned by API that aren't defined in the config.

megan07 avatar Jan 05 '22 20:01 megan07

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 29 insertions(+), 7 deletions(-)) Terraform Beta: Diff ( 1 file changed, 29 insertions(+), 7 deletions(-))

modular-magician avatar Jan 05 '22 20:01 modular-magician

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic|TestAccApigeeEnvironmentIamBindingGenerated|TestAccApigeeEnvironmentIamMemberGenerated|TestAccApigeeEnvironmentIamPolicyGenerated|TestAccContainerCluster_withBootDiskKmsKey|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccTags You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=240047

modular-magician avatar Jan 05 '22 22:01 modular-magician

Tests failed during RECORDING mode: TestAccTags|TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccContainerNodePool_withInvalidUpgradeSettings Please fix these to complete your PR

modular-magician avatar Jan 05 '22 22:01 modular-magician

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 2 files changed, 31 insertions(+), 7 deletions(-)) Terraform Beta: Diff ( 2 files changed, 31 insertions(+), 7 deletions(-))

modular-magician avatar Jan 06 '22 20:01 modular-magician

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic|TestAccApigeeEnvironmentIamBindingGenerated|TestAccApigeeEnvironmentIamMemberGenerated|TestAccApigeeEnvironmentIamPolicyGenerated|TestAccContainerNodePool_withInvalidUpgradeSettings|TestAccOsConfigOsPolicyAssignment_FixedOsPolicyAssignment|TestAccOsConfigOsPolicyAssignment_PercentOsPolicyAssignment You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=240549

modular-magician avatar Jan 06 '22 22:01 modular-magician

Tests failed during RECORDING mode: TestAccDatasourceGoogleServiceNetworkingPeeredDnsDomain_basic|TestAccContainerNodePool_withInvalidUpgradeSettings Please fix these to complete your PR

modular-magician avatar Jan 06 '22 22:01 modular-magician

@rileykarson @megan07 what is the status of this PR? Will be merged for the upcoming 5.0.0 release?

IchordeDionysos avatar Sep 10 '23 18:09 IchordeDionysos

Ah, we'd lost track of this- @c2thorn can you take a look?

rileykarson avatar Sep 11 '23 16:09 rileykarson

This is targeted for 5.0.0 release, but will need someone to take it over and rebase. I'll tentatively take it.

c2thorn avatar Sep 11 '23 16:09 c2thorn

closing in favor of https://github.com/GoogleCloudPlatform/magic-modules/pull/9065

c2thorn avatar Sep 23 '23 03:09 c2thorn