summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ml/experiment_tracking/routes/experiments/show/constants.js
blob: 4d34555ac2fd0d8c04fc8b1e0be00bfc44376747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { s__ } from '~/locale';
import { helpPagePath } from '~/helpers/help_page_helper';

export const METRIC_KEY_PREFIX = 'metric.';
export const LIST_KEY_CREATED_AT = 'created_at';
export const BASE_SORT_FIELDS = Object.freeze([
  {
    orderBy: 'name',
    label: s__('MlExperimentTracking|Name'),
  },
  {
    orderBy: LIST_KEY_CREATED_AT,
    label: s__('MlExperimentTracking|Created at'),
  },
]);
export const CREATE_CANDIDATE_HELP_PATH = helpPagePath(
  'user/project/ml/experiment_tracking/index.md',
  {
    anchor: 'tracking-new-experiments-and-trials',
  },
);