diff options
author | Felipe Artur <felipefac@gmail.com> | 2018-06-25 16:46:36 -0300 |
---|---|---|
committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2018-10-05 11:28:45 -0600 |
commit | 47e8379ea7085dc0862695c0d687d4dcc6bf7493 (patch) | |
tree | 3551b848ff18b065adc344c7599f10343de53f56 /config | |
parent | 070add57261a3dd309bc918bfb4ea2e2a0643bf1 (diff) | |
download | gitlab-ce-47e8379ea7085dc0862695c0d687d4dcc6bf7493.tar.gz |
Add draft comments for MergeRequests
Implements a new model, DraftNote, which is related to MergeRequests
only and enables to comment on a review in batches. The DraftNotes are
only visible to the author until they're published at which point they
become regular Notes.
This also includes a DraftsController and two related services:
DraftNotes::CreateService and DraftNotes::PublishService
A DraftNote behaves almost identically to a Note, except has no cached
markdown fields and needs to process quick action changes every time it
is displayed.
NOTE: THIS IS ONLY THE BACKEND CHANGES. NO FRONTEND INCLUDED
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/project.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index fd12bb86946..79e93c04947 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -158,6 +158,17 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do resources :approver_groups, only: :destroy ## EE-specific + ## EE-specific + scope module: :merge_requests do + resources :drafts, only: [:index, :update, :create, :destroy] do + collection do + post :publish + delete :discard + end + end + end + ## EE-specific + resources :discussions, only: [:show], constraints: { id: /\h{40}/ } do member do post :resolve |