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.
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: introduce
java.time
methods and variables #2780feat: introduce
java.time
methods and variables #2780Changes from 4 commits
7feaaa8
9178b4b
83256e7
525d5e1
260c835
2ac7606
9e13c15
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Errors$IsRetryableStatusResult is still marked as public even if it's only used by
ApiResultRetryAlgorithm
in the BQStorage SDK. I think it's still accessible which is problematic.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.
@PhongChuong what's the rationale of
Errors$IsRetryableStatusResult
being public? Is it similar to the case ofApiResultRetryAlgorithm
"visible for technical reasons"?Also, does it make sense to change their datatypes directly, without
threeten
alternatives as done currently?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.
I don't know the historical reason as to why it is public but from the code, I would assume that is it "visible for technical reasons". Specifically, while
IsRetryableStatusResult
is public, it seems to be only used inApiResultRetryAlgorithm
and it is not part of the return value. I think it would be okay to change the datatype directly here.@yirutang , what do you think?
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.
I am fine making it private. I don't think external user should use it.
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.
Why is this added in BQStorage and not used from sdk-platform-java?
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.
They are functions only used in BQS so far (confirmed other repos don't need them). However, the reason is simply because it's faster to implement here than waiting for a new release of gax with the utilities we have here. What if we follow up in gax and temporarily have these functions in this repo?
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.
Sure. Can we make this class package-private until we migrate this to Gax? Can you also create an issue in sdk-platform-java for this?
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.
As discussed internally, left as
@InternalApi
, referencing the new issue in sdk-platform: googleapis/sdk-platform-java#3412There 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 fix works for the current tests. Note that the literal
Z
is dropped from the config becauseappendZoneOrOffsetId()
usesZ
as the no-zone stringThere 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.
Added a test for
+00:00
in 260c835