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';
|
2021-08-17 14:10:35 -04:00
|
|
|
export const SUPPORTED_FILTER_PARAMETERS = ['username', 'ref', 'status', 'source'];
|
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';
|
2021-12-21 04:14:14 -05:00
|
|
|
export const NEEDS_PROPERTY = 'needs';
|
|
|
|
export const EXPLICIT_NEEDS_PROPERTY = 'previousStageJobsOrNeeds';
|
2022-04-21 17:08:43 -04:00
|
|
|
export const PIPELINE_GRAPHQL_TYPE = 'Ci::Pipeline';
|
2019-11-05 10:06:17 -05:00
|
|
|
|
2022-02-04 04:14:46 -05:00
|
|
|
export const ICONS = {
|
|
|
|
TAG: 'tag',
|
|
|
|
MR: 'git-merge',
|
|
|
|
BRANCH: 'branch',
|
|
|
|
};
|
|
|
|
|
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-08-10 02:08:47 -04:00
|
|
|
|
2022-04-27 14:10:15 -04:00
|
|
|
// Pipeline tabs
|
|
|
|
|
2022-11-04 08:10:55 -04:00
|
|
|
export const pipelineTabName = 'graph';
|
2022-04-27 14:10:15 -04:00
|
|
|
export const needsTabName = 'dag';
|
|
|
|
export const jobsTabName = 'builds';
|
|
|
|
export const failedJobsTabName = 'failures';
|
|
|
|
export const testReportTabName = 'test_report';
|
|
|
|
export const securityTabName = 'security';
|
|
|
|
export const licensesTabName = 'licenses';
|
|
|
|
export const codeQualityTabName = 'codequality_report';
|
|
|
|
|
|
|
|
export const validPipelineTabNames = [
|
|
|
|
needsTabName,
|
|
|
|
jobsTabName,
|
|
|
|
failedJobsTabName,
|
|
|
|
testReportTabName,
|
|
|
|
securityTabName,
|
|
|
|
licensesTabName,
|
|
|
|
codeQualityTabName,
|
|
|
|
];
|
|
|
|
|
2021-08-10 02:08:47 -04:00
|
|
|
// Constants for the ID and IID selection dropdown
|
|
|
|
export const PipelineKeyOptions = [
|
|
|
|
{
|
|
|
|
text: __('Show Pipeline ID'),
|
|
|
|
label: __('Pipeline ID'),
|
|
|
|
key: 'id',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: __('Show Pipeline IID'),
|
|
|
|
label: __('Pipeline IID'),
|
|
|
|
key: 'iid',
|
|
|
|
},
|
|
|
|
];
|
2021-11-03 14:13:40 -04:00
|
|
|
|
|
|
|
export const TOAST_MESSAGE = s__('Pipeline|Creating pipeline.');
|
2022-02-08 01:17:16 -05:00
|
|
|
|
2022-08-05 17:09:12 -04:00
|
|
|
export const BUTTON_TOOLTIP_RETRY = __('Retry all failed or cancelled jobs');
|
2022-02-08 01:17:16 -05:00
|
|
|
export const BUTTON_TOOLTIP_CANCEL = __('Cancel');
|
2022-05-06 08:09:05 -04:00
|
|
|
|
|
|
|
export const DEFAULT_FIELDS = [
|
|
|
|
{
|
|
|
|
key: 'name',
|
|
|
|
label: __('Name'),
|
|
|
|
columnClass: 'gl-w-20p',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'stage',
|
|
|
|
label: __('Stage'),
|
|
|
|
columnClass: 'gl-w-20p',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'failure',
|
|
|
|
label: __('Failure'),
|
|
|
|
columnClass: 'gl-w-40p',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'actions',
|
|
|
|
label: '',
|
|
|
|
tdClass: 'gl-text-right',
|
|
|
|
columnClass: 'gl-w-20p',
|
|
|
|
},
|
|
|
|
];
|
2022-09-09 11:13:16 -04:00
|
|
|
|
|
|
|
export const TRACKING_CATEGORIES = {
|
2022-09-12 11:14:03 -04:00
|
|
|
table: 'pipelines_table_component',
|
|
|
|
tabs: 'pipelines_filter_tabs',
|
|
|
|
search: 'pipelines_filtered_search',
|
2022-09-09 11:13:16 -04:00
|
|
|
};
|