search.ts 432 B

12345678910111213141516
  1. import {SavedSearch, SavedSearchVisibility} from 'sentry/types/group';
  2. export function SearchFixture(params: Partial<SavedSearch> = {}): SavedSearch {
  3. return {
  4. dateCreated: '2017-11-14T02:22:58.026Z',
  5. isGlobal: false,
  6. isPinned: false,
  7. type: 0,
  8. sort: '',
  9. name: 'Needs Triage',
  10. query: 'is:unresolved is:unassigned',
  11. id: '2',
  12. visibility: SavedSearchVisibility.ORGANIZATION,
  13. ...params,
  14. };
  15. }