experimentConfig.tsx 916 B

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