project.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import {OrganizationFixture} from 'sentry-fixture/organization';
  2. import {TeamFixture} from 'sentry-fixture/team';
  3. import type {Project} from 'sentry/types/project';
  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. groupingConfig: '',
  29. hasCustomMetrics: false,
  30. hasFeedbacks: false,
  31. hasNewFeedbacks: false,
  32. hasMinifiedStackTrace: false,
  33. hasProfiles: false,
  34. hasReplays: false,
  35. hasSessions: false,
  36. hasMonitors: false,
  37. hasInsightsHttp: false,
  38. hasInsightsDb: false,
  39. hasInsightsAssets: false,
  40. hasInsightsAppStart: false,
  41. hasInsightsScreenLoad: false,
  42. hasInsightsVitals: false,
  43. hasInsightsCaches: false,
  44. hasInsightsQueues: false,
  45. hasInsightsLlmMonitoring: false,
  46. isInternal: false,
  47. organization: OrganizationFixture(),
  48. plugins: [],
  49. processingIssues: 0,
  50. relayPiiConfig: '',
  51. relayCustomMetricCardinalityLimit: null,
  52. resolveAge: 0,
  53. safeFields: [],
  54. scrapeJavaScript: true,
  55. scrubIPAddresses: false,
  56. sensitiveFields: [],
  57. subjectTemplate: '',
  58. verifySSL: false,
  59. extrapolateMetrics: false,
  60. ...params,
  61. };
  62. }