summaryrefslogtreecommitdiff
path: root/spec/requests/api
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'osw-introduce-merge-request-statistics' into 'master'Sean McGivern2018-01-044-4/+4
|\ | | | | | | | | Improve closed/merged events queries performance on Projects::MergeRequestsController#show.json See merge request gitlab-org/gitlab-ce!15642
| * Cache merged and closed events data in merge_request_metrics tableOswaldo Ferreira2018-01-024-4/+4
| |
* | 41054-Disallow creation of new Kubernetes integrationsMayra Cabrera2018-01-042-3/+9
| |
* | Fix API endpoints to edit wiki pages where project belongs to a grouprd-api-request-to-edit-wiki-page-fails-when-project-belongs-to-groupRubén Dávila2018-01-031-4/+26
|/ | | | | | | | In some cases is prefered to manually create a ProjectWiki over using Project#wiki. This is because Project#wiki always uses the #owner (which is a User sometimes) as the author of the wiki changes but sometimes the owner is a Group and it doesn't respond to #username
* Gracefully handle orphaned write deploy keys in /internal/post_receivesh-handle-orphaned-deploy-keysStan Hu2017-12-241-0/+10
| | | | | | | | | On GitLab.com, there are write deploy keys with no associated users. Pushes with these deploy keys end with an Error 500 since we attempt to look up redirect message. If there is no user, don't attempt to display a redirect message. Closes #41466
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-2239-91/+91
|
* Add optional `search` param for Merge Requests APIMark Fletcher2017-12-201-0/+20
|
* sorting for tags apihaseeb2017-12-141-0/+38
|
* Adds ordering to projects contributors in APIJacopo2017-12-131-0/+22
| | | | | | | Allows ordering in GET api/v4/projects/:project_id/repository/contributors through `order_by` and `sort` params. The available `order_by` options are: name|email|commits. The available `sort` options are: asc|desc.
* Merge branch 'issue_30663' into 'security-10-2'Sean McGivern2017-12-081-0/+14
| | | | | | | | | Prevent creating issues through API without having permissions See merge request gitlab/gitlabhq!2225 (cherry picked from commit c298bbaa88883343dc9cbbb6abec0808fb3b546c) 915b97c5 Prevent creating issues through API without having permissions
* Merge branch 'rs-security-group-api' into 'security-10-2'Douwe Maan2017-12-081-0/+62
| | | | | | | | | [10.2] Ensure we expose group projects using GroupProjectsFinder See merge request gitlab/gitlabhq!2234 (cherry picked from commit 072f8f2fd6ec794645375a16ca4ddc1cbeb76d7a) a2240338 Ensure we expose group projects using GroupProjectsFinder
* Allow git pull/push on project redirectsMayra Cabrera2017-12-081-17/+21
|
* Move the circuitbreaker check out in a separate processbvl-circuitbreaker-processBob Van Landuyt2017-12-082-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Moving the check out of the general requests, makes sure we don't have any slowdown in the regular requests. To keep the process performing this checks small, the check is still performed inside a unicorn. But that is called from a process running on the same server. Because the checks are now done outside normal request, we can have a simpler failure strategy: The check is now performed in the background every `circuitbreaker_check_interval`. Failures are logged in redis. The failures are reset when the check succeeds. Per check we will try `circuitbreaker_access_retries` times within `circuitbreaker_storage_timeout` seconds. When the number of failures exceeds `circuitbreaker_failure_count_threshold`, we will block access to the storage. After `failure_reset_time` of no checks, we will clear the stored failures. This could happen when the process that performs the checks is not running.
* Merge branch 'jej/per-user-protected-branches-api-ce' into 'master'Sean McGivern2017-12-071-18/+18
|\ | | | | | | | | CE backport of "ProtectedBranches API handles per user/group granularity" See merge request gitlab-org/gitlab-ce!15747
| * CE backport of ProtectedBranches API changesJames Edwards-Jones2017-12-071-18/+18
| | | | | | | | | | In EE we now allow individual users/groups to be set on POST, which required some refactoring. See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3516
* | Merge branch 'zj-multiple-artifacts' into 'master'Grzegorz Bizon2017-12-051-12/+3
|\ \ | |/ |/| | | | | Multiple artifacts See merge request gitlab-org/gitlab-ce!14367
| * Remove update artifacts test (it should not be needed)Kamil Trzcinski2017-12-031-9/+0
| |
| * Last test fixes multiple artifactsZeger-Jan van de Weg2017-12-031-1/+1
| |
| * Rename Artifact to JobArtifact, split metadata outZeger-Jan van de Weg2017-12-031-2/+2
| | | | | | | | | | | | | | | | | | Two things at ones, as there was no clean way to seperate the commit and give me feedback from the tests. But the model Artifact is now JobArtifact, and the table does not have a type anymore, but the metadata is now its own model: Ci::JobArtifactMetadata.
* | Optimize API /groups/:id/projects by preloading associationsStan Hu2017-12-011-0/+14
|/ | | | Closes #40308
* support ordering of project notes in notes apihaseeb2017-11-291-0/+124
|
* Merge branch 'gitaly-ssh-upload-pack-opt-out' into 'master'Sean McGivern2017-11-291-6/+2
|\ | | | | | | | | | | | | SSHUploadPack over Gitaly is now OptOut Closes gitaly#730 See merge request gitlab-org/gitlab-ce!15623
| * SSHUploadPack over Gitaly is now OptOutgitaly-ssh-upload-pack-opt-outKim "BKC" Carlbäcker2017-11-291-6/+2
| | | | | | | | - Better gitaly-handling in /api/internal/allowed specs
* | Merge branch 'tm/feature/list-runners-jobs-api' into 'master'Kamil Trzciński2017-11-281-0/+134
|\ \ | | | | | | | | | | | | | | | | | | Add new API endpoint - list jobs of a specified runner Closes #39699 See merge request gitlab-org/gitlab-ce!15432
| * | Refactorize jobs finding logicTomasz Maczukin2017-11-281-4/+4
| | |
| * | Use 'set' instead of 'let!' when it's possibleTomasz Maczukin2017-11-281-1/+1
| | |
| * | Allow filtering by 'status'Tomasz Maczukin2017-11-281-4/+46
| | |
| * | Add information about projectTomasz Maczukin2017-11-281-4/+4
| | |
| * | Add new API endpoint - list jobs of a specified runnerTomasz Maczukin2017-11-281-0/+92
| |/
* | Introduce :read_namespace access policy for namespace and groupTomasz Maczukin2017-11-231-10/+48
| |
* | Allow request namespace by ID or pathTomasz Maczukin2017-11-231-11/+27
| |
* | Add new API endpoint - get a namespace by IDTomasz Maczukin2017-11-231-0/+69
|/
* Allow password authentication to be disabled entirelyMarkus Koller2017-11-232-5/+5
|
* Improve output for extra queries in specsimprove-extra-queries-outputSean McGivern2017-11-221-3/+3
| | | | | | | | | | | | Previously, this used `Array#-`, which would remove all queries that matches the query text in the original set. However, sometimes we have a problem with parameterised queries, where the query text is identical both times, so we'd run a query N times instead of once, and it would be hidden from the output. Replace the logic to only remove a given query N times from the actual log, where N is the number of times it appears in the expected log.
* Add FetchSourceBranch Gitaly callJacob Vosmaer (GitLab)2017-11-222-2/+2
|
* Skip confirmation user apiDaniel Juarez2017-11-211-0/+8
|
* Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master'Rémy Coutable2017-11-202-0/+4
|\ | | | | | | | | | | | | Adds Rubocop rule for line break after guard clause Closes #18040 See merge request gitlab-org/gitlab-ce!15188
| * Adds Rubocop rule for line break after guard clauseJacopo2017-11-162-0/+4
| | | | | | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* | Moved Exceptions to Gitlab::AuthFrancisco Lopez2017-11-171-4/+4
| |
* | Moving exceptions to UserAuthFindersFrancisco Lopez2017-11-171-4/+4
| |
* | Homogenising the type of the request handled by UserAuthFinder. Also tests fixedFrancisco Lopez2017-11-171-16/+21
| |
* | First refactorFrancisco Lopez2017-11-171-0/+1
| |
* | Use relative git object paths to construct absolute ones before setting Envfix/git-env-repo-pathsAhmad Sherif2017-11-141-10/+36
|/
* Merge branch 'fix/sm/31771-do-not-allow-jobs-to-be-erased-new' into 'master'Kamil Trzciński2017-11-142-0/+23
|\ | | | | | | | | | | | | Do not allow jobs to be erased Closes #31771 See merge request gitlab-org/gitlab-ce!15216
| * Reduce changesfix/sm/31771-do-not-allow-jobs-to-be-erased-newShinya Maeda2017-11-071-28/+23
| |
| * Improve specShinya Maeda2017-11-071-19/+43
| |
| * Merge branch 'master' into fix/sm/31771-do-not-allow-jobs-to-be-erased-newShinya Maeda2017-11-076-18/+50
| |\
| * | Add doc. Fix spec. Add erase_build in protected_ref ruleShinya Maeda2017-11-072-0/+4
| | |
* | | Add administrative endpoint to list all pages domainsTravis Miller2017-11-131-0/+47
| | |
* | | Add /groups/:id/subgroups endpoint to APIWinnie Hellmann2017-11-091-0/+136
| | |