GitLab Bot
729e3765d5
Add latest changes from gitlab-org/gitlab@master
2020-03-24 12:09:42 +00:00
GitLab Bot
aaf5961054
Add latest changes from gitlab-org/gitlab@master
2020-03-18 15:09:45 +00:00
GitLab Bot
cd52759ee3
Add latest changes from gitlab-org/gitlab@master
2020-03-12 12:09:17 +00:00
GitLab Bot
c6c7437861
Add latest changes from gitlab-org/gitlab@master
2020-03-04 12:07:52 +00:00
GitLab Bot
f82d5dcab7
Add latest changes from gitlab-org/gitlab@master
2020-02-26 21:09:11 +00:00
GitLab Bot
3832718d89
Add latest changes from gitlab-org/gitlab@master
2020-01-22 18:08:47 +00:00
GitLab Bot
8b1228b0d4
Add latest changes from gitlab-org/gitlab@master
2020-01-10 15:07:47 +00:00
GitLab Bot
38bab6e158
Add latest changes from gitlab-org/gitlab@master
2019-12-13 03:07:50 +00:00
GitLab Bot
784fae4b9d
Add latest changes from gitlab-org/gitlab@master
2019-12-12 12:07:33 +00:00
GitLab Bot
e1867c38fc
Add latest changes from gitlab-org/gitlab@master
2019-12-06 18:07:44 +00:00
GitLab Bot
8723197387
Add latest changes from gitlab-org/gitlab@master
2019-12-05 12:07:43 +00:00
GitLab Bot
e2334f3613
Add latest changes from gitlab-org/gitlab@master
2019-12-04 00:06:15 +00:00
GitLab Bot
7801d133b6
Add latest changes from gitlab-org/gitlab@master
2019-11-12 09:06:14 +00:00
GitLab Bot
833eadad8c
Add latest changes from gitlab-org/gitlab@master
2019-10-29 09:06:10 +00:00
GitLab Bot
9e27f0d920
Add latest changes from gitlab-org/gitlab@master
2019-10-01 12:05:59 +00:00
Ash McKenzie
37cfaf27ab
Extract /internal/allowed API Actor logic out
...
Created new API::Support::GitAccessActor class to
encapsulate some of the more edge logic, making
the /internal/allowed route much cleaner.
2019-09-05 13:11:29 +10:00
Patrick Derichs
f1e24d4d31
Add label_id parameter to label API for PUT and DELETE
...
Add specs for new parameter and updated documentation as well.
2019-08-23 17:45:42 +00:00
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
Stan Hu
58c09eb709
Use a path for the related merge requests endpoint
...
Hosts using a non-standard configuration may have a different
hostname/port/scheme than what may be configured on the GitLab
server. While expose_url should generate a proper URL, there are cases
where it may not work. Since we don't need the full URL, we can use the
relative path.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61280
2019-05-07 06:16:39 -07:00
Rémy Coutable
c563e29fb3
Get rid of the user_namespace API helper method
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-04-24 19:39:59 +02:00
Thong Kuah
4ec16912b8
Autocorrect with RSpec/ExampleWording cop
...
- rewords examples starting with 'should'
- rewords examples starting with 'it'
Note: I had to manually fixup "onlies" to "only"
2019-04-05 08:43:27 +00:00
Francisco Javier López
6ee1d8cf77
Add port section to CI Image object
...
In order to implement https://gitlab.com/gitlab-org/gitlab-ee/issues/10179
we need several modifications on the CI config file. We are
adding a new ports section in the default Image object.
Each of these ports will accept: number, protocol and name.
By default this new configuration will be only enabled in
the Web IDE config file.
2019-04-03 09:50:54 +00:00
Igor
9745d0de2f
Provide EE backports for filtering by approver feature
...
Adds custom validator for ArrayNoneAny param
Extracts some logic in js into separate files
2019-03-07 23:55:45 +00:00
Igor
e779477e8c
Revert "Merge branch 'id-1951-filter-merge-requests-by-approvers' into 'master'"
...
This reverts merge request !24982
2019-03-07 14:59:43 +00:00
Igor
572e3f2254
Provide EE backports for filtering by approver feature
...
Adds custom validator for ArrayNoneAny param
Extracts some logic in js into separate files
2019-03-07 07:06:54 +00: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
Stan Hu
41b51c0656
Encode Content-Disposition filenames
...
Users downloading non-ASCII attachments would see garbled characters.
When used with object storage, AWS S3 would return an InvalidArgument
error: Header value cannot be represented using ISO-8859-1.
Per RFC 5987 and RFC 6266, Content-Disposition should be encoded
properly. This commit takes the Rails 6 implementation of
ActiveSuppport::Http::ContentDisposition
(https://github.com/rails/rails/pull/33829 ) and ports it here.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47673
2019-02-04 23:12:44 -08: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
Francisco Javier López
40887a94bd
Fix files/blob api endpoint content disposition
2019-01-10 12:30:19 +00:00
Grzegorz Bizon
8707827d39
Improve readablity of CI_API_V4_URL related code
2019-01-04 15:32:40 +01:00
Grzegorz Bizon
f10fe3ae97
Add API::Helpers::Version and expose API root URL
...
This commits adds a new class that is supposed to represent Grape API
version, like `v3` or `v4`.
2019-01-03 14:18:05 +01:00
Grzegorz Bizon
128a5e410f
Expose method that returns GitLab API paths
2019-01-03 14:18:05 +01:00
Francisco Javier López
2cd47bba9a
Fixed api content-disposition in blob and files endpoint
2018-12-31 13:02:32 +01:00
Heinrich Lee Yu
e0f0c29b0c
Support lowercase none / any
2018-10-26 10:47:14 +08:00
Heinrich Lee Yu
bf1ed85a9d
Refactor api validator to separate class
2018-10-26 10:32:14 +08:00
George Tsiolis
124cece3b3
Include private contributions in user contribution graph
2018-09-07 15:08:55 +00:00
Yorick Peterse
4d3b313a90
Merge branch 'ab-42194-keyset-pagination' into 'master'
...
API: Keyset pagination support
Closes #45756
See merge request gitlab-org/gitlab-ce!18584
2018-05-22 11:19:34 +00:00
Francisco Javier López
0af4c56cff
Fix `expose_url` helper does not include custom base url if it is set
2018-05-22 08:54:20 +00:00
Andreas Brandl
f8aee5b086
Add keyset pagination for API calls.
...
Closes #45756 .
2018-05-21 18:02:41 +02:00
Andreas Brandl
c4e4258721
Validate project path prior to hitting the database.
...
Closes #45247 .
2018-04-13 15:59:45 +02:00
Toon Claes
3802006436
Respect the protocol in `expose_url`
...
When https is configured in the URL, also use that, and do not set it
to http.
Closes gitlab-org/gitlab-ee#5217
2018-03-12 15:34:11 +01:00
Francisco Javier López
7c2b7296d4
Added default order to UserFinder
2017-12-04 09:49:53 +00:00
Tomasz Maczukin
a9212e0f07
Add some unit tests for lib/api/helpers.rb
2017-11-27 23:06:42 +01: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