summaryrefslogtreecommitdiff
path: root/spec/requests/api/merge_requests_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add changes_count to the merge requests APIadd-changes-count-to-merge-requests-apiSean McGivern2017-11-031-12/+22
| | | | | | 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+`.
* Fix namespacing for MergeWhenPipelineSucceedsService in MR APIMark Fletcher2017-10-301-0/+24
|
* Refactor `have_http_status` into `have_gitlab_http_status` in the specsJacopo2017-10-201-6/+6
|
* Add a project forks spec helperBob Van Landuyt2017-10-071-14/+16
| | | | | The helper creates a fork of a project with all provided attributes, but skipping the creation of the repository on disk.
* Allow creating merge requests across forks of a projectBob Van Landuyt2017-10-071-10/+0
|
* fix #35290 Make read-only API for public merge requests available without ↵haseeb2017-09-181-5/+32
| | | | authentication
* Add my_reaction_emoji param to /merge_requests APIHiroyuki Sato2017-09-051-0/+12
|
* Add tests for the unmodified headerRobert Schilling2017-08-281-0/+4
|
* Use with_repo_branch_commit instead of fetch_ref directlyLin Jen-Shin2017-08-141-2/+1
| | | | | So that we could limit the access to Repository#fetch_ref See: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13416#note_37487433
* Add comments about why we're stubbing them36089-handle-ref-failure-betterLin Jen-Shin2017-08-141-2/+2
|
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-08-111-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 36089-handle-ref-failure-better * upstream/master: (62 commits) Update gitlab.po: Missing 'r' in "Fouché" that comes from "Fourcher" verb. Docs: update user docs index Fix minor typos in views Fix Layout/SpaceBeforeBlockBraces violation in bin/changelog_spec Merge branch 'rs-alphanumeric-ssh-params' into 'security-9-4' Merge branch 'import-symlinks-9-3' into 'security-9-3' Fix wrong method call on prometheus histogram Document new all-in-one Helm chart - docs Fix 404 on link path Fix line numbers not matching up to code in code viewer. Hide overflow-x on collapsed sidebar removed global use of breakpoint checker Increase performance of the breakpoint size checker Filter sensitive query string parameters from NGINX access logs Added a template for database changes Render new issue link in failed job as a regular link instead of a UJS one Include RE2 in the upgrade docs Remove affix plugin from issuable sidebar with new navigation Fix linter error alternative route for download archive ...
| * Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-091-4/+4
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Fix more testsLin Jen-Shin2017-08-111-106/+97
| |
* | Fix some tests and report the error messageLin Jen-Shin2017-08-091-4/+16
|/
* Add spec to test combining API merge_requests query parametersToon Claes2017-08-031-0/+20
| | | | To investigate gitlab-org/gitlab-ce#31599
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-6/+6
|
* Default /merge_request API endpoint to `scope=created-by-me`Toon Claes2017-07-281-4/+15
| | | | This matches the behavior of the /issues endpoint.
* Add top-level /merge_requests API endpointToon Claes2017-07-271-0/+83
| | | | | | | And add support for additional query parameters: - `author_id`: Returns merge requests created by the given user `id` - `assignee_id`: Returns merge requests assigned to the given user `id` - `scope`: Return merge requests for the given scope: `created-by-me`, `assigned-to-me` or `all`
* Support both internal and external issue trackersJarka Kadlecova2017-07-241-4/+10
|
* Use view=simple for simplifying merge requests APIStan Hu2017-07-111-1/+1
|
* Add a simple mode to merge request APIsh-add-mr-simple-modeStan Hu2017-07-111-0/+16
| | | | | | | The current "basic" merge request API still loads too much data. For integrations like the Trello Power-up, we just need the basics. Closes #34920
* Add spec for N+1 queriesStan Hu2017-07-081-0/+12
|
* Remove remaining N+1 queries in merge requests API with emojis and labelsStan Hu2017-07-081-3/+10
| | | | Closes #34159
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Fix API bug accepting wrong merge requests parametersissue_33205Felipe Artur2017-06-161-3/+23
|
* Fix 404 when upstream has disabled merge requestsmhasbini2017-04-271-0/+13
|
* Use rspec-set to speed up examplesZeger-Jan van de Weg2017-04-261-0/+1
|
* Ability to filter merge requests by labels and milestonesRobert Schilling2017-04-251-4/+68
|
* Merge branch 'jacopo-beschi/gitlab-ce-29712-unnecessary-wait-for-ajax'Rémy Coutable2017-04-241-2/+1
|\ | | | | | | | | | | See merge request !10567 Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Unnecessary "include WaitForAjax" and "include ApiHelpers"Jacopo2017-04-211-2/+1
| | | | | | | | | | Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs. Removed unnecessary usage of `api:true`
* | Fix updating merge_when_build_succeeds via merge API endpointmrchrisw-22740-merge-apiChris Wilson2017-04-241-1/+13
|/ | | | | | | | | | When updating a merge request via the `/merge` endpoint we check the `mergeable` and `mergeable_state` status, these will return `false` if the application option only_allow_merge_if_pipeline_succeeds is enabled. We should skip CI checks if the request uses the merge_when_pipeline_succeeds param Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/22740
* Remove `:id/merge_requests/:merge_request_iid/comments` endpointsToon Claes2017-03-271-58/+0
| | | | Comments for a merge request should be obtained to the `notes` endpoint.
* API routes referencing a specific merge request should use the MR `iid`Timothy Andrew2017-03-071-54/+143
| | | | | | - As opposed to the `id` that was previously being used. - This brings the API routes closer to the web interface's routes. - This is specific to API v4.
* Remove "subscribed" field from API responses returning list of issues or ↵api-drop-subscribedAdam Niedzielski2017-03-061-0/+7
| | | | merge requests
* Update occurrences of MWBS to MWPSfix/mwbs-to-mwpsJames Lopez2017-03-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
* Return 204 for delete endpointsRobert Schilling2017-02-281-1/+1
|
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-2/+2
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Enable Style/WordArrayDouwe Maan2017-02-231-1/+1
|
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-2/+2
|
* API: Make subscription API more RESTfuLRobert Schilling2017-02-211-11/+11
|
* Add a custom pagination matcherRobert Schilling2017-02-161-0/+26
|
* Paginate all endpoints that return an arrayRobert Schilling2017-02-161-0/+2
|
* Remove deprecated MR and Issue endpoints and preserve V3 namespace9-0-api-changesOswaldo Ferreira2017-02-061-18/+10
|
* Use `:empty_project` where possible in request specsrs-empty_project-requestsRobert Speicher2017-01-261-7/+9
|
* Merge branch 'fix-api-mr-permissions' into 'security'Robert Speicher2017-01-231-0/+29
| | | | | | Ensure that only privileged users can access merge requests in the API See merge request !2053
* Merge branch 'use-empty_project-factory-in-api-specs' into 'master' Robert Speicher2017-01-191-2/+2
|\ | | | | | | | | Replace many :project with :empty_projects in API specs See merge request !8608
| * Replace many :project with :empty_projects in API specsuse-empty_project-factory-in-api-specsRémy Coutable2017-01-171-2/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Add some API endpoints for time tracking.Ruben Davila2017-01-181-1/+7
|/ | | | | | | | | | | | | | New endpoints are: POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/add_spent_time" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_spent_time" GET :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_stats"
* Don't allow blank MR titles in APIapi-dont-allow-blank-mr-titlesRobert Schilling2016-12-131-0/+16
|
* Merge branch 'api-remove-source-branch' into 'master' Rémy Coutable2016-12-091-1/+11
|\ | | | | | | | | | | | | API: Ability to remove source branch Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23577 See merge request !7804