summaryrefslogtreecommitdiff
path: root/spec/models/merge_request_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-15/+15
|
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-1/+1
|
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-271-1/+1
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support both internal and external issue trackersJarka Kadlecova2017-07-241-6/+46
|
* Speed up `all_commit_shas` for new merge requestsSean McGivern2017-07-071-1/+1
| | | | | | | | | | For merge requests created after 9.4, we have a `merge_request_diff_commits` table we can get all the SHAs from very quickly. We just need to exclude these when we load from the legacy format, by ignoring diffs with no serialised commits. Once these have been migrated in the background, every MR will see this improvement.
* Add table for merge request commitsSean McGivern2017-07-061-9/+9
| | | | | | | | | | | This is an ID-less table with just three columns: an association to the merge request diff the commit belongs to, the relative order of the commit within the merge request diff, and the commit SHA itself. Previously we stored much more information about the commits, so that we could display them even when they were deleted from the repo. Since 8.0, we ensure that those commits are kept around for as long as the target repo itself is, so we don't need to duplicate that data in the database.
* Add many foreign keys to the projects tableYorick Peterse2017-07-061-1/+1
| | | | | | | | | | | | This removes the need for relying on Rails' "dependent" option for data removal, which is _incredibly_ slow (even when using :delete_all) when deleting large amounts of data. This also ensures data consistency is enforced on DB level and not on application level (something Rails is really bad at). This commit also includes various migrations to add foreign keys to tables that eventually point to "projects" to ensure no rows get orphaned upon removing a project.
* Merge branch 'tc-namespace-license-checks--multiple-assignees' into 'master'Douwe Maan2017-07-041-0/+16
|\ | | | | | | | | CE counterpart of: Namespace license checks for multiple assignees See merge request !11825
| * Make MergeRequest respond to assignee_ids & assignee_ids=Toon Claes2017-06-201-0/+16
| | | | | | | | | | To make it simpler to assign users to an Issuable, make MergeRequest support the attribute `assignee_ids`.
* | Store merge request ref_fetched status in the database34052-store-mr-ref-fetched-in-databaseAdam Niedzielski2017-06-261-0/+36
| | | | | | | | Closes #34052
* | Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-25/+25
|/
* Rename "Slash commands" to "Quick actions"Eric Eastwood2017-06-151-12/+12
| | | | | | | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27070 Deprecate "chat commands" in favor of "slash commands" We looked for things like: - `slash commmand` - `slash_command` - `slash-command` - `SlashCommand`
* Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-141-4/+12
|
* Merge branch 'dm-update-discussion-diff-position' into 'master'Grzegorz Bizon2017-06-011-5/+5
|\ | | | | | | | | | | | | Update diff discussion position per discussion instead of per note Closes #33157 See merge request !11833
| * Update diff discussion position per discussion instead of per notedm-update-discussion-diff-positionDouwe Maan2017-05-311-5/+5
| |
* | Consistent diff and blob size limit namesDouwe Maan2017-05-291-2/+2
|/
* Merge branch 'dm-diff-cleanup' into 'master'Robert Speicher2017-05-251-3/+3
|\ | | | | | | | | Clean up diff rendering See merge request !11390
| * Pass fallback_diff_refs to Diff::File instead of using view helpersDouwe Maan2017-05-231-3/+3
| |
* | Add system note with link to diff comparison when MR discussion becomes outdatedDouwe Maan2017-05-231-2/+34
|/
* Add transient head_pipeline_of to pipeline factoriesissue_32225Felipe Artur2017-05-221-5/+3
|
* Merge branch 'fix-conflict-resolution-with-corrupt-repos' into 'master' Douwe Maan2017-05-121-65/+0
|\ | | | | | | | | | | | | 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-121-65/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-121-42/+0
|/
* Small code improvements and add migration specFelipe Artur2017-05-081-2/+1
|
* Fix specs 2Felipe Artur2017-05-081-1/+3
|
* Fix SpecsFelipe Artur2017-05-081-9/+7
|
* Backport of multiple_assignees_feature [ci skip]Valery Sizov2017-05-041-10/+81
|
* Allow commenting on older versions of the diff and comparisons between diff ↵dm-link-discussion-to-outdated-diffDouwe Maan2017-05-031-0/+19
| | | | versions
* Show correct size when MR diff overflowsSean McGivern2017-04-251-7/+25
| | | | | | | The problem is that we often go via a diff object constructed from the diffs stored in the DB. Those diffs, by definition, don't overflow, so we don't have access to the 'correct' `real_size` - that is stored on the MR diff object iself.
* Remove helpers assigned_issuables_count and cached_assigned_issuables_countuassign_on_member_removingValery Sizov2017-04-201-4/+6
|
* Merge branch 'master' into new-resolvable-discussionLuke "Jared" Bennett2017-04-071-1/+1
|\
| * Moved Project#protected_branch? to ProtectedBranch, similar for tagsJames Edwards-Jones2017-04-031-1/+1
| |
* | Address review commentsDouwe Maan2017-04-051-176/+0
| |
* | Add specsDouwe Maan2017-04-051-7/+3
| |
* | Fix some specsDouwe Maan2017-04-051-10/+10
| |
* | Add option to start a new discussion on an MRDouwe Maan2017-04-051-32/+36
|/
* Include time tracking attributes in webhooks payload27271-missing-time-spent-in-issue-webhookRuben Davila2017-03-141-1/+5
|
* Fix issues mentioned but not closed for JIRASean McGivern2017-03-061-0/+17
| | | | | | | The `ReferenceExtractor` would return an array of `ExternalIssue` objects, and then perform `Array#-` to remove the issues closed. `ExternalIssue`s had `==` defined, but not `hash` or `eql?`, which are used by `Array#-`.
* Update occurrences of MWBS to MWPSfix/mwbs-to-mwpsJames Lopez2017-03-011-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Only create unmergeable todos onceonly-create-unmergeable-todo-onceSean McGivern2017-02-241-6/+0
| | | | | | | | | | | | | | | | | | 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.
* Fix MR changes tab size countfix-mr-size-with-over-100-filesSean McGivern2017-02-231-0/+44
| | | | | | | | This was wrong when there were over 100 files in the diff, because we did not use the same diff options as subclasses of `Gitlab::Diff::FileCollection::Base` when getting the raw diffs. (The reason we don't use those classes directly is because they may perform highlighting, which isn't needed for just counting the diffs.)
* Merge branch 'restore-issues_mentioned_but_not_closing' into 'master'Sean McGivern2017-02-081-3/+3
|\ | | | | | | | | pass in current_user in MergeRequest and MergeRequestsHelper See merge request !8624
| * Remove MergeRequest#closes_issue?; Remove the default parameter value for ↵Dongqing Hu2017-01-311-3/+3
| | | | | | | | #cache_merge_request_closes_issues! and #issues_mentioned_but_not_closing
* | Address feedbackDouwe Maan2017-02-061-5/+11
| |
* | Improve performance of finding last deployed environmentDouwe Maan2017-02-061-24/+0
| |
* | Add testsDouwe Maan2017-02-061-0/+24
| |
* | Convert most MergeRequest model specs to use `:empty_project`Robert Speicher2017-01-191-22/+22
| |
* | Merge branch '23524-notify-automerge-user-of-failed-build' into 'master' Sean McGivern2017-01-191-1/+9
|\ \ | |/ |/| | | | | | | | | Notify the user who set auto-merge when merge is not possible Closes #23524 See merge request !8056
| * Notify the user who set auto-merge when merge conflict occurstwonegatives2017-01-141-1/+9
| |
* | Address MR commentsJarka Kadlecova2017-01-131-0/+6
| |