2020-05-14 02:08:18 -04:00
|
|
|
import { s__, __ } from '~/locale';
|
2020-05-13 02:08:02 -04:00
|
|
|
|
2018-04-11 09:12:10 -04:00
|
|
|
export const CANCEL_REQUEST = 'CANCEL_REQUEST';
|
2019-09-18 10:02:45 -04:00
|
|
|
export const LAYOUT_CHANGE_DELAY = 300;
|
2020-05-13 02:08:02 -04:00
|
|
|
export const FILTER_PIPELINES_SEARCH_DELAY = 200;
|
2020-05-06 20:11:11 -04:00
|
|
|
export const ANY_TRIGGER_AUTHOR = 'Any';
|
2020-06-05 17:08:27 -04:00
|
|
|
export const SUPPORTED_FILTER_PARAMETERS = ['username', 'ref', 'status'];
|
2020-06-11 05:08:16 -04:00
|
|
|
export const FILTER_TAG_IDENTIFIER = 'tag';
|
2020-07-06 05:09:20 -04:00
|
|
|
export const SCHEDULE_ORIGIN = 'schedule';
|
2019-11-05 10:06:17 -05:00
|
|
|
|
|
|
|
export const TestStatus = {
|
|
|
|
FAILED: 'failed',
|
|
|
|
SKIPPED: 'skipped',
|
|
|
|
SUCCESS: 'success',
|
2020-09-25 05:09:40 -04:00
|
|
|
ERROR: 'error',
|
|
|
|
UNKNOWN: 'unknown',
|
2019-11-05 10:06:17 -05:00
|
|
|
};
|
2020-05-13 02:08:02 -04: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 05:08:16 -04:00
|
|
|
export const FETCH_TAG_ERROR_MESSAGE = __('There was a problem fetching project tags.');
|
2020-05-14 02:08:18 -04:00
|
|
|
export const RAW_TEXT_WARNING = s__(
|
|
|
|
'Pipeline|Raw text search is not currently supported. Please use the available search tokens.',
|
|
|
|
);
|
2020-09-23 14:10:15 -04:00
|
|
|
|
|
|
|
/* Error constants shared across graphs */
|
|
|
|
export const DEFAULT = 'default';
|
|
|
|
export const DELETE_FAILURE = 'delete_pipeline_failure';
|
2020-10-06 11:08:33 -04:00
|
|
|
export const DRAW_FAILURE = 'draw_failure';
|
2020-12-16 10:10:18 -05:00
|
|
|
export const EMPTY_PIPELINE_DATA = 'empty_data';
|
|
|
|
export const INVALID_CI_CONFIG = 'invalid_ci_config';
|
2020-09-23 14:10:15 -04: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';
|
2021-03-03 13:11:16 -05:00
|
|
|
|
|
|
|
export const CHILD_VIEW = 'child';
|
2021-04-07 08:08:53 -04:00
|
|
|
|
2021-04-13 02:11:22 -04:00
|
|
|
// The key of the template is the same as the filename
|
2021-04-09 14:09:24 -04:00
|
|
|
export const HELLO_WORLD_TEMPLATE_KEY = 'Hello-World';
|