Remove Security Dashboard feature flag

This removes the group_overview_security_dashboard feature flag
This commit is contained in:
rossfuhrman 2019-08-16 17:40:33 +00:00 committed by Stan Hu
parent 2b48eec866
commit 3fbc51d333
3 changed files with 6 additions and 8 deletions

View File

@ -0,0 +1,5 @@
---
title: Remove Security Dashboard feature flag
merge_request: 31820
author:
type: other

View File

@ -100,9 +100,7 @@ module Gitlab
.merge(services_usage)
.merge(approximate_counts)
}.tap do |data|
if Feature.enabled?(:group_overview_security_dashboard)
data[:counts][:user_preferences] = user_preferences_usage
end
data[:counts][:user_preferences] = user_preferences_usage
end
end
# rubocop: enable CodeReuse/ActiveRecord

View File

@ -154,11 +154,6 @@ describe Gitlab::UsageData do
expect(expected_keys - count_data.keys).to be_empty
end
it 'does not gather user preferences usage data when the feature is disabled' do
stub_feature_flags(group_overview_security_dashboard: false)
expect(subject[:counts].keys).not_to include(:user_preferences)
end
it 'gathers projects data correctly' do
count_data = subject[:counts]