diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /app/assets/javascripts/graphql_shared | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/assets/javascripts/graphql_shared')
-rw-r--r-- | app/assets/javascripts/graphql_shared/constants.js | 13 | ||||
-rw-r--r-- | app/assets/javascripts/graphql_shared/utils.js | 5 |
2 files changed, 11 insertions, 7 deletions
diff --git a/app/assets/javascripts/graphql_shared/constants.js b/app/assets/javascripts/graphql_shared/constants.js index 7e897be9e9a..aad7712a9f0 100644 --- a/app/assets/javascripts/graphql_shared/constants.js +++ b/app/assets/javascripts/graphql_shared/constants.js @@ -1,2 +1,11 @@ -/* eslint-disable @gitlab/require-i18n-strings */ -export const IssueType = 'Issue'; +export const TYPE_CI_RUNNER = 'Ci::Runner'; +export const TYPE_GROUP = 'Group'; +export const TYPE_ISSUE = 'Issue'; +export const TYPE_ITERATION = 'Iteration'; +export const TYPE_ITERATIONS_CADENCE = 'Iterations::Cadence'; +export const TYPE_MERGE_REQUEST = 'MergeRequest'; +export const TYPE_MILESTONE = 'Milestone'; +export const TYPE_SCANNER_PROFILE = 'DastScannerProfile'; +export const TYPE_SITE_PROFILE = 'DastSiteProfile'; +export const TYPE_USER = 'User'; +export const TYPE_VULNERABILITY = 'Vulnerability'; diff --git a/app/assets/javascripts/graphql_shared/utils.js b/app/assets/javascripts/graphql_shared/utils.js index e64e8009a5f..18f9a50bbce 100644 --- a/app/assets/javascripts/graphql_shared/utils.js +++ b/app/assets/javascripts/graphql_shared/utils.js @@ -18,11 +18,6 @@ export const MutationOperationMode = { }; /** - * Possible GraphQL entity types. - */ -export const TYPE_GROUP = 'Group'; - -/** * Ids generated by GraphQL endpoints are usually in the format * gid://gitlab/Groups/123. This method takes a type and an id * and interpolates the 2 values into the expected GraphQL ID format. |