123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import {OrganizationFixture} from 'sentry-fixture/organization';
- import {TeamFixture} from 'sentry-fixture/team';
- import type {Project} from 'sentry/types/project';
- export function ProjectFixture(params: Partial<Project> = {}): Project {
- const team = TeamFixture();
- return {
- id: '2',
- slug: 'project-slug',
- name: 'Project Name',
- access: ['project:read'],
- allowedDomains: ['*'],
- hasAccess: true,
- isMember: true,
- isBookmarked: false,
- team,
- teams: [],
- environments: [],
- features: [],
- eventProcessing: {
- symbolicationDegraded: false,
- },
- dateCreated: new Date().toISOString(),
- digestsMaxDelay: 0,
- digestsMinDelay: 0,
- dynamicSamplingBiases: null,
- firstEvent: null,
- firstTransactionEvent: false,
- groupingConfig: '',
- hasCustomMetrics: false,
- hasFeedbacks: false,
- hasNewFeedbacks: false,
- hasMinifiedStackTrace: false,
- hasProfiles: false,
- hasReplays: false,
- hasSessions: false,
- hasMonitors: false,
- hasInsightsHttp: false,
- hasInsightsDb: false,
- hasInsightsAssets: false,
- hasInsightsAppStart: false,
- hasInsightsScreenLoad: false,
- hasInsightsVitals: false,
- hasInsightsCaches: false,
- hasInsightsQueues: false,
- hasInsightsLlmMonitoring: false,
- isInternal: false,
- organization: OrganizationFixture(),
- plugins: [],
- processingIssues: 0,
- relayPiiConfig: '',
- relayCustomMetricCardinalityLimit: null,
- resolveAge: 0,
- safeFields: [],
- scrapeJavaScript: true,
- scrubIPAddresses: false,
- sensitiveFields: [],
- subjectTemplate: '',
- verifySSL: false,
- ...params,
- };
- }
|