diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-16 21:12:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-16 21:12:05 +0000 |
commit | f9e0126cad562c7199e26e84a1540df3bc849e55 (patch) | |
tree | 5390ccbadaa4f1f49eeb44c45b805f26bd12ceef /app/controllers/projects/ci/pipeline_editor_controller.rb | |
parent | c1436508fa677bbe850e1e13761d2e6b791c698c (diff) | |
download | gitlab-ce-f9e0126cad562c7199e26e84a1540df3bc849e55.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/projects/ci/pipeline_editor_controller.rb')
-rw-r--r-- | app/controllers/projects/ci/pipeline_editor_controller.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/projects/ci/pipeline_editor_controller.rb b/app/controllers/projects/ci/pipeline_editor_controller.rb index c8394d91677..70a1a855e91 100644 --- a/app/controllers/projects/ci/pipeline_editor_controller.rb +++ b/app/controllers/projects/ci/pipeline_editor_controller.rb @@ -2,6 +2,7 @@ class Projects::Ci::PipelineEditorController < Projects::ApplicationController before_action :check_can_collaborate! + before_action :setup_walkthrough_experiment, only: :show before_action do push_frontend_feature_flag(:schema_linting, @project, default_enabled: :yaml) end @@ -16,4 +17,10 @@ class Projects::Ci::PipelineEditorController < Projects::ApplicationController def check_can_collaborate! render_404 unless can_collaborate_with_project?(@project) end + + def setup_walkthrough_experiment + experiment(:pipeline_editor_walkthrough, actor: current_user) do |e| + e.candidate {} + end + end end |