project.tsx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. 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. hasFeedbacks: false,
  31. hasMinifiedStackTrace: false,
  32. hasProfiles: false,
  33. hasReplays: false,
  34. hasSessions: false,
  35. isInternal: false,
  36. organization: Organization(),
  37. plugins: [],
  38. processingIssues: 0,
  39. relayPiiConfig: '',
  40. resolveAge: 0,
  41. safeFields: [],
  42. scrapeJavaScript: true,
  43. scrubIPAddresses: false,
  44. sensitiveFields: [],
  45. subjectTemplate: '',
  46. verifySSL: false,
  47. ...params,
  48. };
  49. }