123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import {Experiments, ExperimentType} from 'sentry/types/experiments';
- /**
- * This is the value an experiment will have when the unit of assignment
- * (organization, user, etc) is not part of any experiment group.
- *
- * This likely indicates they should see nothing, or the original version of
- * what's being tested.
- */
- export const unassignedValue = -1;
- /**
- * Frontend experiment configuration object
- */
- export const experimentList = [
- {
- key: 'DefaultIssueAlertActionExperiment',
- type: ExperimentType.Organization,
- parameter: 'exposed',
- assignments: [0, 1],
- },
- {
- key: 'MetricAlertBannerExperiment',
- type: ExperimentType.Organization,
- parameter: 'exposed',
- assignments: [0, 1],
- },
- {
- key: 'MetricAlertPresetExperiment',
- type: ExperimentType.Organization,
- parameter: 'exposed',
- assignments: [0, 1],
- },
- {
- key: 'VitalsAlertExperiment',
- type: ExperimentType.Organization,
- parameter: 'exposed',
- assignments: [0, 1],
- },
- {
- key: 'MetricAlertOnProjectCreationExperiment',
- type: ExperimentType.Organization,
- parameter: 'exposed',
- assignments: [0, 1],
- },
- ] as const;
- export const experimentConfig = experimentList.reduce(
- (acc, exp) => ({...acc, [exp.key]: exp}),
- {}
- ) as Experiments;
|