summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Remove the User#is_admin? methodblackst0ne2017-04-0911-20/+20
|
* Merge branch '18471-restrict-tag-pushes-protected-tags' into 'master' Douwe Maan2017-04-071-7/+3
|\ | | | | | | | | | | | | Protected Tags Closes #18471 See merge request !10356
| * Merge branch 'master' into '18471-restrict-tag-pushes-protected-tags'Kushal Pandya2017-04-065-9/+22
| |\ | | | | | | | | | # Conflicts: # spec/lib/gitlab/import_export/all_models.yml
| * \ Merge branch 'last-green-master' into 18471-restrict-tag-pushes-protected-tagsJames Edwards-Jones2017-04-067-6/+7
| |\ \
| * \ \ Merge branch 'master' into '18471-restrict-tag-pushes-protected-tags'Kushal Pandya2017-04-0616-91/+111
| |\ \ \ | | | | | | | | | | | | | | | | | | | | # Conflicts: # app/assets/javascripts/dispatcher.js # app/assets/stylesheets/pages/projects.scss
| * | | | Fixed developers_can_push in RepoBranch API entityJames Edwards-Jones2017-04-041-6/+2
| | | | |
| * | | | Moved Project#protected_branch? to ProtectedBranch, similar for tagsJames Edwards-Jones2017-04-031-1/+1
| | | | |
| * | | | Extract ProtectedRef ConcernJames Edwards-Jones2017-04-031-2/+2
| | | | |
* | | | | Use Gitlab::Git::Repository#gitaly_... moreJacob Vosmaer2017-04-071-1/+1
| |_|_|/ |/| | |
* | | | Merge branch 'microsoft-teams-integration' into 'master' Douwe Maan2017-04-062-0/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | adds initial microsoft teams integration See merge request !10412
| * | | | adds relevant testsTiago Botelho2017-04-062-0/+15
| | | | |
* | | | | Optimise trace handling code to use streaming instead of full readKamil Trzciński2017-04-063-9/+7
| |_|_|/ |/| | |
* | | | Merge branch '28810-projectfinder-should-handle-more-options' into 'master' Rémy Coutable2017-04-066-6/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ProjectsFinder should handle more options Closes #28810 See merge request !9682
| * | | | ProjectsFinder should handle more optionsJacopo2017-04-066-6/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extended ProjectFinder in order to handle the following options: - current_user - which user use - project_ids_relation: int[] - project ids to use - params: - trending: boolean - non_public: boolean - starred: boolean - sort: string - visibility_level: int - tags: string[] - personal: boolean - search: string - non_archived: boolean GroupProjectsFinder now inherits from ProjectsFinder. Changed the code in order to use the new available options.
* | | | Merge branch '30021-api-deploy_keys-can_push-is-not-honoured' into 'master' Rémy Coutable2017-04-061-0/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Enable creation of deploy keys with write access via the API Closes #30021 See merge request !10488
| * | | Enable creation of deploy keys with write access via the APIMark Fletcher2017-04-051-0/+1
| | | | | | | | | | | | | | | | * Documentation was incorrectly advertising the missing param
* | | | Merge branch '30195-document-search-param-on-api' into 'master' Sean McGivern2017-04-051-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "search" optional param and docs for V4 Closes #30195 See merge request !10358
| * | | | Add "search" optional param and docs for V430195-document-search-param-on-apiOswaldo Ferreira2017-04-051-0/+1
| |/ / / | | | | | | | | | | | | Notice that this param is being supported since V3, but we have not added the proper docs for it
* | | | Merge branch 'gitaly-refs' into 'master'Robert Speicher2017-04-051-1/+4
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Implement Gitaly refs client See merge request !9291
| * | | Incorporate Gitaly client for refs serviceAlejandro Rodríguez2017-04-041-1/+4
| | | |
* | | | Added mock deployment and monitoring service with environments fixturesKamil Trzciński2017-04-051-1/+7
| |/ / |/| |
* | | Merge branch 'bug/api_milestone_merge_requests_scope' into 'master' Rémy Coutable2017-04-041-1/+1
|\ \ \ | |/ / |/| | | | | | | | Fixes milestone/merge_request API endpoint to really scope the results See merge request !10369
| * | Fixes milestone/merge_request API endpoint to really scope the resultsJoren De Groof2017-04-031-1/+1
| | | | | | | | | | | | | | | The MergeRequestsFinder uses the milestone_title instead of the milestone_id
* | | Merge branch 'backport-sticking-api-helper-changes' into 'master' Kamil Trzciński2017-04-042-11/+10
|\ \ \ | | | | | | | | | | | | | | | | Backport API changes needed to fix sticking in EE See merge request !10376
| * | | Backport API changes needed to fix sticking in EEbackport-sticking-api-helper-changesYorick Peterse2017-03-312-11/+10
| |/ / | | | | | | | | | | | | | | | These changes are ported over from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1502 to reduce the number of merge conflicts that may occur.
* | | Merge branch 'style-proc-cop' into 'master' Rémy Coutable2017-04-031-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Enable Style/Proc cop for rubocop See merge request !10382
| * | | Enable Style/Proc cop for rubocopmhasbini2017-04-021-1/+1
| |/ /
* | | Merge branch '22303-symbolic-in-tree' into 'master' Douwe Maan2017-04-031-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | #22303 fix mode representation git::tree ( in base 8 ) Closes #22303 See merge request !9780
| * | | Fix symlink icon in project treemhasbini2017-04-021-1/+1
| |/ /
* | | Merge branch 'introduce-base-polling-interval' into 'master' Sean McGivern2017-04-032-1/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Introduce "polling_interval_multiplier" as application setting Closes #29759 See merge request !10280
| * | | Introduce "polling_interval_multiplier" as application settingAdam Niedzielski2017-04-032-1/+3
| |/ / | | | | | | | | | | | | Implement module for setting "Poll-Interval" response header. Return 429 in ETag caching middleware when polling is disabled.
* | | Delete users asynchronouslysh-fix-destroy-user-raceStan Hu2017-04-021-1/+1
|/ /
* | Merge branch 'gitaly-socket-per-shard' into 'master' Sean McGivern2017-03-291-1/+1
|\ \ | | | | | | | | | | | | One Gitaly connection per storage shard See merge request !10150
| * | Separate GRPC channels per repository storageJacob Vosmaer2017-03-291-1/+1
| | |
* | | Merge branch '23655-api-group-issues' into 'master' Rémy Coutable2017-03-292-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix API group/issues default state filter Closes #23655 See merge request !10253
| * | | Fix API group/issues default state filterAlexander Randa2017-03-282-4/+4
| | | |
* | | | Labels support color names in backendDongqing Hu2017-03-291-4/+5
| | | |
* | | | Merge branch 'tc-api-remove-comments-endpoint' into 'master' Rémy Coutable2017-03-283-40/+14
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | API: Make the /notes endpoint work with noteable iid instead of id Closes #29871 See merge request !10258
| * | | API: Make the /notes endpoint work with noteable iid instead of idToon Claes2017-03-272-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In API V4 all endpoints were changed so Merge Requests and Issues should be referred by iid, instead of id. Except the /notes endpoint was forgotten. So change the endpoints from: - /projects/:id/issues/:issue_id/notes - /projects/:id/merge_requests/:merge_request_id/notes To: - /projects/:id/issues/:issue_iid/notes - /projects/:id/merge_requests/:merge_request_iid/notes For Project Snippets nothing changes.
| * | | Remove `:id/merge_requests/:merge_request_iid/comments` endpointsToon Claes2017-03-271-35/+0
| |/ / | | | | | | | | | Comments for a merge request should be obtained to the `notes` endpoint.
* | | Implement new service for creating userGeorge Andrinopoulos2017-03-272-23/+57
|/ /
* | Return 404 in project issues API endpoint when project cannot be foundAdam Niedzielski2017-03-202-2/+2
|/ | | | Closes #29631
* Merge branch 'fix/regressions-in-ci-v4-api' into 'master' Kamil Trzciński2017-03-203-13/+19
|\ | | | | | | | | Fix regressions introduced while adding CI endpoints in API v4 See merge request !9952
| * Send only defined dependenciesTomasz Maczukin2017-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In APIv1 we've been sending all jobs from previous stages and a `dependencies` list with names of jobs that user want to download artifacts from. This was selected on Runners side. In APIv1 we've planned to send only jobs that were defined (if any; and all previous jobs by default). However I've missed the fact that it was Runner who selected jobs, not GitLab. And now current version of APIV4 sends all jobs everytime. This commit fixes this. If user will define `dependencies` in his job, then GitLab will send only selected jobs.
| * Send token of depenent jobTomasz Maczukin2017-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Artifacts download for authorization is using a job token of job to which the artifact belongs. In APIv1 the token was sent with dependent jobs details and in APIv4 it was designed to also contain it. However I forgot about this parameter while working on `/api/v4/jobs/request` endpoint. This commit adds a missing parameter which is required for APIv4 to work properly.
| * Remove legacy Runners support in /api/v4/jobs/requestTomasz Maczukin2017-03-202-11/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Runner v1.3.0 we've started to send User-Agent header with Runner's version data. Since GitLab v8.12.0 we've started to use this header to check if used Runner's version supports 204 status code instead of 404 as a response when there is no jobs to execute by a Runner. In APIv4 (introduced in GitLab 9.0.0) will require Runner v9.0.0. And writing more accurately: GitLab Runner v9.0.0 will require GitLab at least 9.0.0. Because of such breaking change we are able to switch entirely to 204 response code and there is no need to do check of User-Agent. This commit removes useless code and complexity.
| * Make runner's veryfication working againTomasz Maczukin2017-03-201-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In APIv1 we were using UpdateJob to verify if the runner exists. It was the only method that was using Runner's token and used in special way had no side effects (like scheduling a new job or unregisterring a Runner). In APIv4 we've change UpdateJob to use job's token as authentication credentials, and that way we've removed the only endpoint that could be used to verify if the Runner with a certain token exists in target GitLab installation. This commit adds `POST /api/v4/runners/verify` endpoint whose only responsibility is to respond if Runner with posted credentials exists or not.
* | Allow dot in branch name in trigger/builds endpoint in APIGeorge Andrinopoulos2017-03-202-2/+2
| |
* | Allow unauthenticated access to some Branch API GET endpointsRémy Coutable2017-03-201-1/+1
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* All CI offline migrationsKamil Trzciński2017-03-171-23/+2
|