cerebris / jsonapi-resources

A resource-focused Rails library for developing JSON:API compliant servers.
http://jsonapi-resources.com
MIT License
2.32k stars 533 forks source link

Move `requires_record_count` to class instance #1385

Closed lgebhardt closed 2 years ago

lgebhardt commented 2 years ago

Will fallback to deprecated class method for custom paginators derived from JSONAPI::Paginator

This will allow for custom paginators to optionally run record count queries based on pagination parameters in the request. Some count queries are expensive and are not required for all client uses.

All Submissions:

New Feature Submissions:

Bug fixes and Changes to Core Features:

Test Plan:

Reviewer Checklist: