-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Object lock feature implementation for Storage #9363
Conversation
Hello! I am a robot. It looks like you are a: @melinath, 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. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 241 insertions(+), 1 deletion(-)) |
Tests analyticsTotal tests:
|
eeca300
to
ac0e1ef
Compare
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 241 insertions(+), 1 deletion(-)) |
Tests analyticsTotal tests: Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccBigQueryDataTable_bigtable|TestAccHealthcareDatasetIamPolicy|TestAccStorageObject_retention|TestAccStorageBucket_per_object_retention |
Rerun these tests in REPLAYING mode to catch issues
|
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.
This looks pretty straightforward - thanks! A few questions & requests below.
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket_test.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/r/storage_bucket.html.markdown
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object_test.go
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object_test.go
Show resolved
Hide resolved
…ucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
…ucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
…ucket_test.go.erb Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
…ucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
…ucket.go.erb Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 242 insertions(+), 1 deletion(-)) |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 5 files changed, 242 insertions(+), 1 deletion(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_storage_bucket" "primary" {
enable_object_retention = # value needed
}
Resource: resource "google_storage_bucket_object" "primary" {
retention {
retain_until_time = # value needed
}
}
|
|
mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.erb
Outdated
Show resolved
Hide resolved
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 7 files changed, 252 insertions(+), 9 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataprocJobIamPolicy|TestAccStorageObject_retention|TestAccStorageBucket_enable_object_retention |
Rerun these tests in REPLAYING mode to catch issues
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.
|
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.
LGTM except a couple tiny changes and also reverting one of the changes I previously recommended 🤦
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/r/storage_bucket_object.html.markdown
Outdated
Show resolved
Hide resolved
…ucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
…t.html.markdown Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
Hi there, I'm the Modular magician. I've detected the following information about your changes: Breaking Change Detection FailedThe breaking change detector crashed during execution. This is usually due to the downstream provider(s) failing to compile. Please investigate or follow up with your reviewer. Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 249 insertions(+), 4 deletions(-)) |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 248 insertions(+), 5 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataprocClusterIamPolicy|TestAccDataprocJobIamPolicy|TestAccStorageObject_retention |
Rerun these tests in REPLAYING mode to catch issues
|
updated release notes to match current field names & specify one note per block |
I think the TGC test failures are spurious - looks like it's not able to compile the provider. This PR doesn't alter TGC so going forward with merge. |
) * Early implementation of bucket object lock setting. * Complete implementation of object lock for buckets. * Compelete implementation, waiting for allowlist. * Tests pass against test environment. * Fixes bug in object test. * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_test.go.erb Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.erb Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Updates from review comments * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/website/docs/r/storage_bucket_object.html.markdown Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Removing non-deterministic date from test * Removing unused variable * fixing nested_customer_encryption anchor link --------- Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
) * Early implementation of bucket object lock setting. * Complete implementation of object lock for buckets. * Compelete implementation, waiting for allowlist. * Tests pass against test environment. * Fixes bug in object test. * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_test.go.erb Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.erb Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Updates from review comments * Update mmv1/third_party/terraform/services/storage/resource_storage_bucket_object.go Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Update mmv1/third_party/terraform/website/docs/r/storage_bucket_object.html.markdown Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * Removing non-deterministic date from test * Removing unused variable * fixing nested_customer_encryption anchor link --------- Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
Adds support for the Object Lock feature, which allows for setting retention policies on objects.
Release Note Template for Downstream PRs (will be copied)