2020-05-14 06:08:18 +00:00
|
|
|
import { s__, __ } from '~/locale';
|
2020-05-13 06:08:02 +00:00
|
|
|
|
2018-04-11 13:12:10 +00:00
|
|
|
export const CANCEL_REQUEST = 'CANCEL_REQUEST';
|
2018-05-17 09:25:11 +00:00
|
|
|
export const PIPELINES_TABLE = 'PIPELINES_TABLE';
|
2019-09-18 14:02:45 +00:00
|
|
|
export const LAYOUT_CHANGE_DELAY = 300;
|
2020-05-13 06:08:02 +00:00
|
|
|
export const FILTER_PIPELINES_SEARCH_DELAY = 200;
|
2020-05-07 00:11:11 +00:00
|
|
|
export const ANY_TRIGGER_AUTHOR = 'Any';
|
2020-06-05 21:08:27 +00:00
|
|
|
export const SUPPORTED_FILTER_PARAMETERS = ['username', 'ref', 'status'];
|
2020-06-11 09:08:16 +00:00
|
|
|
export const FILTER_TAG_IDENTIFIER = 'tag';
|
2020-07-06 09:09:20 +00:00
|
|
|
export const SCHEDULE_ORIGIN = 'schedule';
|
2019-11-05 15:06:17 +00:00
|
|
|
|
|
|
|
export const TestStatus = {
|
|
|
|
FAILED: 'failed',
|
|
|
|
SKIPPED: 'skipped',
|
|
|
|
SUCCESS: 'success',
|
2020-09-25 09:09:40 +00:00
|
|
|
ERROR: 'error',
|
|
|
|
UNKNOWN: 'unknown',
|
2019-11-05 15:06:17 +00:00
|
|
|
};
|
2020-05-13 06:08:02 +00:00
|
|
|
|
|
|
|
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-11 09:08:16 +00:00
|
|
|
export const FETCH_TAG_ERROR_MESSAGE = __('There was a problem fetching project tags.');
|
2020-05-14 06:08:18 +00:00
|
|
|
export const RAW_TEXT_WARNING = s__(
|
|
|
|
'Pipeline|Raw text search is not currently supported. Please use the available search tokens.',
|
|
|
|
);
|
2020-09-23 18:10:15 +00:00
|
|
|
|
|
|
|
/* Error constants shared across graphs */
|
|
|
|
export const DEFAULT = 'default';
|
|
|
|
export const DELETE_FAILURE = 'delete_pipeline_failure';
|
2020-10-06 15:08:33 +00:00
|
|
|
export const DRAW_FAILURE = 'draw_failure';
|
2020-09-23 18:10:15 +00:00
|
|
|
export const LOAD_FAILURE = 'load_failure';
|
|
|
|
export const PARSE_FAILURE = 'parse_failure';
|
|
|
|
export const POST_FAILURE = 'post_failure';
|
|
|
|
export const UNSUPPORTED_DATA = 'unsupported_data';
|