Skip to content

Conversation

saihtaungkham
Copy link
Member

Improve the Github Pagination Logic.
Cherry Pick one fix from develop branch.

Copy link

@rhezaharliman rhezaharliman left a comment

Choose a reason for hiding this comment

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

Thanks, Sai! I haven't checked the behavior, but since the calculation also looks good, I think it'll be fine.
It'll be great though if the variable is easier to understand (or adds some documentation).
For example, item_per_page will be easier to understand rather than per_page. or firs_page_item_index, etc. It's just a matter of style.

@saihtaungkham
Copy link
Member Author

I fixed the variable name and some code formatting is applied. Thanks for checking my formulae too.

Copy link

@rhezaharliman rhezaharliman left a comment

Choose a reason for hiding this comment

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

Thanks, Sai! Looks good for me :)

@saihtaungkham saihtaungkham merged commit d468d98 into develop Jun 14, 2020
@saihtaungkham saihtaungkham deleted the fix/github_pagination branch June 14, 2020 11:25
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.

2 participants