Commit ec0f57dd authored by Miguel Rincon's avatar Miguel Rincon

Move the project runners to /-/ namespace

This refactor moves the project runner paths to be consistent with other
project paths.

In practice, most runner paths are defined inside the CI/CD settings, so
this update only changes runner details and edit.

This change includes a backwards compatible redirection.
parent 5261002c
...@@ -100,6 +100,18 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -100,6 +100,18 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end end
end end
resources :runners, only: [:index, :edit, :update, :destroy, :show] do
member do
post :resume
post :pause
end
collection do
post :toggle_shared_runners
post :toggle_group_runners
end
end
namespace :settings do namespace :settings do
resource :ci_cd, only: [:show, :update], controller: 'ci_cd' do resource :ci_cd, only: [:show, :update], controller: 'ci_cd' do
post :reset_cache post :reset_cache
...@@ -523,18 +535,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -523,18 +535,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end end
end end
resources :runners, only: [:index, :edit, :update, :destroy, :show] do # rubocop: disable Cop/PutProjectRoutesUnderScope
member do
post :resume # rubocop:todo Cop/PutProjectRoutesUnderScope
post :pause # rubocop:todo Cop/PutProjectRoutesUnderScope
end
collection do
post :toggle_shared_runners # rubocop:todo Cop/PutProjectRoutesUnderScope
post :toggle_group_runners # rubocop:todo Cop/PutProjectRoutesUnderScope
end
end
resources :runner_projects, only: [:create, :destroy] # rubocop: disable Cop/PutProjectRoutesUnderScope resources :runner_projects, only: [:create, :destroy] # rubocop: disable Cop/PutProjectRoutesUnderScope
resources :badges, only: [:index] do # rubocop: disable Cop/PutProjectRoutesUnderScope resources :badges, only: [:index] do # rubocop: disable Cop/PutProjectRoutesUnderScope
collection do collection do
...@@ -596,7 +596,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -596,7 +596,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
:tracing, :tracing,
:serverless, :clusters, :audit_events, :wikis, :merge_requests, :serverless, :clusters, :audit_events, :wikis, :merge_requests,
:vulnerability_feedback, :security, :dependencies, :issues, :vulnerability_feedback, :security, :dependencies, :issues,
:pipelines, :pipeline_schedules, :snippets) :pipelines, :pipeline_schedules, :runners, :snippets)
end end
# rubocop: disable Cop/PutProjectRoutesUnderScope # rubocop: disable Cop/PutProjectRoutesUnderScope
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment