summaryrefslogtreecommitdiff
path: root/spec/services/merge_requests
Commit message (Collapse)AuthorAgeFilesLines
* [Spec optimization] Joining one-line 'it' blocksspec-joining-itValery Sizov2017-05-152-19/+29
|
* Merge branch 'fix-conflict-resolution-with-corrupt-repos' into 'master' Douwe Maan2017-05-122-16/+98
|\ | | | | | | | | | | | | Fix conflict resolution from corrupted upstream Closes gitlab-ee#2128 See merge request !11298
| * Fix conflict resolution from corrupted upstreamfix-conflict-resolution-with-corrupt-reposSean McGivern2017-05-122-16/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I don't know why this happens exactly, but given an upstream and fork repository from a customer, both of which required GC, resolving conflicts would corrupt the fork so badly that it couldn't be cloned. This isn't a perfect fix for that case, because the MR may still need to be merged manually, but it does ensure that the repository is at least usable. My best guess is that when we generate the index for the conflict resolution (which we previously did in the target project), we obtain a reference to an OID that doesn't exist in the source, even though we already fetch the refs from the target into the source. Explicitly setting the source project as the place to get the merge index from seems to prevent repository corruption in this way.
* | Move update_assignee_cache_counts to the serviceValery Sizov2017-05-122-0/+29
|/
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix specs 2Felipe Artur2017-05-082-2/+2
|
* Fix SpecsFelipe Artur2017-05-082-1/+9
|
* Merge branch 'blackst0ne/gitlab-ce-add_system_note_for_editing_issuable'Sean McGivern2017-05-051-0/+7
|\
| * Updated specsblackst0ne2017-05-051-0/+7
| |
* | Backport of multiple_assignees_feature [ci skip]Valery Sizov2017-05-043-6/+134
| |
* | Allow to create new branch and empty WIP merge request from issue pageAlfredo Sumaran2017-05-041-0/+74
|/
* Merge branch 'rs-described_class-cop-2' into 'master' Douwe Maan2017-05-023-9/+9
|\ | | | | | | | | Enable `RSpec/DescribedClass` cop and correct violations See merge request !10930
| * Auto-correct `RSpec/DescribedClass` violationsrs-described_class-cop-2Robert Speicher2017-05-013-9/+9
| |
* | Merge branch '26488-target-disabled-mr' into 'master' Sean McGivern2017-05-021-0/+10
|\ \ | |/ |/| | | | | | | | | Fix 404 when upstream disabled merge requests Closes #26488 See merge request !10427
| * Fix 404 when upstream has disabled merge requestsmhasbini2017-04-271-0/+10
| |
* | Enable RSpec/FilePath copenable-spec-file-name-copSean McGivern2017-04-261-0/+0
|/ | | | | | - Ignore JS fixtures - Ignore qa directory - Rewrite concern specs to put concern name first
* Merge branch '30291-reopen-mr' into 'master'Sean McGivern2017-04-061-0/+27
|\ | | | | | | | | | | | | Search for opened MRs - include reopened MRs Closes #30291 See merge request !10407
| * Search for opened MRs - include reopened MRs30291-reopen-mrJarka Kadlecova2017-04-061-0/+27
| |
* | Merge branch '29364-private-projects-mr-fix'Sean McGivern2017-04-051-1/+41
|/ | | | | | Don’t show source project name when user does not have access See merge request !2081
* Create todos only for new mentionsJarka Kadlecova2017-03-291-1/+10
|
* Use `:empty_project` where possible in service specsRobert Speicher2017-03-279-11/+11
|
* Allow creating merge request even if target branch is not specified in query ↵Adam Niedzielski2017-03-171-1/+4
| | | | | | params Closes #28890
* Add ability to disable Merge Request URL on pushAlex Sanford2017-03-171-0/+10
|
* Speed up MergeRequest::RefreshService spec by combining examplessh-speed-up-refresh-serviceStan Hu2017-03-081-47/+57
|
* Update occurrences of MWBS to MWPSfix/mwbs-to-mwpsJames Lopez2017-03-012-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge branch 'only-create-unmergeable-todo-once' into 'master' Kamil Trzciński2017-02-281-0/+25
|\ | | | | | | | | | | | | Only create unmergeable todos once Closes #28555 See merge request !9513
| * Only create unmergeable todos onceonly-create-unmergeable-todo-onceSean McGivern2017-02-241-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we created an unmergeable todo when a merge request: 1. Had merge when pipeline succeeds set. 2. Became unmergeable. However, when merge when pipeline succeeds fails due to unmergeability, the flag isn't actually removed. And a merge request can become unmergeable multiple times, as every time the target branch is updated we need to re-check the mergeable status. This means that if the todo was marked done, and the MR was checked again, a new todo would be created for the same event. Instead of checking this, we should create the todo from the service responsible for merging when the pipeline succeeds. That way the todo is guaranteed to only be created when we care about it.
* | Rename commit_file, commit_dir and remove_file and update specsDouwe Maan2017-02-241-3/+2
|/
* Revert "Enable Style/DotPosition"Douwe Maan2017-02-233-21/+21
| | | | | | | | | | | | | | | This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9. # Conflicts: # .rubocop.yml # .rubocop_todo.yml # lib/gitlab/ci/config/entry/global.rb # lib/gitlab/ci/config/entry/jobs.rb # spec/lib/gitlab/ci/config/entry/factory_spec.rb # spec/lib/gitlab/ci/config/entry/global_spec.rb # spec/lib/gitlab/ci/config/entry/job_spec.rb # spec/lib/gitlab/ci/status/build/factory_spec.rb # spec/lib/gitlab/incoming_email_spec.rb
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-238-47/+47
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Fix new offensesDouwe Maan2017-02-231-3/+3
|
* Enable Style/WordArrayDouwe Maan2017-02-231-4/+4
|
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-238-47/+47
|
* Enable Style/DotPositionDouwe Maan2017-02-232-18/+18
|
* Create compare object with default branch when target branch is missingissue_28051_2Felipe Artur2017-02-211-7/+6
|
* Merge branch 'master' into fix/gb/pipeline-retry-builds-startedGrzegorz Bizon2017-02-172-18/+52
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (313 commits) Allow slashes in slash command arguments Add API endpoint to get all milestone merge requests remove trailing comma Restore pagination to admin abuse reports replace deprecated NoErrorsPlugin with NoEmitOnErrorsPlugin only compress assets in production Reduce number of pipelines created to test pagination add CHANGELOG.md entry for !8761 prevent diff unfolding link from appearing for deleted files fix build failures only show diff unfolding link if there are more lines to show fix typo in node section Only yield valid references in ReferenceFilter.references_in Cache js selectors; fix css move "Install node modules" step before "Migrate DB" within update process Renders pagination again for pipelines table update migration docs for 8.17 to include minimum node version Add CHANGELOG file Fix positioning of top scroll button Remove comments in migration ...
| * Show merge errors in merge request widgetSean McGivern2017-02-161-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two problems here: 1. On the JS side, the reference to $widgetBody didn't refer to the right DOM element any more. This might be because it was replaced by the `getMergeStatus` method. Even if it wasn't, ensuring we have the right element means that the content gets updated. 2. On the Ruby side, the `log_merge_error` method didn't update the `merge_error` column of the merge request. Change that to update if requested, and update in the most common cases by default. Additionally, this would sometimes return an error hash, but it doesn't look like this was ever used (the return value of `MergeService#execute` appears to be unused everywhere).
| * Mark as WIP based on MR commits onlyJarka Kadlecova2017-02-131-9/+32
| |
* | Make it possible to resolve all todos for pipelineGrzegorz Bizon2017-02-151-1/+24
|/
* Backport changes from EE squashSean McGivern2017-02-031-1/+1
| | | | | | | Backport changes from the EE-only squash implementation, which would otherwise conflict when merge CE into EE. <https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1024>
* Merge branch 'fix-git-hooks-when-creating-file' into 'master' Douwe Maan2017-02-021-1/+7
|\ | | | | | | | | | | | | Don't execute git hooks if you create branch as part of other change Closes #23439 See merge request !7237
| * Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-01-262-14/+194
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-hooks-when-creating-file * upstream/master: (1122 commits) Update CHANGELOG.md for 8.16.2 Display project ID in project settings (!8572) fixed points from comments to improve code quality Update CHANGELOG.md for 8.14.8 Statisfy eslint Add CHANGELOG entry Fix access to the wiki code via HTTP when repository feature disabled Display fullscreen button on small screens (!5302) Prevent removing fields from dropdowns on input elements fix for all themes Return struct instead of multiple values Fix race conditions for AuthorizedProjectsWorker Add User#nested_groups and User#nested_projects methods Fix spec failure due to timestamp ordering issue in mySQL Fixed error with filter keyboard tests `can?` already includes the `feature_available?` check Test there is no Merge Request button when MRs are disabled Ensure the correct Merge Request button is found Add 409 conflict tests Add CHANGELOG ...
| * \ Merge branch 'master' into fix-git-hooks-when-creating-fileLin Jen-Shin2017-01-043-0/+8
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (1031 commits) Add changelog entry for renaming API param [ci skip] Add missing milestone parameter Refactor issues filter in API Fix project hooks params Gitlab::LDAP::Person uses LDAP attributes configuration Don't delete files from spec/fixtures Copy, don't move uploaded avatar files Minor improvements to changelog docs Rename logo, apply for Slack too Fix Gemfile.lock for the octokit update Fix cross-project references copy to include the project reference Add logo in public files Use stable icon for Mattermost integration rewrite the item.respond_to?(:x?) && item.x? to item.try(:x?) API: extern_uid is a string Increases pipeline graph drowdown width in order to prevent strange position on chrome on ubuntu Removed bottom padding from merge manually from CLI because of repositioning award emoji's Make haml_lint happy Improve spec Add feature tests for Cycle Analytics ...
| * \ \ Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2016-12-101-9/+19
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-hooks-when-creating-file * upstream/master: (60 commits) Refactor SSH keys docs Improvements to setting up ssh Do not reload diff for merge request made from fork when target branch in fork is updated Add 8.12.10, 8.12.11, and 8.12.12 CHANGELOG.md items Changes after review Fix broken test Adds CHANGELOG entry Adds tests Uniformize props name format Replace commit icon svg logic Replace play icon svg logic Update docs to reflect new defaults on omnibus Merge branch 'jej-23867-use-mr-finder-instead-of-access-check' into 'security' Merge branch 'html-safe-diff-line-content' into 'security' Merge branch 'rs-filter-authentication_token' into 'security' Merge branch 'destroy-session' into 'security' remove unnecessary issues event filter on comments tab Updating reference to database password Add CHANGELOG entry Displays milestone remaining days only when it's present ...
| * \ \ \ Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2016-12-081-5/+11
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-hooks-when-creating-file * upstream/master: (116 commits) adds impersonator variable and makes sudo usage overall more clear Reenables /user API request to return private-token if user is admin and requested with sudo Fix Backup::Manager#remove_old Allow public access to some Tag API endpoints Update outdated visible content spec descriptions Grapify the issues API new DevOps report, 404s, typos Remove dashboard.scss Update custom_hooks.md for global custom hooks and chained hook info Move admin hooks spinach to rspec Move admin logs spinach test to rspec Fix 404 error when visit group label edit page A simpler implementation of finding a merge request Encourage bug reporters to mention if they use GitLab.com [ci skip] Bump gitlab-shell version to 4.0.3 Remove confirmation.scss Explain "js: true" in "deleted_source_branch_spec.rb" [ci skip] Move award emojis to framwork Move image styles to framework Remove tags.scss ...
| * | | | | Fix tests to use the new APILin Jen-Shin2016-12-081-1/+7
| | | | | |
* | | | | | Active tense test coveragejej-backport-active-tense-specsValery Sizov2017-02-011-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Ports changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/642 back into CE
* | | | | Backport EE changes on approvals reset for closed MRsbackport-ee-1051-approvals-reset-on-closed-mrOswaldo Ferreira2017-01-231-14/+37
| | | | |
* | | | | Mark MR as WIP when pushing WIP commitsjurre2017-01-191-0/+64
| | | | |
* | | | | Address MR commentsJarka Kadlecova2017-01-131-1/+1
| | | | |