experimentConfig.tsx 807 B

12345678910111213141516171819202122232425262728293031
  1. import {Experiments, ExperimentType} from 'sentry/types/experiments';
  2. /**
  3. * This is the value an experiment will have when the unit of assignment
  4. * (organization, user, etc) is not part of any experiment group.
  5. *
  6. * This likely indicates they should see nothing, or the original version of
  7. * what's being tested.
  8. */
  9. export const unassignedValue = -1;
  10. /**
  11. * Frontend experiment configuration object
  12. */
  13. export const experimentList: {
  14. assignments: number[];
  15. key: string;
  16. parameter: string;
  17. type: ExperimentType;
  18. }[] = [
  19. {
  20. key: 'SavedIssueSearchesLocationExperiment',
  21. type: ExperimentType.Organization,
  22. parameter: 'exposed',
  23. assignments: [0, 1],
  24. },
  25. ];
  26. export const experimentConfig = experimentList.reduce(
  27. (acc, exp) => ({...acc, [exp.key]: exp}),
  28. {}
  29. ) as Experiments;