Commit d7bbc0a7 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'put-group-mr-analytics-nav-behind-ff' into 'master'

Put Group MR analytics nav behind FF

See merge request gitlab-org/gitlab!38573
parents 985a972c 8addc502
......@@ -52,6 +52,7 @@ module EE
end
def group_merge_request_analytics_navbar_link(group, current_user)
return unless ::Gitlab::Analytics.group_merge_request_analytics_enabled?
return unless group_sidebar_link?(:merge_request_analytics)
navbar_sub_item(
......
......@@ -53,6 +53,16 @@ RSpec.describe 'Group navbar' do
it_behaves_like 'verified navigation bar'
end
context 'when merge request analytics is unavailable' do
before do
stub_feature_flags(group_merge_request_analytics: false)
visit group_path(group)
end
it_behaves_like 'verified navigation bar'
end
context 'when value stream analytics is available' do
before do
stub_licensed_features(cycle_analytics_for_groups: true)
......
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