searches.ts 523 B

1234567891011121314151617181920212223
  1. import {SearchFixture} from 'sentry-fixture/search';
  2. import type {SavedSearch} from 'sentry/types/group';
  3. export function SearchesFixture(params: SavedSearch[] = []): SavedSearch[] {
  4. return [
  5. SearchFixture({
  6. name: 'Needs Triage',
  7. query: 'is:unresolved is:unassigned',
  8. sort: 'date',
  9. id: '2',
  10. isGlobal: true,
  11. }),
  12. SearchFixture({
  13. name: 'Unresolved Issues',
  14. query: 'is:unresolved',
  15. sort: 'date',
  16. id: '1',
  17. isGlobal: true,
  18. }),
  19. ...params,
  20. ];
  21. }