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 content in the google_storage_bucket_object_content data source which is incorrectly marked as a non-computed attribute #10778

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

wafrelka
Copy link
Contributor

@wafrelka wafrelka commented May 23, 2024

Fixes hashicorp/terraform-provider-google#15717

Release Note Template for Downstream PRs (will be copied)

storage: fixed an issue where plans with a dependency on the `content` field in the `google_storage_bucket_object_content` data source could erroneously fail

Copy link

google-cla bot commented May 23, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot requested a review from NickElliot May 23, 2024 17:21
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@NickElliot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests service/storage and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels May 23, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 28 insertions(+), 3 deletions(-))
google-beta provider: Diff ( 4 files changed, 28 insertions(+), 3 deletions(-))

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field content transitioned from optional+computed to optional google_storage_bucket_object - reference

If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 95
Passed tests: 88
Skipped tests: 6
Affected tests: 1

Click here to see the affected service packages
  • storage

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccDataSourceStorageBucketObjectContent_Issue15717

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataSourceStorageBucketObjectContent_Issue15717[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

Copy link

This PR has been waiting for review for 2 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@NickElliot
Copy link
Contributor

Going to verify some of the behavior here locally to ensure this change isn't actually breaking due to the weirdness of how GCS buckets function as handwritten resources.

Copy link

@GoogleCloudPlatform/terraform-team This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Jun 6, 2024

@GoogleCloudPlatform/terraform-team This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@wafrelka
Copy link
Contributor Author

wafrelka commented Jun 10, 2024

Is there anything I should do to move this Pull Request forward?

Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

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

Sorry about that prolonged check on my end.

Can you undo the change removing the "computed" attribute from the resource? I don't believe it should affect the change made in mmv1/third_party/terraform/services/storage/data_source_storage_bucket_object_content.go that would resolve the null issue, and would prevent this from being a breaking change.

@github-actions github-actions bot requested a review from NickElliot June 20, 2024 14:41
@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Jun 20, 2024
@wafrelka
Copy link
Contributor Author

I don't think this is a breaking change as content has never been a computed attribute since it was implemented.

Nevertheless, I reverted the change to the resource and force-pushed the branch.
Thank you for your review. :)

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Jun 21, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 28 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 3 files changed, 28 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 97
Passed tests: 90
Skipped tests: 7
Affected tests: 0

Click here to see the affected service packages
  • storage

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

Copy link

@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link

@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@wafrelka
Copy link
Contributor Author

Could you take a look?

Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

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

LGTM!

@NickElliot
Copy link
Contributor

NickElliot commented Jul 3, 2024

@wafrelka this change is going to be reverted because removing the ability to supply to the data source is breaking (despite this not having functional purpose), if you want to reopen the PR against the 6.0.0 release branch (per https://googlecloudplatform.github.io/magic-modules/develop/breaking-changes/make-a-breaking-change/) that would be appreciated!

I'll go ahead and handle adding the deprecation notice in the meantime.

@wafrelka
Copy link
Contributor Author

wafrelka commented Jul 7, 2024

@NickElliot can we mark the content attribute as "computed" and "optional"?
I think it will fix hashicorp/terraform-provider-google#15717 without breaking the ability to set the field.

@github-actions github-actions bot requested a review from NickElliot July 7, 2024 13:32
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
…ce which is incorrectly marked as a non-computed attribute (GoogleCloudPlatform#10778)
vijaykanthm pushed a commit to vijaykanthm/magic-modules that referenced this pull request Jul 22, 2024
…ce which is incorrectly marked as a non-computed attribute (GoogleCloudPlatform#10778)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants