debian-mirror-gitlab/app/models/internal_id_enums.rb
2020-05-24 23:13:21 +05:30

21 lines
518 B
Ruby

# frozen_string_literal: true
module InternalIdEnums
def self.usage_resources
# when adding new resource, make sure it doesn't conflict with EE usage_resources
{
issues: 0,
merge_requests: 1,
deployments: 2,
milestones: 3,
epics: 4,
ci_pipelines: 5,
operations_feature_flags: 6,
operations_user_lists: 7,
alert_management_alerts: 8,
sprints: 9 # iterations
}
end
end
InternalIdEnums.prepend_if_ee('EE::InternalIdEnums')