-
Notifications
You must be signed in to change notification settings - Fork 282
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 empty value on optional credentialsJSON for Spanner #1948
Conversation
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.
The change makes sense to me, but concerned it has taken 3 PRs to get this right. Can we add a test?
3645316
to
3877e9e
Compare
Hi @vroldanbet |
@lexcao I've made client initialization simpler by making the option handle empty credentials JSON, which Spanner client does not handle well. I also added a test. Please have a look and make sure this works for you. |
Hi @vroldanbet The internal operation in the |
@lexcao, you are right. I'd suggest removing my commit, and if anything adding a new commit only with the test. I'd also suggest opening a PR upstream spanner SDK to fix this annoying behaviour |
Thanks, let me try to raise a PR for Spanner. |
Closes authzed#1941 This is the follow-up PR for authzed#1942, which fix the optional value issue. Signed-off-by: Lex Cao <[email protected]>
63fe50f
to
a630362
Compare
a630362
to
d1fc4ee
Compare
Hi @vroldanbet For now, I think we should add the fix for this, since it could break the use of I will make it more ergonomic after the upstream accepts my PR then. |
Closes #1941
This is the follow-up PR for #1942, which fix the optional value issue.