Commit 8f3c5803 authored by Markus Koller's avatar Markus Koller

Merge branch 'remove-deprecated-routes-to-instance-statistics' into 'master'

Remove deprecated routes to instance statistics

Closes #239312

See merge request gitlab-org/gitlab!42338
parents c9e9bb32 68d4fad3
...@@ -69,10 +69,6 @@ Rails.application.routes.draw do ...@@ -69,10 +69,6 @@ Rails.application.routes.draw do
# Begin of the /-/ scope. # Begin of the /-/ scope.
# Use this scope for all new global routes. # Use this scope for all new global routes.
scope path: '-' do scope path: '-' do
# remove in 13.5
get '/instance_statistics', to: redirect('admin/dev_ops_report')
get '/instance_statistics/dev_ops_score', to: redirect('admin/dev_ops_report')
get '/instance_statistics/cohorts', to: redirect('admin/cohorts')
# Autocomplete # Autocomplete
get '/autocomplete/users' => 'autocomplete#users' get '/autocomplete/users' => 'autocomplete#users'
get '/autocomplete/users/:id' => 'autocomplete#user' get '/autocomplete/users/:id' => 'autocomplete#user'
......
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Instance Statistics', 'routing' do
include RSpec::Rails::RequestExampleGroup
it "routes '/-/instance_statistics' to dev ops report" do
expect(get('/-/instance_statistics')).to redirect_to('/admin/dev_ops_report')
end
end
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