Commit c2b21d3c authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch '293689-update-group-analytics-redirect' into 'master'

Update Group-level Analytics redirect

See merge request gitlab-org/gitlab!51165
parents 8744311a 1ee602c4
---
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
patch :override, on: :member
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]
namespace :analytics do
......
......@@ -11,9 +11,9 @@ RSpec.describe 'contribution analytics' do
login_as(user)
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"
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
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