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: Review session updates #1964

Merged
merged 9 commits into from
Apr 5, 2023

Conversation

sydney-munro
Copy link
Collaborator

Changes from review session with @BenWhitehead
Summary of changes:

  • Make public classes private
  • Remove array creation from callable to reduce multiple threads creating options array
  • Change generic future to be ApiFuture
  • Add documentation to configs
  • Have tests await task completion
  • Check to make sure directories have been created before attempting to write a file on download

@sydney-munro sydney-munro self-assigned this Apr 3, 2023
@sydney-munro sydney-munro requested a review from a team as a code owner April 3, 2023 23:37
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. labels Apr 3, 2023
Comment on lines +54 to 60
/**
* A common prefix that is applied to downloaded objects before they are written to the
* filesystem.
*/
public @NonNull String getPrefix() {
return prefix;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This isn't currently being used but DownloadCallable.

Instead of prefix what if we change this to baseDirectory or downloadDirectory and instead of String we use Path. That way, when download job is creating files it can resolved them from this directory AND validate the output path of the object after resolution is still below the output path.

What do you think?

We don't have to make this change in this PR, doing it in a follow up would be better.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am onboard with that change. I will update in a followup.

sydney-munro and others added 5 commits April 4, 2023 10:11
@sydney-munro sydney-munro merged commit abc6ec4 into feat/transfer-manager Apr 5, 2023
@sydney-munro sydney-munro deleted the review-session-updates branch April 5, 2023 17:08
gcf-owl-bot bot added a commit that referenced this pull request May 9, 2024
* chore: update dependency versions in java templates

* update other templates
Source-Link: googleapis/synthtool@0b86c72
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e
sydney-munro pushed a commit that referenced this pull request May 21, 2024
* chore: update dependency versions in java templates

* update other templates
Source-Link: googleapis/synthtool@0b86c72
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
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 googleapis/java-storage API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants