2020-07-31 20:09:45 -04: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.
|
|
|
|
#
|
|
|
|
# If you are going to add new items to this hash, check that you're not going
|
|
|
|
# to conflict with EE-only values: https://gitlab.com/gitlab-org/gitlab/blob/master/ee/app/models/ee/user_callout_enums.rb
|
|
|
|
def self.feature_names
|
|
|
|
{
|
|
|
|
gke_cluster_integration: 1,
|
|
|
|
gcp_signup_offer: 2,
|
|
|
|
cluster_security_warning: 3,
|
|
|
|
suggest_popover_dismissed: 9,
|
|
|
|
tabs_position_highlight: 10,
|
|
|
|
webhooks_moved: 13,
|
|
|
|
admin_integrations_moved: 15,
|
2020-08-04 05:09:45 -04:00
|
|
|
personal_access_token_expiry: 21, # EE-only
|
|
|
|
suggest_pipeline: 22
|
2020-07-31 20:09:45 -04:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
UserCalloutEnums.prepend_if_ee('EE::UserCalloutEnums')
|