project.tsx 1.3 KB

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