stable

Clone or download

Read-only

feat: Ability to stop ongoing queries

Given a search term that produce a lot of REST API calls to retrieve 15 results, When I erase the search text field (to enter another search term for example) while requests are being stacked, Then missing requests are not stacked and results of pending request are ignored. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: Ifd7fa7ffb20c8926ad7071bd3146ad957d45c7fe

Modified Files

Name
M src/scripts/switch-to/src/helpers/delayed-querier.test.ts +12 −9 Go to diff View file
M src/scripts/switch-to/src/helpers/delayed-querier.ts +18 −6 Go to diff View file
M src/scripts/switch-to/src/helpers/search-querier.test.ts +134 −10 Go to diff View file
M src/scripts/switch-to/src/helpers/search-querier.ts +103 −81 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.test.ts +70 −66 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.ts +27 −18 Go to diff View file