summaryrefslogtreecommitdiff
path: root/lib/api/helpers/pagination.rb
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-121-1/+3
| | | | Updates changed method names and fixes spec failures
* Include the port in the URLs of the API Link headersRémy Coutable2019-06-061-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Adds the Rubocop ReturnNil copAndrew Newdigate2019-03-061-1/+1
| | | | | This style change enforces `return if ...` instead of `return nil if ...` to save maintainers a few minor review points
* Properly implement API pagination headers and add specsAdam Mulvany2019-02-211-39/+36
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* [API] Omit X-Total{,-Pages} when count > 10kRémy Coutable2019-01-221-3/+14
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+4
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Add feature-flag for keyset pagination.ab-42194-keyset-paginationAndreas Brandl2018-05-211-1/+1
|
* Add keyset pagination for API calls.Andreas Brandl2018-05-211-5/+165
| | | | Closes #45756.
* Refactor and extract DefaultPaginationStrategy.Andreas Brandl2018-05-211-43/+56
|
* Return only limited pagination headers for search API endpointsJarka Kadlecová2018-02-061-4/+13
|
* Added default order to UserFinderFrancisco Javier López2017-12-041-0/+10
|
* Total Pages should be at least onetc-git-tower-pagination-linksToon Claes2017-08-171-6/+11
| | | | And the link to the last page cannot be `page=0`.
* don't add next page link if current page is out of rangeJordan Patterson2017-08-171-1/+1
|
* Paginate all endpoints that return an arrayRobert Schilling2017-02-161-1/+1
|
* Extract API pagination code to a separete moduleGrzegorz Bizon2016-12-071-0/+45