project.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. ...params,
  60. };
  61. }