2018-11-13 11:29:14 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module UserCalloutEnums
|
|
|
|
# Returns the `Hash` to use for the `feature_name` enum in the `UserCallout`
|
|
|
|
# model.
|
|
|
|
#
|
|
|
|
# This method is separate from the `UserCallout` model so that it can be
|
|
|
|
# extended by EE.
|
2019-06-14 13:29:25 -04:00
|
|
|
#
|
|
|
|
# If you are going to add new items to this hash, check that you're not going
|
2019-09-18 10:02:45 -04:00
|
|
|
# to conflict with EE-only values: https://gitlab.com/gitlab-org/gitlab/blob/master/ee/app/models/ee/user_callout_enums.rb
|
2018-11-13 11:29:14 -05:00
|
|
|
def self.feature_names
|
|
|
|
{
|
|
|
|
gke_cluster_integration: 1,
|
|
|
|
gcp_signup_offer: 2,
|
2019-06-14 09:01:24 -04:00
|
|
|
cluster_security_warning: 3,
|
2019-12-02 22:06:35 -05:00
|
|
|
suggest_popover_dismissed: 9,
|
2020-02-24 13:09:05 -05:00
|
|
|
tabs_position_highlight: 10,
|
2020-03-24 11:08:44 -04:00
|
|
|
webhooks_moved: 13,
|
|
|
|
admin_integrations_moved: 15
|
2018-11-13 11:29:14 -05:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
UserCalloutEnums.prepend_if_ee('EE::UserCalloutEnums')
|