feat(storage): add support for object context#32902
Merged
cpriti-os merged 15 commits intogoogleapis:mainfrom Apr 23, 2026
Merged
feat(storage): add support for object context#32902cpriti-os merged 15 commits intogoogleapis:mainfrom
cpriti-os merged 15 commits intogoogleapis:mainfrom
Conversation
|
Here is the summary of changes. You are about to add 3 region tags.
This comment is generated by snippet-bot.
|
Contributor
|
Temporarily adding label. We can remove next week |
Removed an empty line between context key/value definitions and local file declaration.
Remove redundant comment line in file.rb
cpriti-os
reviewed
Apr 1, 2026
There was a problem hiding this comment.
Please fix this failure
2) Failure:
Files Snippets::list_object_contexts#test_0001_filters out files on the basis of custom context key [acceptance/files_test.rb:351]:
In stdout.
--- expected
+++ actual
@@ -1,2 +1 @@
-"File: path/file_name_d3ea4590367438be3cfe6f5d5991e3ea.txt has context key: my-custom-key
cpriti-os
reviewed
Apr 1, 2026
| # @param [Boolean] soft_deleted If true, only soft-deleted object | ||
| # versions will be listed. The default is false. | ||
| # @param [String] filter An optional string for filtering listed objects. | ||
| # Currently only supported for the contexts field. |
There was a problem hiding this comment.
Is this supposed to change in the near future? If not lets not use Currently, just say
Supported for the contexts field or Supported fields: contexts
cpriti-os
reviewed
Apr 1, 2026
cpriti-os
reviewed
Apr 13, 2026
cpriti-os
reviewed
Apr 13, 2026
cpriti-os
approved these changes
Apr 17, 2026
cpriti-os
reviewed
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces new functionality to the
Google::Cloud::Storage::Fileclass, enabling direct manipulation of an object's context. This enhancement provides greater control over file metadata, facilitating more nuanced data management within Google Cloud Storage.Highlights