Commit 4e2de04a authored by egrieff's avatar egrieff

Remove support for merge request bulk update

parent 49e00774
......@@ -9,13 +9,8 @@
= render 'shared/issuable/nav', type: :merge_requests
- if current_user
.nav-controls
- if @can_bulk_update
= button_tag _('Edit merge requests'), class: 'btn btn-default append-right-10 js-bulk-update-toggle'
= render 'shared/new_project_item_select', path: 'merge_requests/new', label: "New merge request", type: :merge_requests, with_feature_enabled: 'merge_requests', with_shared: false, include_projects_in_subgroups: true
= render 'shared/issuable/search_bar', type: :merge_requests
- if @can_bulk_update
= render 'shared/issuable/group_bulk_update_sidebar', type: :merge_requests
= render 'shared/merge_requests'
# frozen_string_literal: true
class Groups::MergeRequestsController < Groups::ApplicationController
include IssuableActions
before_action :authorize_admin_group!
before_action :verify_group_bulk_edit_enabled!, only: [:bulk_update]
private
def verify_group_bulk_edit_enabled!
render_404 unless @group.feature_available?(:group_bulk_edit)
end
end
......@@ -78,12 +78,6 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
end
end
resources :merge_requests, only: [] do
collection do
post :bulk_update
end
end
resources :todos, only: [:create]
resources :boards, only: [:create, :update, :destroy] do
collection do
......
......@@ -88,12 +88,4 @@ describe 'Group routing', "routing" do
expect(post('/groups/gitlabhq/-/issues/bulk_update')).to route_to('groups/issues#bulk_update', group_id: 'gitlabhq')
end
end
describe 'merge_requests' do
it 'routes post to #bulk_update' do
allow(Group).to receive(:find_by_full_path).with('gitlabhq', any_args).and_return(true)
expect(post('/groups/gitlabhq/-/merge_requests/bulk_update')).to route_to('groups/merge_requests#bulk_update', group_id: 'gitlabhq')
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment