-
Notifications
You must be signed in to change notification settings - Fork 662
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
Generalize handling of arguments with binary value types #519
Generalize handling of arguments with binary value types #519
Conversation
…lename is in a different part of the multipart body
Codecov Report
@@ Coverage Diff @@
## master #519 +/- ##
==========================================
- Coverage 79.7% 79.42% -0.29%
==========================================
Files 6 6
Lines 271 277 +6
Branches 42 42
==========================================
+ Hits 216 220 +4
- Misses 38 39 +1
- Partials 17 18 +1
Continue to review full report at Codecov.
|
src/WebClient.spec.js
Outdated
}); | ||
}); | ||
|
||
// Reactivate this test once we find out if the workaround in the test case before is necessary | ||
it('should log a warning when file is a Buffer and there is no filename', function () { | ||
// TODO: re-enable this once we decide if we want to generate a random name or if we want to log a warning |
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.
an open point we should resolve before merging this.
blocker: i just tried using this implementation with a
|
okay, i've learned an interesting thing. the following is true for if in the multipart body, the part that contains the binary data does not specify a |
and the same is true for |
side note: love it when you implement a new feature with more deletions than additions 💯 |
@@ -656,6 +651,8 @@ export interface WebAPIHTTPError extends CodedError { | |||
* Helpers | |||
*/ | |||
|
|||
const defaultFilename = 'Untitled'; |
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.
Should we add a note to the docs 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.
heh, if we had generated docs for the individual methods at all, then i'd say yes.
Summary
based on #513 - as this PR states, this should allow methods like
users.setPhoto
to also work properly.fixes #452
Requirements (place an
x
in each[ ]
)