2021-03-22 21:08:59 +00:00
|
|
|
// Values for CI_CONFIG_STATUS_* comes from lint graphQL
|
2020-12-16 15:10:18 +00:00
|
|
|
export const CI_CONFIG_STATUS_INVALID = 'INVALID';
|
2021-03-22 21:08:59 +00:00
|
|
|
export const CI_CONFIG_STATUS_VALID = 'VALID';
|
|
|
|
|
|
|
|
// Values for EDITOR_APP_STATUS_* are frontend specifics and
|
|
|
|
// represent the global state of the pipeline editor app.
|
|
|
|
export const EDITOR_APP_STATUS_EMPTY = 'EMPTY';
|
|
|
|
export const EDITOR_APP_STATUS_INVALID = CI_CONFIG_STATUS_INVALID;
|
2021-12-20 18:13:27 +00:00
|
|
|
export const EDITOR_APP_STATUS_LINT_UNAVAILABLE = 'LINT_DOWN';
|
2021-03-22 21:08:59 +00:00
|
|
|
export const EDITOR_APP_STATUS_LOADING = 'LOADING';
|
|
|
|
export const EDITOR_APP_STATUS_VALID = CI_CONFIG_STATUS_VALID;
|
2021-02-03 21:09:17 +00:00
|
|
|
|
2021-11-09 12:12:15 +00:00
|
|
|
export const EDITOR_APP_VALID_STATUSES = [
|
|
|
|
EDITOR_APP_STATUS_EMPTY,
|
|
|
|
EDITOR_APP_STATUS_INVALID,
|
2021-12-20 18:13:27 +00:00
|
|
|
EDITOR_APP_STATUS_LINT_UNAVAILABLE,
|
2021-11-09 12:12:15 +00:00
|
|
|
EDITOR_APP_STATUS_LOADING,
|
|
|
|
EDITOR_APP_STATUS_VALID,
|
|
|
|
];
|
|
|
|
|
2021-02-03 21:09:17 +00:00
|
|
|
export const COMMIT_FAILURE = 'COMMIT_FAILURE';
|
|
|
|
export const COMMIT_SUCCESS = 'COMMIT_SUCCESS';
|
2022-01-31 21:14:51 +00:00
|
|
|
export const COMMIT_SUCCESS_WITH_REDIRECT = 'COMMIT_SUCCESS_WITH_REDIRECT';
|
2021-02-03 21:09:17 +00:00
|
|
|
|
|
|
|
export const DEFAULT_FAILURE = 'DEFAULT_FAILURE';
|
2021-04-26 09:09:53 +00:00
|
|
|
export const DEFAULT_SUCCESS = 'DEFAULT_SUCCESS';
|
2021-02-03 21:09:17 +00:00
|
|
|
export const LOAD_FAILURE_UNKNOWN = 'LOAD_FAILURE_UNKNOWN';
|
2021-10-25 21:12:12 +00:00
|
|
|
export const PIPELINE_FAILURE = 'PIPELINE_FAILURE';
|
2021-02-12 18:08:59 +00:00
|
|
|
|
|
|
|
export const CREATE_TAB = 'CREATE_TAB';
|
|
|
|
export const LINT_TAB = 'LINT_TAB';
|
|
|
|
export const MERGED_TAB = 'MERGED_TAB';
|
|
|
|
export const VISUALIZE_TAB = 'VISUALIZE_TAB';
|
|
|
|
|
2021-10-20 15:12:43 +00:00
|
|
|
export const TABS_INDEX = {
|
|
|
|
[CREATE_TAB]: '0',
|
|
|
|
[VISUALIZE_TAB]: '1',
|
|
|
|
[LINT_TAB]: '2',
|
|
|
|
[MERGED_TAB]: '3',
|
|
|
|
};
|
|
|
|
export const TAB_QUERY_PARAM = 'tab';
|
2021-03-12 21:09:12 +00:00
|
|
|
|
|
|
|
export const COMMIT_ACTION_CREATE = 'CREATE';
|
|
|
|
export const COMMIT_ACTION_UPDATE = 'UPDATE';
|
2021-05-11 21:10:21 +00:00
|
|
|
|
|
|
|
export const DRAWER_EXPANDED_KEY = 'pipeline_editor_drawer_expanded';
|
2021-05-13 18:10:32 +00:00
|
|
|
|
|
|
|
export const BRANCH_PAGINATION_LIMIT = 20;
|
|
|
|
export const BRANCH_SEARCH_DEBOUNCE = '500';
|
2021-06-10 18:10:05 +00:00
|
|
|
|
|
|
|
export const STARTER_TEMPLATE_NAME = 'Getting-Started';
|
2021-06-23 15:07:50 +00:00
|
|
|
|
|
|
|
export const pipelineEditorTrackingOptions = {
|
|
|
|
label: 'pipeline_editor',
|
|
|
|
actions: {
|
|
|
|
browse_templates: 'browse_templates',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const TEMPLATE_REPOSITORY_URL =
|
|
|
|
'https://gitlab.com/gitlab-org/gitlab-foss/tree/master/lib/gitlab/ci/templates';
|
2021-08-26 03:09:01 +00:00
|
|
|
|
|
|
|
export const COMMIT_SHA_POLL_INTERVAL = 1000;
|