project.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import {OrganizationFixture} from 'sentry-fixture/organization';
  2. import {TeamFixture} from 'sentry-fixture/team';
  3. import type {Project} from 'sentry/types';
  4. export function ProjectFixture(params: Partial<Project> = {}): Project {
  5. const team = TeamFixture();
  6. return {
  7. id: '2',
  8. slug: 'project-slug',
  9. name: 'Project Name',
  10. access: ['project:read'],
  11. allowedDomains: ['*'],
  12. hasAccess: true,
  13. isMember: true,
  14. isBookmarked: false,
  15. team,
  16. teams: [],
  17. environments: [],
  18. features: [],
  19. eventProcessing: {
  20. symbolicationDegraded: false,
  21. },
  22. dateCreated: new Date().toISOString(),
  23. digestsMaxDelay: 0,
  24. digestsMinDelay: 0,
  25. dynamicSamplingBiases: null,
  26. firstEvent: null,
  27. firstTransactionEvent: false,
  28. groupingAutoUpdate: false,
  29. groupingConfig: '',
  30. hasCustomMetrics: false,
  31. hasFeedbacks: false,
  32. hasNewFeedbacks: false,
  33. hasMinifiedStackTrace: false,
  34. hasProfiles: false,
  35. hasReplays: false,
  36. hasSessions: false,
  37. hasMonitors: false,
  38. isInternal: false,
  39. organization: OrganizationFixture(),
  40. plugins: [],
  41. processingIssues: 0,
  42. relayPiiConfig: '',
  43. resolveAge: 0,
  44. safeFields: [],
  45. scrapeJavaScript: true,
  46. scrubIPAddresses: false,
  47. sensitiveFields: [],
  48. subjectTemplate: '',
  49. verifySSL: false,
  50. ...params,
  51. };
  52. }