-
Notifications
You must be signed in to change notification settings - Fork 54
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
Sugar namespsace get. #95
Conversation
Codecov Report
@@ Coverage Diff @@
## master #95 +/- ##
==========================================
- Coverage 99.17% 99.16% -0.01%
==========================================
Files 14 14
Lines 362 361 -1
==========================================
- Hits 359 358 -1
Misses 3 3
Continue to review full report at Codecov.
|
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
lib/namespaces.js
Outdated
let triggers = this.client.request('GET', 'namespaces/_/triggers') | ||
let rules = this.client.request('GET', 'namespaces/_/rules') | ||
return Promise | ||
.all([pactions, packages, triggers, rules]) |
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.
what is pactions
?
lib/namespaces.js
Outdated
packages: lists[1], | ||
triggers: lists[2], | ||
rules: lists[3] | ||
})) |
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.
it may be a bit cleaner here to use the nodejs bind magic?
Promise.all([actions, packages, triggers, rules])
.then(([actions, packages, triggers, rules]) => ({actions, packages, triggers, rules}))
not sure, but maybe?
👍 |
Fixes #94.
Due to apache/openwhisk#3167 and apache/openwhisk#3153.