-
Notifications
You must be signed in to change notification settings - Fork 228
Add requestFileInfo param to MethodsClient#filesUploadV2 method #1081
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
Add requestFileInfo param to MethodsClient#filesUploadV2 method #1081
Conversation
f7e7899 to
6501edd
Compare
Codecov Report
@@ Coverage Diff @@
## main #1081 +/- ##
============================================
+ Coverage 75.95% 75.97% +0.01%
- Complexity 3774 3776 +2
============================================
Files 413 413
Lines 11750 11754 +4
Branches 1152 1153 +1
============================================
+ Hits 8925 8930 +5
Misses 2130 2130
+ Partials 695 694 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
6501edd to
480be25
Compare
WilliamBergamin
left a comment
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 a nit, but this looks good to me 💯
| underlyingException.getFileInfoResponses().add(fileInfo); | ||
| if (!fileInfo.isOk()) { | ||
| throw underlyingException; | ||
| if (v2Request.isRequestFileInfo()) { |
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 would tend to try and place this in its own function named something like fetchFile that returns the File object from fileInfo.getFile() or partialFileObject
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.
Thanks for the suggestion. In this case, the part won't be reused elsewhere plus we have to pass v2Request
and underlyingException to the internal method, which is not so simple. So, let me go with the current code.
This pull request adds requestFileInfo option to MethodsClient#filesUploadV2 method for feature parity with Node and Python SDKs. See the following PRs for its context:
Category (place an
xin each of the[ ])Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.