Skip to content
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

Merged
merged 2 commits into from
Jan 12, 2018
Merged

Sugar namespsace get. #95

merged 2 commits into from
Jan 12, 2018

Conversation

rabbah
Copy link
Member

@rabbah rabbah commented Jan 11, 2018

@codecov-io
Copy link

codecov-io commented Jan 11, 2018

Codecov Report

Merging #95 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
lib/namespaces.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8183c1d...ebe3d78. Read the comment docs.

Copy link
Contributor

@starpit starpit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

let triggers = this.client.request('GET', 'namespaces/_/triggers')
let rules = this.client.request('GET', 'namespaces/_/rules')
return Promise
.all([pactions, packages, triggers, rules])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is pactions?

packages: lists[1],
triggers: lists[2],
rules: lists[3]
}))
Copy link
Contributor

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?

@jthomas
Copy link
Member

jthomas commented Jan 11, 2018

👍

@csantanapr csantanapr merged commit 370fc7c into apache:master Jan 12, 2018
@jthomas jthomas mentioned this pull request Jan 15, 2018
@rabbah rabbah deleted the wsklist branch April 30, 2021 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants