project.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. 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. hasInsightsHttp: false,
  39. hasInsightsDb: false,
  40. hasInsightsAssets: false,
  41. hasInsightsAppStart: false,
  42. hasInsightsScreenLoad: false,
  43. hasInsightsVitals: false,
  44. hasInsightsCaches: false,
  45. hasInsightsQueues: false,
  46. hasInsightsLlmMonitoring: false,
  47. isInternal: false,
  48. organization: OrganizationFixture(),
  49. plugins: [],
  50. processingIssues: 0,
  51. relayPiiConfig: '',
  52. relayCustomMetricCardinalityLimit: null,
  53. resolveAge: 0,
  54. safeFields: [],
  55. scrapeJavaScript: true,
  56. scrubIPAddresses: false,
  57. sensitiveFields: [],
  58. subjectTemplate: '',
  59. verifySSL: false,
  60. extrapolateMetrics: false,
  61. ...params,
  62. };
  63. }