Welcome to mirror list, hosted at ThFree Co, Russian Federation.

internal_id.rb « enums « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b08c05b1934762f6d4c8b69f22dc6776c327697c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Enums
  module InternalId
    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
        design_management_designs: 10,
        incident_management_oncall_schedules: 11
      }
    end
  end
end

Enums::InternalId.prepend_if_ee('EE::Enums::InternalId')