Closed joyeecheung closed 6 years ago
I assume that you plan to check on hasNextItems
and if so request the list for last totalCount - 100
.
BTW i notices something from last time members can't retrieves the list i think (at-least i can't) so we might need to have a not for this somewhere. Sorry i should have brought this up before.
@cPhost The whole pagination thing has already been implemented and used by other queries, see
This PR just uses that by passing the path params and fix the query.
BTW i notices something from last time members can't retrieves the list i think (at-least i can't) so we might need to have a not for this somewhere. Sorry i should have brought this up before.
Do you mean you don't have the permission to get the list? Have you configured the read:org
scope in your token?
Maybe thats it, it says it looks like you have correct authorization ... but not allow to access data
. My token is since the repo started so its only for the email
one.
Edit: I was using wrong token so it wasn't work, i do have read:org
for the one i was suppose to use :)
@nodejs/automation Anyone wants to review this?
@joyeecheung this lgtm to me but was waiting for you to fix the tests.
The coverage reporter failed and not the tests actually
Merging #185 into master will decrease coverage by
<.01%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #185 +/- ##
==========================================
- Coverage 93.74% 93.73% -0.01%
==========================================
Files 17 17
Lines 655 654 -1
==========================================
- Hits 614 613 -1
Misses 41 41
Impacted Files | Coverage Δ | |
---|---|---|
lib/team_info.js | 95.65% <100%> (-0.1%) |
:arrow_down: |
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 3bb1dd5...809dd41. Read the comment docs.
@cPhost Thanks for catching that..I am probably too used to red CIs these days :( Fixed tests. PTAL
@joyeecheung no problem i though you were on it :), anyways the test lgtm since it just involved some promise fixed.
Do not cap on the 100 limit.