Skip to content
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

Fix missing fields on Certificate #5941

Merged

Conversation

gfxcc
Copy link
Contributor

@gfxcc gfxcc commented Apr 13, 2022

fixes hashicorp/terraform-provider-google#10966

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

  • 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).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • 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).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

privateca: added new output fields on `google_privateca_certificate` including `issuer_certificate_authority`, `pem_certificate_chain` and `certificate_description.x509_description`

@modular-magician
Copy link
Collaborator

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.

@slevenick, please review this PR or find an appropriate assignee.

@modular-magician
Copy link
Collaborator

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

Diff report:

Terraform GA: Diff ( 2 files changed, 437 insertions(+), 232 deletions(-))
Terraform Beta: Diff ( 2 files changed, 437 insertions(+), 232 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1982
Passed tests 1740
Skipped tests: 240
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccServiceNetworkingPeeredDNSDomain_basic|TestAccFirebaserulesRelease_BasicRelease

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[view]
TestAccServiceNetworkingPeeredDNSDomain_basic[view]

All tests passed
View the build log or the debug log for each test

@gfxcc gfxcc marked this pull request as ready for review April 13, 2022 20:02
Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

These were left over from the beta implementation that was scrapped when the API went to v1

@slevenick slevenick self-requested a review April 14, 2022 21:32
@slevenick
Copy link
Contributor

Unfortunately after consultation with another team member I don't think we can go forward with this. Removing fields even if they are incorrect, output-only and empty is considered a breaking change that can't be done in a minor version.

Can you change this to be purely additive, and mark the incorrect fields with a deprecation: message? We are able to add fields as needed for this use case, but we can't remove the old ones

@gfxcc gfxcc force-pushed the fix-missing-fields-on-certificate branch from a1e9be2 to d248f65 Compare April 20, 2022 20:12
@gfxcc gfxcc force-pushed the fix-missing-fields-on-certificate branch from d248f65 to 92a032b Compare April 20, 2022 20:14
@modular-magician
Copy link
Collaborator

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

Diff report:

Terraform GA: Diff ( 2 files changed, 657 insertions(+))
Terraform Beta: Diff ( 2 files changed, 657 insertions(+))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@gfxcc
Copy link
Contributor Author

gfxcc commented Apr 20, 2022

Change the PR to be additive only.
@slevenick , it seems the documentation is not updated for those fields updated with a deprecation_message. Is there anything missing?

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1988
Passed tests 1746
Skipped tests: 240
Failed tests: 2

Action taken

Triggering VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccFirebaserulesRelease_BasicRelease|TestAccServiceNetworkingPeeredDNSDomain_basic

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease[view]
TestAccServiceNetworkingPeeredDNSDomain_basic[view]

All tests passed
View the build log or the debug log for each test

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable

@gfxcc
Copy link
Contributor Author

gfxcc commented Apr 21, 2022

#5962 is merged to add Deprecated annotation for output fields.

saqibkhanspeaks12 pushed a commit to saqibkhanspeaks12/magic-modules that referenced this pull request Apr 25, 2022
betsy-lichtenberg pushed a commit to betsy-lichtenberg/magic-modules that referenced this pull request Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty pem_certificates field on google_privateca_certificate
3 participants