summaryrefslogtreecommitdiff
path: root/app/controllers/admin/runners_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/runners_controller.rb')
-rw-r--r--app/controllers/admin/runners_controller.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controllers/admin/runners_controller.rb b/app/controllers/admin/runners_controller.rb
index 9312651b8bf..16657612050 100644
--- a/app/controllers/admin/runners_controller.rb
+++ b/app/controllers/admin/runners_controller.rb
@@ -11,13 +11,21 @@ class Admin::RunnersController < Admin::ApplicationController
end
def show
+ # We will show runner details in a read-only view in
+ # future iterations. For now, this route will have a
+ # redirect until this new view is developed. See more:
+ # https://gitlab.com/gitlab-org/gitlab/-/issues/347856
+ redirect_to edit_admin_runner_path(runner) unless Feature.enabled?(:runner_read_only_admin_view, default_enabled: :yaml)
+ end
+
+ def edit
assign_builds_and_projects
end
def update
if Ci::UpdateRunnerService.new(@runner).update(runner_params)
respond_to do |format|
- format.html { redirect_to admin_runner_path(@runner) }
+ format.html { redirect_to edit_admin_runner_path(@runner) }
end
else
assign_builds_and_projects