summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Avoid calling freeze on already frozen strings in libDinesh Panda2019-09-101-3/+3
|
* Update CE files for GSD projects filterVictor Zagorodny2019-08-281-11/+22
| | | | | | | | | A new param with_security_reports was added to GET /groups/:id/projects API and the code to support this logic in GroupProjectsFinder and Project model. Also, a DB index was added to ci_job_artifacts table to speed up the search of security reports artifacts for projects
* CE: Add project download & project export audit eventce-port-4550-add-project-download-export-audit-eventmanojmj2019-07-261-0/+4
| | | | | | This change adds audit events for download of repository and export of project.
* Change HTTP Status Code when repository disabledSam Battalio2019-06-241-0/+4
|
* Merge branch 'pderichs-52123' into 'master'Robert Speicher2019-06-191-5/+0
|\ | | | | | | | | Use NotesFinder to get Noteable See merge request gitlab-org/gitlab-ce!28205
| * Use NotesFinder to fetch notes on API and ControllersPatrick Derichs2019-06-191-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing iid query on NotesFinder Changed parameters of find_noteable, so changes across a few files were needed. MergeRequest also requires iid instead of id query Make NotesFinder fail with RecordNotFound again Add specs for target_iid Using RSpec tablesyntax for target_iid specs Revert "Using RSpec tablesyntax for target_iid specs" This reverts commit ba45c7f569a. Allow find_by! here Fix variable name Add readable check Revert "Add readable check" This reverts commit 9e3a1a7aa39. Remove unnecessary assignment Add required changes for EE Fix parameter count Reduce code duplication by extracting a noteable module method The call to find_noteable was redundant so multiple files and lines have changed in that commit to use the newly introduced module method `noteable`. Replace casecmp with include check Add parent_type parameter Revert "Reduce code duplication by extracting a noteable module method" This reverts commit 8c0923babff16. Method is no longer needed Check whether noteable can be read by user
* | Add documentation and testsManoj MJ2019-06-191-0/+4
|/ | | | | | | | This commit adds - feature specs - to test the ability of a user with "developer" permission to delete tags in repositories. - documentation
* 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