autofixRootCauseData.ts 557 B

12345678910111213141516
  1. import { AutofixRootCauseCodeContext } from 'sentry-fixture/autofixRootCauseCodeContext';
  2. import type { AutofixRootCauseData } from 'sentry/components/events/autofix/types';
  3. export function AutofixRootCauseData(
  4. params: Partial<AutofixRootCauseData> = {}
  5. ): AutofixRootCauseData {
  6. return {
  7. id: '100',
  8. title: 'This is the title of a root cause.',
  9. description: 'This is the description of a root cause.',
  10. reproduction: 'This is the reproduction of a root cause.',
  11. code_context: [AutofixRootCauseCodeContext()],
  12. ...params,
  13. };
  14. }