-
Notifications
You must be signed in to change notification settings - Fork 53
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 Code Query Parameter #99
Conversation
68695b9
to
81d14bc
Compare
@jthomas, I am seeing a trigger failure in Travis. Any idea why that test is failing?
|
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.
Code looks perfect. README needs updating with the new parameter details. Add a sentence or two @ https://github.com/apache/incubator-openwhisk-client-js#retrieve-resource
@@ -60,7 +79,7 @@ test('should retrieve action from string identifier', t => { | |||
t.is(path, `namespaces/${ns}/actions/12345`) | |||
} | |||
|
|||
return actions.get('12345') |
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.
Did you mean to make this change?
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.
@jthomas, yes this change was needed to prevent an error now that action.get
doesn't use the default get
method from resources.js
.
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.
@dubeejw The test case was throwing an error because this change broke that API. Can you submit a PR to revert this test case change and modify the get
method to handle the string identifier. There's a parse_options
method that you can use to handle the string case correctly. https://github.com/apache/incubator-openwhisk-client-js/blob/master/lib/resources.js#L64-L70
We'll push this out as a patch release.
Can you re-base this PR once #102 is merged to resolve the build issue? |
Codecov Report
@@ Coverage Diff @@
## master #99 +/- ##
==========================================
+ Coverage 99.16% 99.17% +<.01%
==========================================
Files 14 14
Lines 361 364 +3
==========================================
+ Hits 358 361 +3
Misses 3 3
Continue to review full report at Codecov.
|
@jthomas, Travis is passing for this one now. |
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.
LGTM
Adds an optional query parameter for action fetches that determines if action code will be retrieved or not.