summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix/sm/31771-do-not-allow-jobs-to-be-erased-new' into 'master'Kamil Trzciński2017-11-142-2/+2
|\ | | | | | | | | | | | | Do not allow jobs to be erased Closes #31771 See merge request gitlab-org/gitlab-ce!15216
| * Merge branch 'master' into fix/sm/31771-do-not-allow-jobs-to-be-erased-newShinya Maeda2017-11-076-12/+25
| |\
| * | Add doc. Fix spec. Add erase_build in protected_ref ruleShinya Maeda2017-11-072-2/+0
| | |
| * | Fix spec. Revert update check.Shinya Maeda2017-11-062-0/+2
| | |
| * | Do not allow jobs to be erasedShinya Maeda2017-11-062-2/+2
| | |
* | | Add administrative endpoint to list all pages domainsTravis Miller2017-11-133-3/+48
| | |
* | | Add Gitlab::Utils::StrongMemoizeLin Jen-Shin (godfat)2017-11-131-3/+5
| | |
* | | Add /groups/:id/subgroups endpoint to APIWinnie Hellmann2017-11-091-22/+44
| | |
* | | Merge branch '39895-cant-set-mattermost-username-channel-from-api' into 'master'Rémy Coutable2017-11-091-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix acceptance of username for Mattermost service update Closes #39895 See merge request gitlab-org/gitlab-ce!15275
| * | | Fix acceptance of username for Mattermost service update via APIMark Fletcher2017-11-081-0/+6
| | | |
* | | | Merge branch '36099-api-responses-missing-x-content-type-options-header' ↵Douwe Maan2017-11-081-1/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into '10-1-stable' Include X-Content-Type-Options (XCTO) header into API responses See merge request gitlab/gitlabhq!2211 (cherry picked from commit 6c818e77f2abeef2dd7b17a269611b018701fa79) e087e075 Include X-Content-Type-Options (XCTO) header into API responses
* | | Merge branch 'fix-issues-api-list-performance' into 'master'Stan Hu2017-11-081-6/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fail when issuable_meta_data is called on an unlimited collection Closes #39845 See merge request gitlab-org/gitlab-ce!15249
| * | | Fail when issuable_meta_data is called on an unlimited collectionfix-issues-api-list-performanceSean McGivern2017-11-071-6/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method can be called with an array, or a relation: 1. Arrays always have a limited amount of values, so that's fine. 2. If the relation does not have a limit value applied, then we will load every single object in that collection, and prevent N+1 queries for the metadata for that. But that's wrong, because we should never call this without an explicit limit set. So we raise in that case, and this commit will see which specs fail. The only failing specs here were the issues API specs, and the specs for IssuableMetadata itself, and both have been addressed.
* | | Use Commit#notes and Note.for_commit_id when possible to make sure we use ↵dm-notes-for-commit-idDouwe Maan2017-11-082-2/+2
|/ / | | | | | | all the indexes available to us
* | Merge branch ↵Douwe Maan2017-11-073-11/+9
|\ \ | | | | | | | | | | | | | | | | | | '37442-api-branches-id-repository-branches-is-calling-gitaly-n-1-times-per-request' into 'master' Fetch the merged branches at once in the `/projects/:id/repository/branches` endpoint See merge request gitlab-org/gitlab-ce!15215
| * | Pass the Gitlab::Git::Branch object to Repository#merged_to_root_ref?37442-api-branches-id-repository-branches-is-calling-gitaly-n-1-times-per-requestRémy Coutable2017-11-061-4/+1
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | Improve performance of the /projects/:id/repository/branches API endpointRémy Coutable2017-11-063-8/+9
| | | | | | | | | | | | | | | | | | Mitigate a N+1 requests to Gitaly problem. Still one left. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge branch 'feature/custom-attributes-on-projects-and-groups' into 'master'Rémy Coutable2017-11-073-1/+11
|\ \ \ | | | | | | | | | | | | | | | | Support custom attributes on groups and projects See merge request gitlab-org/gitlab-ce!14593
| * | | Support custom attributes on groupsMarkus Koller2017-11-061-1/+8
| | | |
| * | | Support custom attributes on projectsMarkus Koller2017-11-062-0/+3
| | |/ | |/|
* | | Merge branch 'add-changes-count-to-merge-requests-api' into 'master'Rémy Coutable2017-11-071-0/+4
|\ \ \ | |_|/ |/| | | | | | | | Add changes_count to the merge requests API See merge request gitlab-org/gitlab-ce!15178
| * | Add changes_count to the merge requests APIadd-changes-count-to-merge-requests-apiSean McGivern2017-11-031-0/+4
| |/ | | | | | | | | | | This returns the `real_size` of the MR's diff, which is a string indicating the number of changes. If the diff overflows after _n_ files, the string will be `$n+`.
* | Expose `duration` in Job API entityMehdi Lahmam2017-11-051-0/+1
|/ | | | Closes #35794.
* Update specs for sudo behaviorDouwe Maan2017-11-021-5/+2
|
* Add sudo API scopeDouwe Maan2017-11-022-74/+50
|
* Remove authentication using user.private_tokenDouwe Maan2017-11-021-16/+6
|
* Remove private_token from API user entityDouwe Maan2017-11-022-7/+1
|
* Remove Session APIDouwe Maan2017-11-022-21/+0
|
* Merge branch '39619-cancel-merge-when-pipeline-succeeds-from-the-api-fails' ↵Rémy Coutable2017-10-311-1/+1
|\ | | | | | | | | | | | | | | | | into 'master' Fix namespacing for MergeWhenPipelineSucceedsService in MR API Closes #39619 See merge request gitlab-org/gitlab-ce!15088
| * Fix namespacing for MergeWhenPipelineSucceedsService in MR APIMark Fletcher2017-10-301-1/+1
| |
* | Merge branch 'add-packagist-project-service' into 'master'Kamil Trzciński2017-10-312-0/+41
|\ \ | |/ |/| | | | | Add Packagist project service See merge request gitlab-org/gitlab-ce!14493
| * Add Packagist project serviceMatt Coleman2017-10-132-0/+41
| |
* | Merge branch 'api-configure-jira' into 'master'Douwe Maan2017-10-261-2/+2
|\ \ | | | | | | | | | | | | | | | | | | Validate username/pw for Jiraservice, require them in the API Closes #36621 See merge request gitlab-org/gitlab-ce!15025
| * | Validate username/pw for Jiraservice, require them in the APIRobert Schilling2017-10-241-2/+2
| | |
* | | Add pages domains API implementationTravis Miller2017-10-223-0/+122
| | |
* | | Add pages domains API entitiesTravis Miller2017-10-221-0/+17
|/ /
* | Merge branch '37032-get-project-branch-invalid-name-message' into 'master'Rémy Coutable2017-10-181-8/+14
|\ \ | | | | | | | | | | | | | | | | | | Get Project Branch API shows an helpful error message on invalid refname Closes #37032 See merge request gitlab-org/gitlab-ce!14884
| * | Get Project Branch API shows an helpful error message on invalid refnameJacopo2017-10-181-8/+14
| | | | | | | | | | | | | | | In API v4 when requesting a branch with an invalid refname shows an helpful error message: 'The branch refname is invalid'.
* | | Merge branch 'sha-handling' into 'master'Douwe Maan2017-10-166-22/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Adds requirements that supports anything in sha params Closes #26561 and #2709 See merge request gitlab-org/gitlab-ce!14462
| * | | Adds requirements that supports anything in sha paramsGuilherme Vieira2017-10-126-22/+21
| | | |
* | | | Move line code generation into Gitlab::Gitconflict-resolution-refactorAlejandro Rodríguez2017-10-122-2/+2
| | | | | | | | | | | | | | | | Having a distinct class just for that was a bit overkill
* | | | Create a Gitlab::Git submodule for conlict-related filesAlejandro Rodríguez2017-10-122-2/+2
| | | | | | | | | | | | | | | | Rename classes to (hopefully) clearer names while we're doing that.
* | | | Move Gitlab::Diff::LineCode to module Gitlab::GitAlejandro Rodríguez2017-10-122-2/+2
| |_|/ |/| |
* | | Move all API authentication code to APIGuardDouwe Maan2017-10-122-92/+93
| |/ |/|
* | Merge branch '18608-lock-issues-v2' into 'master'Sean McGivern2017-10-064-2/+9
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Lock issue and merge request" Closes #18608 See merge request gitlab-org/gitlab-ce!14531
| * \ Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Jarka Kadlecova2017-10-037-33/+150
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 18608-lock-issues-v2 # Conflicts: # db/schema.rb
| * \ \ Merge remote-tracking branch 'origin/master' into 18608-lock-issuesLuke "Jared" Bennett2017-09-204-7/+30
| |\ \ \ | | | |/ | | |/|
| * | | Merge remote-tracking branch 'origin/master' into 18608-lock-issuesLuke "Jared" Bennett2017-09-181-1/+1
| |\ \ \
| * | | | Create system notes for MR too, improve doc + clean up codeJarka Kadlecova2017-09-142-8/+3
| | | | |
| * | | | Support discussion lock in the APIJarka Kadlecova2017-09-144-2/+14
| | | | |