2021-01-29 00:20:46 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Projects::Ci::PipelineEditorController < Projects::ApplicationController
|
|
|
|
before_action :check_can_collaborate!
|
2021-02-22 17:27:13 +05:30
|
|
|
before_action do
|
2021-03-08 18:12:59 +05:30
|
|
|
push_frontend_feature_flag(:ci_config_visualization_tab, @project, default_enabled: :yaml)
|
2021-03-11 19:13:27 +05:30
|
|
|
push_frontend_feature_flag(:ci_config_merged_tab, @project, default_enabled: :yaml)
|
2021-04-17 20:07:23 +05:30
|
|
|
push_frontend_feature_flag(:pipeline_status_for_pipeline_editor, @project, default_enabled: :yaml)
|
|
|
|
push_frontend_feature_flag(:pipeline_editor_empty_state_action, @project, default_enabled: :yaml)
|
2021-02-22 17:27:13 +05:30
|
|
|
end
|
2021-01-29 00:20:46 +05:30
|
|
|
|
|
|
|
feature_category :pipeline_authoring
|
|
|
|
|
|
|
|
def show
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def check_can_collaborate!
|
|
|
|
render_404 unless can_collaborate_with_project?(@project)
|
|
|
|
end
|
|
|
|
end
|