Commit fe19f9d2 authored by George Koltsov's avatar George Koltsov Committed by Kerri Miller

Bump min access level for Bulk Import UI to Owner when listing groups

parent 1e61497b
...@@ -78,7 +78,7 @@ class Import::BulkImportsController < ApplicationController ...@@ -78,7 +78,7 @@ class Import::BulkImportsController < ApplicationController
def query_params def query_params
query_params = { query_params = {
top_level_only: true, top_level_only: true,
min_access_level: Gitlab::Access::MAINTAINER min_access_level: Gitlab::Access::OWNER
} }
query_params[:search] = sanitized_filter_param if sanitized_filter_param query_params[:search] = sanitized_filter_param if sanitized_filter_param
......
...@@ -117,7 +117,8 @@ on an existing group's page. ...@@ -117,7 +117,8 @@ on an existing group's page.
### Selecting which groups to import ### Selecting which groups to import
After you have authorized access to GitLab instance, you are redirected to the GitLab Group Migration importer page and your remote GitLab groups are listed. After you have authorized access to the GitLab instance, you are redirected to the GitLab Group
Migration importer page. Your remote GitLab groups, which you have Owner access to, are listed.
1. By default, the proposed group namespaces match the names as they exist in remote instance, but based on your permissions, you can choose to edit these names before you proceed to import any of them. 1. By default, the proposed group namespaces match the names as they exist in remote instance, but based on your permissions, you can choose to edit these names before you proceed to import any of them.
......
...@@ -73,7 +73,7 @@ RSpec.describe Import::BulkImportsController do ...@@ -73,7 +73,7 @@ RSpec.describe Import::BulkImportsController do
let(:client_params) do let(:client_params) do
{ {
top_level_only: true, top_level_only: true,
min_access_level: Gitlab::Access::MAINTAINER min_access_level: Gitlab::Access::OWNER
} }
end end
......
...@@ -24,7 +24,7 @@ RSpec.describe 'Import/Export - Connect to another instance', :js do ...@@ -24,7 +24,7 @@ RSpec.describe 'Import/Export - Connect to another instance', :js do
pat = 'demo-pat' pat = 'demo-pat'
stub_path = 'stub-group' stub_path = 'stub-group'
total = 37 total = 37
stub_request(:get, "%{url}/api/v4/groups?page=1&per_page=20&top_level_only=true&min_access_level=40&search=" % { url: source_url }).to_return( stub_request(:get, "%{url}/api/v4/groups?page=1&per_page=20&top_level_only=true&min_access_level=50&search=" % { url: source_url }).to_return(
body: [{ body: [{
id: 2595438, id: 2595438,
web_url: 'https://gitlab.com/groups/auto-breakfast', web_url: 'https://gitlab.com/groups/auto-breakfast',
......
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