Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pipeline_editor_controller.rb « ci « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8499bf0ced76853011c41056e7cdcf59c6a05500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

class Projects::Ci::PipelineEditorController < Projects::ApplicationController
  before_action :check_can_collaborate!
  before_action do
    push_frontend_feature_flag(:ci_job_assistant_drawer, @project)
    push_frontend_feature_flag(:ai_ci_config_generator, @user)
    push_frontend_feature_flag(:ci_graphql_pipeline_mini_graph, @project)
  end

  feature_category :pipeline_composition

  urgency :low, [:show]

  def show
  end

  private

  def check_can_collaborate!
    render_404 unless can_collaborate_with_project?(@project)
  end
end