2020-03-05 18:08:19 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-08-01 00:09:45 +00:00
|
|
|
module InternalIdEnums
|
|
|
|
def self.usage_resources
|
|
|
|
# when adding new resource, make sure it doesn't conflict with EE usage_resources
|
|
|
|
{
|
2020-04-27 09:09:51 +00:00
|
|
|
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,
|
2020-05-14 12:08:21 +00:00
|
|
|
sprints: 9 # iterations
|
2020-08-01 00:09:45 +00:00
|
|
|
}
|
2020-03-05 18:08:19 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-01 00:09:45 +00:00
|
|
|
InternalIdEnums.prepend_if_ee('EE::InternalIdEnums')
|