Skip to content

Meta: page_count#622

Merged
lgebhardt merged 8 commits intoJSONAPI-Resources:masterfrom
utilityboy:page-count-meta
May 4, 2016
Merged

Meta: page_count#622
lgebhardt merged 8 commits intoJSONAPI-Resources:masterfrom
utilityboy:page-count-meta

Conversation

@utilityboy
Copy link
Copy Markdown
Contributor

Added option for top level page_count meta for paged paginators in addition to the record_count.

A number of client-side paging libraries look for APIs to return a total page count.

Potential closes #126?

@utilityboy
Copy link
Copy Markdown
Contributor Author

@lgebhardt or @barelyknown is there anything else I can do here?

@lgebhardt
Copy link
Copy Markdown
Contributor

@utilityboy Sorry for the very late response. I swear I commented about this back in March, but I probably forgot to hit the comment button. Anyway, it's missing tests that cover the page count in the find operation. You can see coverage with:

COVERAGE=true bundle exec rake test

In addition the README needs to be updated for the configuration options.

@utilityboy
Copy link
Copy Markdown
Contributor Author

No problem @lgebhardt. I'll get on it this weekend. Thanks for the update.

@utilityboy
Copy link
Copy Markdown
Contributor Author

All set @lgebhardt. Let me know if there's anything else.

@lgebhardt lgebhardt merged commit 8ac47d2 into JSONAPI-Resources:master May 4, 2016
@lgebhardt
Copy link
Copy Markdown
Contributor

@utilityboy Thanks! Should be quite useful.

@lgebhardt lgebhardt mentioned this pull request May 5, 2016
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.

Pagination: total record/page count in meta

2 participants