summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove legacy artifact related coderemove-legacy-artifacts-related-codeShinya Maeda2019-05-311-1/+1
| | | | | | We've already migrated all the legacy artifacts to the new realm, which is ci_job_artifacts table. It's time to remove the old code base that is no longer used.
* Get rid of the user_namespace API helper methodRémy Coutable2019-04-241-4/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Resolve "Get milestone by title via API"Fabio Busatto2019-03-271-0/+6
|
* Authenticate the internal API using a headerBob Van Landuyt2019-03-111-4/+7
| | | | | Instead of mixing in the shared secret into the querystring or body, we could also specify it in a header.
* API: delete job_artifacts of a single jobRoger Rüttimann2019-03-061-0/+4
|
* Added: Specs for sort page breaks on notesNermin Vehabovic2019-02-161-6/+6
|
* Fixed: Warnings from static code analysisNermin Vehabovic2019-02-161-5/+3
|
* Added: Include order by ID desc for tie breakers in paginationNermin Vehabovic2019-02-161-1/+9
|
* Merge branch 'api-group-labels' into 'master'Sean McGivern2019-02-071-9/+2
|\ | | | | | | | | | | | | API group labels Closes #44901 See merge request gitlab-org/gitlab-ce!21368
| * Factor out common label APIRobert Schilling2019-01-311-7/+0
| |
| * Incorporate feedback from RobertRobert Schilling2019-01-311-3/+3
| |
| * Correctly search for labels in parent groupsRobert Schilling2019-01-311-4/+4
| |
| * Replace findersRobert Schilling2019-01-311-2/+2
| |
| * Add subscription API for the group label APIRobert Schilling2019-01-311-2/+2
| |
* | Encode Content-Disposition filenamesStan Hu2019-02-041-8/+2
|/ | | | | | | | | | | | | 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
* Restrict multiple clusters through APIMayra Cabrera2019-01-101-2/+2
| | | | | | | | Modifies authorize! method to accept a third param, and then use it in combination with 'add_cluster' policy to appropriately restrict adding multiple clusters Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56110
* Fix files/blob api endpoint content dispositionFrancisco Javier López2019-01-101-1/+5
|
* Switch use of Rack::Request to ActionDispatch::RequestStan Hu2019-01-071-1/+1
| | | | | | | | | | As mentioned in https://gitlab.com/gitlab-org/gitlab-ee/issues/9035#note_129093444, Rails 5 switched ActionDispatch::Request so that it no longer inherits Rack::Request directly. A middleware that uses Rack::Request to read the environment may see stale request parameters if another middleware modifies the environment via ActionDispatch::Request. To be safe, we should be using ActionDispatch::Request everywhere.
* Fixed api content-disposition in blob and files endpointFrancisco Javier López2018-12-311-1/+7
|
* Bump Gitaly version to v1.12.0Stan Hu2018-12-211-3/+5
|
* Remove rails4 specific codeJasper Maes2018-12-161-1/+1
|
* Log and pass correlation-id between Unicorn, Sidekiq and GitalyKamil Trzciński2018-12-061-3/+3
| | | | | | | | The Correlation ID is taken or generated from received X-Request-ID. Then it is being passed to all executed services (sidekiq workers or gitaly calls). The Correlation ID is logged in all structured logs as `correlation_id`.
* Set content disposition attachment to several endpointsFrancisco Javier López2018-11-231-0/+1
|
* Make getting a user by the username case insensitiveWilliam George2018-10-181-7/+1
|
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-1/+4
| | | | | | | | | | 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
* Merge branch 'rubocop-code-reuse' into 'master'Robert Speicher2018-09-131-0/+18
|\ | | | | | | | | Add RuboCop cops to enforce code reusing rules See merge request gitlab-org/gitlab-ce!21391
| * Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+18
| | | | | | | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* | Resolve "500 Internal Server Error: Deleting branch of deleted project"🙈 jacopo beschi 🙉2018-09-121-3/+5
|/
* Fix rubocopRobert Schilling2018-09-081-5/+3
|
* API: Use find_branch! in all placesRobert Schilling2018-09-081-0/+8
|
* Add min_access_level filter to projects APIMarko, Peter2018-07-231-0/+1
| | | | Signed-off-by: Marko, Peter <peter.marko@siemens.com>
* Fix archived parameter for projects APIMarko, Peter2018-07-161-1/+7
|
* Rails5 fix no implicit conversion of Hash into String. ↵Jasper Maes2018-06-131-1/+2
| | | | ActionController::Parameters no longer returns an hash in Rails 5
* Merge request and commit discussions APIJan Provaznik2018-05-011-0/+4
|
* Validate project path prior to hitting the database.Andreas Brandl2018-04-131-2/+2
| | | | Closes #45247.
* Merge branch 'jramsay-38830-tarball' into 'master'Douwe Maan2018-04-061-2/+2
|\ | | | | | | | | | | | | Add alternative archive route Closes #38830 See merge request gitlab-org/gitlab-ce!17225
| * Add option to suppress archive commit shaJames Ramsay2018-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Repository archives are always named `<project>-<ref>-<sha>` even if the ref is a commit. A consequence of always including the sha even for tags is that packaging a release is more difficult because both the ref and sha must be known by the packager. - add append_sha option (defaults true) to provide a method for toggling this feature. Support added to GitLab Workhorse by gitlab-org/gitlab-workhorse!232
* | Merge branch 'direct-upload-of-artifacts' into 'master'Grzegorz Bizon2018-04-051-22/+0
|\ \ | | | | | | | | | | | | Direct upload of artifacts See merge request gitlab-org/gitlab-ce!18160
| * | Add `direct_upload` setting for artifactsdirect-upload-of-artifactsKamil Trzciński2018-04-051-22/+0
| |/
* | Allow assigning and filtering issuables by ancestor group labelsFelipe Artur2018-04-041-6/+7
|/
* Add proxy_download to perform proxied sending of all filesMicaël Bergeron2018-03-091-8/+8
|
* Merge remote-tracking branch 'origin/master' into ↵object-storage-ee-to-ce-backportKamil Trzciński2018-02-281-1/+1
|\ | | | | | | object-storage-ee-to-ce-backport
| * Port `read_cross_project` ability from EEBob Van Landuyt2018-02-221-1/+1
| |
* | Merge commit '8af23def1d6' into object-storage-ee-to-ce-backportKamil Trzciński2018-02-281-0/+8
|\ \ | |/
| * Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
| |
| * Save user ID and username in Grape API log (api_json.log)sh-store-user-in-api-logsStan Hu2018-01-081-0/+7
| | | | | | | | | | | | This will enable admins to identify who actually made the API request. Relates to #36960
* | Merge branch 'use-send-url-for-incompatible-runners' into 'master'Grzegorz Bizon2018-02-281-2/+6
| | | | | | | | | | | | Support SendURL for performing indirect download of artifacts if clients does… See merge request gitlab-org/gitlab-ee!4401
* | Merge commit '4b92efd90cedaa0aff218d11fdce279701128bea' into ↵Kamil Trzciński2018-02-281-5/+22
|\ \ | |/ | | | | object-storage-ee-to-ce-backport
| * Merge branch 'backport-issue_3413' into 'master'Sean McGivern2018-01-051-3/+12
| |\ | | | | | | | | | | | | [EE-backport] Add group boards API endpoint See merge request gitlab-org/gitlab-ce!16194
| | * EE-BACKPORT group boardsFelipe Artur2018-01-041-3/+12
| | |