debian-mirror-gitlab/app/models/concerns/enums/internal_id.rb

26 lines
636 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
2020-11-24 15:15:51 +05:30
module Enums
module InternalId
def self.usage_resources
# when adding new resource, make sure it doesn't conflict with EE usage_resources
{
2020-05-24 23:13:21 +05:30
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,
2021-01-29 00:20:46 +05:30
sprints: 9, # iterations
2021-02-22 17:27:13 +05:30
design_management_designs: 10,
incident_management_oncall_schedules: 11
2020-11-24 15:15:51 +05:30
}
end
2020-04-08 14:13:33 +05:30
end
end
2021-06-08 01:23:25 +05:30
Enums::InternalId.prepend_mod_with('Enums::InternalId')