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

Added pagination of consumers, plus check for non array #45

Merged
merged 2 commits into from
Aug 26, 2016
Merged

Added pagination of consumers, plus check for non array #45

merged 2 commits into from
Aug 26, 2016

Conversation

vl4d
Copy link
Contributor

@vl4d vl4d commented Aug 20, 2016

Initially for #30

  • added pagination (recursively call with next url and add to results)
  • added check for array so wont throw map error when acl isnt found, returns empty array if not.

Please review. After you give the go ahead I will implement the caching much like getJson in adminApi.js

I have tested on a kong v: 0.8.0 with 500 + consumers.

May solve: #43 #33 #32

- added check for array or not.
@vl4d
Copy link
Contributor Author

vl4d commented Aug 20, 2016

@CyExy let me know if this is the repo style as well.

@vl4d vl4d changed the title Added pagination of consumers, plus check for {message: "not found"} Added pagination of consumers, plus check for non array Aug 21, 2016
@CyExy
Copy link
Contributor

CyExy commented Aug 24, 2016

Sorry for a late response, couldn't respond because I was on a holiday.

This looks good to me

@vl4d
Copy link
Contributor Author

vl4d commented Aug 25, 2016

Awesome, will clean it up and let you know.

- Also added checks to ensure variable is an array before using "some" function
@vl4d
Copy link
Contributor Author

vl4d commented Aug 25, 2016

@CyExy functionality should be the same feel free to review, test and merge when comfortable.

@CyExy
Copy link
Contributor

CyExy commented Aug 26, 2016

@vl4d Great work, thanks for this PR!

@CyExy CyExy merged commit d5f9b8c into mybuilder:master Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants