summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Use "branch_name" instead "branch" on V3 branch creation API29604-v3-fix-branch-creationOswaldo Ferreira2017-03-161-0/+21
|
* Merge branch '27988-fix-transient-failure-in-commits-api' into 'master' Sean McGivern2017-03-1659-76/+86
|\ | | | | | | | | | | | | Ensure dots in project and group ID are allowed in the API endpoints Closes #27988 See merge request !9944
| * Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-1659-76/+86
| | | | | | | | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Ensure dots in project path is allowed in the commits APIRémy Coutable2017-03-142-2/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Add 'Undo mark all as done' to TodosJacopo2017-03-161-2/+2
|/ | | | | | Added the ability to 'Undo mark all as done' todos marked as complete with 'Mark all as done' in the 'Todo' tab of the Todo dashboard. The operation undos only the todo previously marked as done with the 'Mark al as done' button.
* Merge branch '25515-delegate-single-discussion-to-new-issue' into 'master' Douwe Maan2017-03-132-13/+4
|\ | | | | | | | | Create a new issue for a single discussion See merge request !8266
| * Make API v3 work with the new param nameBob Van Landuyt2017-03-131-0/+1
| |
| * Rename variableBob Van Landuyt2017-03-131-2/+2
| | | | | | | | | | merge_request_for_resolving_discussions -> merge_request_to_resolve_discussions_of
| * Make API v3 compatible with the changes in `Issues::CreateService`Bob Van Landuyt2017-03-131-6/+0
| |
| * Always require MR-iid for resolving discussionsBob Van Landuyt2017-03-131-12/+1
| | | | | | | | | | And deduplicate the finding of MR's & discussions. Now the searching is done in the service, istead of the controller & the API.
| * Delegate a single discussion to a new issueBob Van Landuyt2017-03-131-0/+7
| | | | | | | | | | | | Delegate a discussion in a merge request into a new issue. The discussion wil be marked as resolved and a system note will be added linking to the newly created issue.
* | use the policy stack to protect loginshttp://jneen.net/2017-03-091-1/+1
| |
* | use a magic default :global symbol instead of nilhttp://jneen.net/2017-03-092-3/+3
|/ | | | to make sure we mean the global permissions
* Order milestone issues by position ascending in apiGeorge Andrinopoulos2017-03-091-2/+4
|
* Merge branch 'issue_16834'Douwe Maan2017-03-073-49/+122
|\ | | | | | | | | # Conflicts: # doc/api/v3_to_v4.md
| * Remove unecessary endpoint from repository, add compatibility endpoints for ↵issue_16834Felipe Artur2017-03-073-45/+75
| | | | | | | | v3 and several improvements
| * Update API endpoints for raw filesFelipe Artur2017-03-072-31/+74
| |
* | Merge branch '1381-present-commits-pagination-headers-correctly' into 'master' Douwe Maan2017-03-081-8/+20
|\ \ | | | | | | | | | | | | | | | | | | GET "projects/:id/repository/commits" endpoint improvements Closes #1381 and #20207 See merge request !9679
| * | Returns correct header data for commits endpointOswaldo Ferreira2017-03-071-7/+17
| | |
| * | Fix pagination headers for repository commits api endpointGeorge Andrinopoulos2017-03-071-3/+2
| | |
| * | Manually set total_count when paginating commitsJordan Ryan Reuter2017-03-071-1/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | `Kaminari.paginate_array` takes some options, most relevant of which is a `total_count` parameter. Using the `commit_count` for `total_count` lets us correctly treat the return of `Repository#commits` as a subset of all the commits we may wish to list. Addition of a new `Repository#commit_count_for_ref` method was necessarry to allow the user to start from an arbitrary ref. Ref #1381
* | Remove user_can_download_artifactsToon Claes2017-03-072-32/+16
| | | | | | | | It was actually not used anywhere.
* | Make it possible to query scope as scope[]=Toon Claes2017-03-071-0/+2
| | | | | | | | | | Since issues also accepts the query parameter iids[]=, also make it possible query scope like that.
* | Add GET /projects/:id/pipelines/:pipeline_id/jobs endpointToon Claes2017-03-071-0/+17
|/ | | | Add endpoint to get the jobs scoped to a pipeline.
* Added Prometheus Service and Prometheus graphsKamil Trzciński2017-03-071-0/+9
|
* Merge branch '28447-hybrid-repository-storages' into 'master' Sean McGivern2017-03-071-3/+3
|\ | | | | | | | | Update storage settings to allow extra values per shard See merge request !9597
| * Update storage settings to allow extra values per shard28447-hybrid-repository-storagesAlejandro Rodríguez2017-03-031-3/+3
| | | | | | | | | | | | | | This will be necessary when adding gitaly settings. This version doesn't make any functional changes, but allows us to include this breaking change in 9.0 and add the needed extra settings in the future with backwards compatibility
* | Merge remote-tracking branch ↵Douwe Maan2017-03-072-0/+91
|\ \ | | | | | | | | | 'origin/personal_access_token_api_and_impersonation_token'
| * | apply codestyle and implementation changes to the respective feature codepersonal_access_token_api_and_impersonation_tokenTiago Botelho2017-03-063-112/+36
| | |
| * | refactors finder and correlated codeTiago Botelho2017-03-012-24/+27
| | |
| * | applies relevant changes to the code and code structureTiago Botelho2017-02-283-65/+43
| | |
| * | refactors documentation and personal access tokens form to not allow admins ↵Tiago Botelho2017-02-282-54/+103
| | | | | | | | | | | | to generate non impersionation tokens
| * | add impersonation tokenSimon Vocella2017-02-282-2/+6
| | |
| * | manage personal_access_tokens through apiSimon Vocella2017-02-284-0/+133
| | |
* | | Merge branch 'feature/runner-jobs-v4-api' into 'master' Kamil Trzciński2017-03-073-0/+330
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Feature/runner jobs v4 api Closes #28513 See merge request !9273
| * | | Add minor refactoringfeature/runner-jobs-v4-apiTomasz Maczukin2017-03-071-1/+1
| | | |
| * | | Add some fixes and refactoring after reviewTomasz Maczukin2017-03-021-1/+2
| | | |
| * | | Fix rubocop offensesTomasz Maczukin2017-03-022-11/+9
| | | |
| * | | Add artifacts downloading APITomasz Maczukin2017-03-021-0/+25
| | | |
| * | | Add artifacts uploading APITomasz Maczukin2017-03-021-0/+47
| | | |
| * | | Add artifacts uploading authorize APITomasz Maczukin2017-03-022-0/+34
| | | |