shortIdQueryResult.tsx 416 B

1234567891011121314151617181920
  1. import {ShortIdResponse} from 'sentry/types';
  2. import {Group} from './group';
  3. export function ShortIdQueryResult(params = {}): ShortIdResponse {
  4. const group = Group({
  5. metadata: {
  6. type: 'group type',
  7. value: 'group description',
  8. },
  9. });
  10. return {
  11. organizationSlug: 'org-slug',
  12. projectSlug: 'project-slug',
  13. groupId: group.id,
  14. shortId: 'test-1',
  15. group,
  16. ...params,
  17. };
  18. }