Commit 1ee602c4 authored by Dan Jensen's avatar Dan Jensen Committed by Luke Duncalfe

Update Group-level Analytics redirect

Previously the top-level link in the left-nav menu for Group-level
Analytics redirected to the Contribution Analytics feature. Now
Value Stream Analytics is considered the default feature, so this
updates the redirect accordingly.
parent 8744311a
---
title: Change the Group Analytics navigation link to go to the Value Stream Analytics page
merge_request: 51165
author:
type: changed
...@@ -11,7 +11,7 @@ constraints(::Constraints::GroupUrlConstrainer.new) do ...@@ -11,7 +11,7 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
patch :override, on: :member patch :override, on: :member
end end
get '/analytics', to: redirect('groups/%{group_id}/-/contribution_analytics') get '/analytics', to: redirect('groups/%{group_id}/-/analytics/value_stream_analytics')
resource :contribution_analytics, only: [:show] resource :contribution_analytics, only: [:show]
namespace :analytics do namespace :analytics do
......
...@@ -11,9 +11,9 @@ RSpec.describe 'contribution analytics' do ...@@ -11,9 +11,9 @@ RSpec.describe 'contribution analytics' do
login_as(user) login_as(user)
end end
it 'redirects from -/analytics to -/contribution_analytics' do it 'redirects from -/analytics to -/analytics/value_stream_analytics' do
get "/groups/#{group.full_path}/-/analytics" get "/groups/#{group.full_path}/-/analytics"
expect(response).to redirect_to(group_contribution_analytics_path(group.full_path)) expect(response).to redirect_to(group_analytics_cycle_analytics_path(group.full_path))
end end
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