summaryrefslogtreecommitdiff
path: root/app/services/merge_requests/create_service.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-05-031-0/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-02-081-5/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-11-281-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-11-081-5/+9
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-10-201-1/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-05-041-3/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-03-021-3/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-02-221-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-061-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-011-10/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-03-041-2/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-03-031-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-291-6/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-271-6/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-061-10/+11
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-071-0/+5
|
* Only assign merge params when allowedBob Van Landuyt2019-10-241-1/+0
| | | | | | | | | When a user updates a merge request coming from a fork, they should not be able to set `force_remove_source_branch` if they cannot push code to the source project. Otherwise developers of the target project could remove the source branch of the source project by setting this flag through the API.
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Add usage pings for merge request creatingIgor2019-08-261-0/+1
| | | | Code Review Usage Ping for Create SMAU
* Create detached merge request pipelinespersist-fulll-ref-path-for-mr-pipelinesShinya Maeda2019-03-291-1/+1
| | | | | | | | | | | | | | | | | | By using `refs/merge-requests/:iid/head` ok ok Improve naming nicely Add nice tests add nice tests fix some more revert
* Refactor the logic of updating head pipelinesShinya Maeda2019-01-041-15/+1
| | | | Sort out some logic
* Merge request pipelinesShinya Maeda2018-12-051-5/+2
|
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Enable more frozen string in app/services/**/*.rbrepo-forks/gitlab-ce-frozen-string-enable-apps-services-inner-moregfyoung2018-07-171-0/+2
| | | | Partially addresses #47424.
* Rename `create_merge_request` permissionsBob Van Landuyt2018-04-111-2/+2
| | | | | | | | | | So we can distinguish between the permissions on the source and the target project. - `create_merge_request_from` indicates a user can create a merge request with the project as a source_project - `create_merge_request_in` indicates a user can create a merge request with the project as a target_project
* Prevent new merge requests for archived projectsBob Van Landuyt2018-04-111-1/+1
| | | | | | | This prevents creating merge requests targeting archived projects. This could happen when a project was already forked, but then the source was archived.
* Rename quick actions handlerOswaldo Ferreira2018-03-051-1/+1
|
* Move wip handling to MergeRequest::BaseServicewip-slash-command-on-mr-descriptionOswaldo Ferreira2018-03-011-0/+6
|
* Remove allow_n_plus_1_calls from MergeRequests::CreateServicefix/reduce-number-of-ref-exists-callsAhmad Sherif2018-02-071-4/+1
| | | | | Fixes #37439 Fixes gitaly#1000
* Merge branch '41567-projectfix' into 'security-10-3'Sean McGivern2018-01-161-6/+22
| | | | | | | | | | check project access on MR create See merge request gitlab/gitlabhq!2273 (cherry picked from commit 1fe2325d6ef2bced4c5e97b57691c894f38b2834) 43e85f49 check project access on MR create
* Create merge request from emailJan Provaznik2017-12-051-0/+6
| | | | | | | | | | | * new merge request can be created by sending an email to the specific email address (similar to creating issues by email) * for the first iteration, source branch must be specified in the mail subject, other merge request parameters can not be set yet * user should enable "Receive notifications about your own activity" in user settings to receive a notification about created merge request Part of #32878
* Detect n+1 issues involving GitalyAndrew Newdigate2017-09-191-1/+4
|
* Cache the number of open issues and merge requestsYorick Peterse2017-08-231-0/+2
| | | | | | | | | | | | | | | | | | | | | Every project page displays a navigation menu that in turn displays the number of open issues and merge requests. This means that for every project page we run two COUNT(*) queries, each taking up roughly 30 milliseconds on GitLab.com. By caching these numbers and refreshing them whenever necessary we can reduce loading times of all these pages by up to roughly 60 milliseconds. The number of open issues does not include confidential issues. This is a trade-off to keep the code simple and to ensure refreshing the data only needs 2 COUNT(*) queries instead of 3. A downside is that if a project only has 5 confidential issues the counter will be set to 0. Because we now have 3 similar counting service classes the code previously used in Projects::ForksCountService has mostly been moved to Projects::CountService, which in turn is reused by the various service classes. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36622
* Don't create event in Merge Request Create ServiceJarka Kadlecova2017-08-161-1/+0
|
* Simplify checking if objects exist code in new issaubles workers36119-issuable-workersJarka Kadlecova2017-08-081-0/+1
|
* Merge branch '32844-issuables-performance' into 'master'Sean McGivern2017-08-071-1/+7
|\ | | | | | | | | Issuables: Move some code from create services to Sidekiq workers See merge request !13326
| * Move some after_create parts to worker to improve performance32844-issuables-performanceJarka Kadlecova2017-08-071-1/+7
| |
* | essentialShinya Maeda2017-08-041-1/+6
|/
* Backport MR create service changes from EEbackport-mr-create-service-changesSean McGivern2017-07-121-2/+1
| | | | | In EE, the `filter_params` method needs the MR to already have its `target_project` assigned.
* Fix race condition between pipeline creation and MR diff_head_sha updateDouwe Maan2017-06-011-6/+3
|
* Set head pipeline when creating merge requestsissue_32225_2Felipe Artur2017-05-291-0/+18
|
* Use the `IssuableBaseService` lifecycle hooks to cache ↵Timothy Andrew2016-09-211-0/+1
| | | | | | | `MergeRequestsClosingIssues` - Instead of overriding `create` and `update` in `MergeRequests::BaseService` - Get all merge request service specs passing
* Fix specs and implement fixes based on failing specsDouwe Maan2016-08-171-1/+1
|
* Support slash commands in noteable description and notesRémy Coutable2016-08-131-16/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Some important things to note: - commands are removed from noteable.description / note.note - commands are translated to params so that they are treated as normal params in noteable Creation services - the logic is not in the models but in the Creation services, which is the right place for advanced logic that has nothing to do with what models should be responsible of! - UI/JS needs to be updated to handle notes which consist of commands only - the `/merge` command is not handled yet Other improvements: - Don't process commands in commit notes and display a flash is note is only commands - Add autocomplete for slash commands - Add description and params to slash command DSL methods - Ensure replying by email with a commands-only note works - Use :subscription_event instead of calling noteable.subscribe - Support :todo_event in IssuableBaseService Signed-off-by: Rémy Coutable <remy@rymai.me>
* Allows MR authors to have the source branch removed when merging the MRJeroen Jacobs2016-05-201-2/+5
|
* Rename Tasks to TodosDouglas Barbosa Alexandre2016-02-201-1/+1
|
* Create a pending task when an MR is assigned to someoneDouglas Barbosa Alexandre2016-02-201-1/+2
|
* Simplify code around (cross)-referencesDouwe Maan2015-10-121-1/+1
|
* Check permissions on target project in merge request create service.Douwe Maan2015-08-211-2/+8
|