Commit graph

12 commits

Author SHA1 Message Date
Thong Kuah
f540ffcef6 Add frozen_string_literal to spec/lib (part 1)
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:25:07 +12:00
Heinrich Lee Yu
aeb67dd489 Upgrade to Rails 5.2
Updates changed method names and fixes spec failures
2019-07-12 10:15:31 +08:00
Rémy Coutable
a1088c7a31
Include the port in the URLs of the API Link headers
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-06-06 15:11:48 +02:00
Adam Mulvany
38bbc097fa
Properly implement API pagination headers and add specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-21 18:29:00 +01:00
Rémy Coutable
26978cb270
[API] Omit X-Total{,-Pages} when count > 10k
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-22 18:13:04 +01:00
George Tsiolis
124cece3b3 Include private contributions in user contribution graph 2018-09-07 15:08:55 +00:00
Andreas Brandl
f8aee5b086 Add keyset pagination for API calls.
Closes #45756.
2018-05-21 18:02:41 +02:00
Francisco Javier López
7c2b7296d4 Added default order to UserFinder 2017-12-04 09:49:53 +00:00
Toon Claes
e17d9529fa Total Pages should be at least one
And the link to the last page cannot be `page=0`.
2017-08-17 21:47:01 +02:00
Toon Claes
a98d17a838 Add specs for pagination Link header
Add specs that check the 'Link' header for the inclusion of:

 - rel="first"
 - rel="last"
 - rel="prev"
 - rel="next"

Fixes gitlab-org/gitlab-ce#36618

Related to gitlab-com/infrastructure#2532
2017-08-17 21:47:01 +02:00
Robert Speicher
72a7b30c9f Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
Grzegorz Bizon
f9331db136 Add tests for pagination module extracted from API 2016-12-27 12:11:29 +01:00