Skip to content
Snippets Groups Projects
Commit a2d63468 authored by Sean McGivern's avatar Sean McGivern Committed by GitLab Release Tools Bot
Browse files

Merge branch 'remove-issues-import-csv-feature-flag' into 'master'

Remove import_issues_csv feature flag

See merge request gitlab-org/gitlab-ce!24324

(cherry picked from commit f598daf2)

993cff04 Remove import_issues_csv feature flag
parent 2f9f3e28
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -178,8 +178,6 @@ class Projects::IssuesController < Projects::ApplicationController
end
 
def import_csv
return render_404 unless Feature.enabled?(:issues_import_csv)
if uploader = UploadService.new(project, params[:file]).execute
ImportIssuesCsvWorker.perform_async(current_user.id, project.id, uploader.upload.id)
 
Loading
Loading
- show_feed_buttons = local_assigns.fetch(:show_feed_buttons, true)
- show_import_button = local_assigns.fetch(:show_import_button, true) && Feature.enabled?(:issues_import_csv) && can?(current_user, :import_issues, @project)
- show_import_button = local_assigns.fetch(:show_import_button, true) && can?(current_user, :import_issues, @project)
- show_export_button = local_assigns.fetch(:show_export_button, true)
 
.nav-controls.issues-nav-controls
Loading
Loading
- button_path = local_assigns.fetch(:button_path, false)
- project_select_button = local_assigns.fetch(:project_select_button, false)
- show_import_button = local_assigns.fetch(:show_import_button, false) && Feature.enabled?(:issues_import_csv) && can?(current_user, :import_issues, @project)
- show_import_button = local_assigns.fetch(:show_import_button, false) && can?(current_user, :import_issues, @project)
- has_button = button_path || project_select_button
 
.row.empty-state
Loading
Loading
Loading
Loading
@@ -1030,19 +1030,6 @@ describe Projects::IssuesController do
let(:project) { create(:project, :public) }
let(:file) { fixture_file_upload('spec/fixtures/csv_comma.csv') }
 
context 'feature disabled' do
it 'returns 404' do
sign_in(user)
project.add_maintainer(user)
stub_feature_flags(issues_import_csv: false)
import_csv
expect(response).to have_gitlab_http_status :not_found
end
end
context 'unauthorized' do
it 'returns 404 for guests' do
sign_out(:user)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment