-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(storage): add support for matchGlob parameter #7728
Conversation
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. |
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.
Thanks for the PR. We need to add this to the gRPC implementation as well, and add a case for this to the unit/integration tests. LMK if you'd like pointers on how to do this, or if you're okay with us taking care of it.
@@ -347,6 +347,7 @@ func (c *httpStorageClient) ListObjects(ctx context.Context, bucket string, q *Q | |||
req.EndOffset(it.query.EndOffset) | |||
req.Versions(it.query.Versions) | |||
req.IncludeTrailingDelimiter(it.query.IncludeTrailingDelimiter) | |||
req.MatchGlob(it.query.MatchGlob) |
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.
We'll also need to add this to the other interface implementation in grpc_client.go
Thank you @tritone. It does not matter for me if you take it from here or if I update the PR with necessary changes. However, I have not looked into where to find any documentation around the gRPC api, and if the parameter is available there, so some pointers would be great. |
Adds support for MatchGlob in listing objects. Only JSON is supported because the parameter is not yet available via the gRPC API. Updates googleapis#7727 Supercedes googleapis#7728
Adds support for MatchGlob in listing objects. Only JSON is supported because the parameter is not yet available via the gRPC API. Updates googleapis#7727 Supercedes googleapis#7728
Adds support for MatchGlob in listing objects. Only JSON is supported because the parameter is not yet available via the gRPC API. Updates googleapis#7727 Supercedes googleapis#7728
Apologies for the delay. Closing this in favor of #8097 which has the necessary testing etc. |
This PR aims to add support for the matchGlob parameter when listing objects.
It currently only adds support for the parameter when using the http API.
Fixes #7727