-
Notifications
You must be signed in to change notification settings - Fork 32
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: use projectId from CloudStorageConfig #429
Conversation
Codecov Report
@@ Coverage Diff @@
## master #429 +/- ##
============================================
+ Coverage 72.29% 72.57% +0.27%
Complexity 500 500
============================================
Files 29 29
Lines 1664 1670 +6
Branches 277 276 -1
============================================
+ Hits 1203 1212 +9
+ Misses 336 335 -1
+ Partials 125 123 -2
Continue to review full report at Codecov.
|
import org.junit.runner.RunWith; | ||
import org.junit.runners.JUnit4; | ||
|
||
/** Unit tests for {@link CloudStorageFileSystemProvider} late initialization. */ |
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.
nit: I don't think this comment is true
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.
lol.... copy paste disaster over here!
fileSystem.provider().getProject() == null | ||
? null | ||
: Storage.BlobListOption.userProject(fileSystem.provider().getProject())); | ||
String userProject = fileSystem.config().userProject(); |
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.
Am I understanding correctly, the bug was reading projectId
from the ServiceOptions
instead of from the CloudStorageConfig
? If so, can we update the commit comment to explain this fact?
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.
Good call, that's much clearer.
f97db4d
to
0f64570
Compare
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #352 ☕️