2020-05-24 23:13:21 +05:30
|
|
|
import { s__, __ } from '~/locale';
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
export const CANCEL_REQUEST = 'CANCEL_REQUEST';
|
|
|
|
export const PIPELINES_TABLE = 'PIPELINES_TABLE';
|
2019-12-04 20:38:33 +05:30
|
|
|
export const LAYOUT_CHANGE_DELAY = 300;
|
2020-05-24 23:13:21 +05:30
|
|
|
export const FILTER_PIPELINES_SEARCH_DELAY = 200;
|
|
|
|
export const ANY_TRIGGER_AUTHOR = 'Any';
|
2020-06-23 00:09:42 +05:30
|
|
|
export const SUPPORTED_FILTER_PARAMETERS = ['username', 'ref', 'status'];
|
|
|
|
export const FILTER_TAG_IDENTIFIER = 'tag';
|
2020-07-28 23:09:34 +05:30
|
|
|
export const SCHEDULE_ORIGIN = 'schedule';
|
2019-12-26 22:10:19 +05:30
|
|
|
|
|
|
|
export const TestStatus = {
|
|
|
|
FAILED: 'failed',
|
|
|
|
SKIPPED: 'skipped',
|
|
|
|
SUCCESS: 'success',
|
2021-01-03 14:25:43 +05:30
|
|
|
ERROR: 'error',
|
|
|
|
UNKNOWN: 'unknown',
|
2019-12-26 22:10:19 +05:30
|
|
|
};
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
export const FETCH_AUTHOR_ERROR_MESSAGE = __('There was a problem fetching project users.');
|
|
|
|
export const FETCH_BRANCH_ERROR_MESSAGE = __('There was a problem fetching project branches.');
|
2020-06-23 00:09:42 +05:30
|
|
|
export const FETCH_TAG_ERROR_MESSAGE = __('There was a problem fetching project tags.');
|
2020-05-24 23:13:21 +05:30
|
|
|
export const RAW_TEXT_WARNING = s__(
|
|
|
|
'Pipeline|Raw text search is not currently supported. Please use the available search tokens.',
|
|
|
|
);
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
/* Error constants shared across graphs */
|
|
|
|
export const DEFAULT = 'default';
|
|
|
|
export const DELETE_FAILURE = 'delete_pipeline_failure';
|
|
|
|
export const DRAW_FAILURE = 'draw_failure';
|
|
|
|
export const LOAD_FAILURE = 'load_failure';
|
|
|
|
export const PARSE_FAILURE = 'parse_failure';
|
|
|
|
export const POST_FAILURE = 'post_failure';
|
|
|
|
export const UNSUPPORTED_DATA = 'unsupported_data';
|