2020-10-30 08:08:44 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Projects::Ci::PipelineEditorController < Projects::ApplicationController
|
|
|
|
before_action :check_can_collaborate!
|
2020-12-16 10:10:18 -05:00
|
|
|
before_action do
|
2021-01-14 13:10:59 -05:00
|
|
|
push_frontend_feature_flag(:ci_config_visualization_tab, @project, default_enabled: :yaml)
|
2021-02-12 13:08:59 -05:00
|
|
|
push_frontend_feature_flag(:ci_config_merged_tab, @project, default_enabled: :yaml)
|
2021-02-18 07:09:34 -05:00
|
|
|
push_frontend_feature_flag(:pipeline_status_for_pipeline_editor, @project, default_enabled: :yaml)
|
2020-12-16 10:10:18 -05:00
|
|
|
end
|
2020-10-30 08:08:44 -04:00
|
|
|
|
|
|
|
feature_category :pipeline_authoring
|
|
|
|
|
|
|
|
def show
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def check_can_collaborate!
|
|
|
|
render_404 unless can_collaborate_with_project?(@project)
|
|
|
|
end
|
|
|
|
end
|