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: Add Universe Domain to Java-Core #2329
feat: Add Universe Domain to Java-Core #2329
Changes from 12 commits
0397cc3
9ba6313
b0e7614
6cc86ac
c68e996
2c23732
db4965a
3d63297
5f8d48f
881b5c1
8fcf832
08bbe56
8e878f9
acb94a8
f4eaad3
6709f2c
ac02baf
793211c
5a2e6db
876b864
a6f3234
73db273
60c096b
f63e8cd
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.
Would you add a paragraph that explains the validity of the argument in terms of
isValidUniverseDomain
?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 think
host
in java-core is basicallyendpoint
in Gax without the port, based on the value of DEFAULT_HOST. So we should either rename this togetResolvedHost
and remove the port concatenation informatEndpoint
, or returnhost:port
ifhost
is specified.Can you please verify the format of
host
?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 think the format of host is intended to be
scheme://host:port
. For gRPC, the channel is expecting something in format ofdomain:port
and httpjson is open to anything valid.I see that the handwritten libraries handle these inside their own codebase:
I think it should be that the gRPC clients use
getResolvedEndpoint()
and expect something in the formathost:port
. Apiary clients (httpjson) will usegetResolvedApiaryEndpoint()
and that will return the just the host.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.
Would you add source code comment how you generated this value?
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 didn't generate this value. I copied it from above and added a new json entry for
universe_domain
. Thisuniverse_domain
addition to Credentials was part of Auth v1.21.0There 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.
Can you add that "copied it from above and added a new json entry for universe_domain"?
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.
Added