project.tsx 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import type {Project as TProject} from 'sentry/types';
  2. import {Organization} from './organization';
  3. import {Team} from './team';
  4. export function Project(params: Partial<TProject> = {}): TProject {
  5. const team = Team();
  6. return {
  7. id: '2',
  8. slug: 'project-slug',
  9. name: 'Project Name',
  10. access: ['project:read'],
  11. hasAccess: true,
  12. isMember: true,
  13. isBookmarked: false,
  14. team,
  15. teams: [],
  16. environments: [],
  17. features: [],
  18. eventProcessing: {
  19. symbolicationDegraded: false,
  20. },
  21. dateCreated: new Date().toISOString(),
  22. digestsMaxDelay: 0,
  23. digestsMinDelay: 0,
  24. dynamicSamplingBiases: null,
  25. firstEvent: null,
  26. firstTransactionEvent: false,
  27. groupingAutoUpdate: false,
  28. groupingConfig: '',
  29. hasMinifiedStackTrace: false,
  30. hasProfiles: false,
  31. hasReplays: false,
  32. hasSessions: false,
  33. isInternal: false,
  34. organization: Organization(),
  35. plugins: [],
  36. processingIssues: 0,
  37. relayPiiConfig: '',
  38. subjectTemplate: '',
  39. ...params,
  40. };
  41. }