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

feat(storage): add BucketName to BucketHandle #10127

Merged
merged 2 commits into from
May 17, 2024

Conversation

derekperkins
Copy link
Contributor

@derekperkins derekperkins commented May 7, 2024

The bucket name is currently only accessible via the Attrs() network call, and can be trivially returned from the bucket handle. Today we have to pass around a BucketHandle and the bucket name separately.

I used BucketName instead of just Name, as ObjectHandle has both BucketName and ObjectName.

@derekperkins derekperkins requested review from a team as code owners May 7, 2024 19:51
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label May 7, 2024
@tritone tritone added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 10, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 10, 2024
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

This looks fine to me. The go vet check is failing on go fmt, could you fix that?

The bucket name is currently only accessible via the Attrs() network call, and can be trivially returned from the bucket handle.

I used BucketName instead of just Name, as ObjectHandle has both BucketName and ObjectName.
@derekperkins
Copy link
Contributor Author

I used the web editor and left a stray tab. That should be resolved now.

@tritone tritone added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 13, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 13, 2024
@derekperkins
Copy link
Contributor Author

@tritone any blockers before merging this?

@tritone tritone added kokoro:force-run Add this label to force Kokoro to re-run the tests. automerge Merge the pull request once unit tests and other checks pass. labels May 17, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 17, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit 203cc59 into googleapis:main May 17, 2024
8 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 17, 2024
@derekperkins derekperkins deleted the patch-3 branch May 18, 2024 16:34
@derekperkins
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants