Skip to content

fix get projects limit#41

Open
ccl0326 wants to merge 3 commits intoplouc:masterfrom
ccl0326:clchen_dev
Open

fix get projects limit#41
ccl0326 wants to merge 3 commits intoplouc:masterfrom
ccl0326:clchen_dev

Conversation

@ccl0326
Copy link
Copy Markdown

@ccl0326 ccl0326 commented Sep 5, 2016

as title.

@ccl0326
Copy link
Copy Markdown
Author

ccl0326 commented Sep 8, 2016

hi,@rande can you follow this pr? we need fix the default limit number, if you consider this is fine, i can rewrite a push request more robust.

Comment thread projects.go
if err == nil {
projects = append(projects, pageProjects...)
page++
if len(pageProjects) < max_page_size {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

you'll have an extra call if the last page contains extactly max_page_size items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants