Commit 8addc502 authored by Brandon Labuschagne's avatar Brandon Labuschagne Committed by Robert Speicher

Put Group MR analytics nav behind FF

The feature's navigation needs to be behind a FF as
the feature is still in development.
parent 8449665f
...@@ -52,6 +52,7 @@ module EE ...@@ -52,6 +52,7 @@ module EE
end end
def group_merge_request_analytics_navbar_link(group, current_user) 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) return unless group_sidebar_link?(:merge_request_analytics)
navbar_sub_item( navbar_sub_item(
......
...@@ -53,6 +53,16 @@ RSpec.describe 'Group navbar' do ...@@ -53,6 +53,16 @@ RSpec.describe 'Group navbar' do
it_behaves_like 'verified navigation bar' it_behaves_like 'verified navigation bar'
end 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 context 'when value stream analytics is available' do
before do before do
stub_licensed_features(cycle_analytics_for_groups: true) 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