project.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import {Organization} from 'sentry-fixture/organization';
  2. import {Team} from 'sentry-fixture/team';
  3. import type {Project as TProject} from 'sentry/types';
  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. hasFeedbacks: false,
  30. hasMinifiedStackTrace: false,
  31. hasProfiles: false,
  32. hasReplays: false,
  33. hasSessions: false,
  34. isInternal: false,
  35. organization: Organization(),
  36. plugins: [],
  37. processingIssues: 0,
  38. relayPiiConfig: '',
  39. subjectTemplate: '',
  40. ...params,
  41. };
  42. }