mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
fix(osm): keep a capped place list incomplete in analyst follow-ups
osm_query said "At least N" when the server capped its list, but handed the places to the analyst engine with truncated:false, so "which of those have emergency?" answered as if the list were whole. The handoff now carries the cap and its caveat, and follow-ups (and their follow-ups) stay incomplete with an unknown total.
This commit is contained in:
1 parent
4efba8ccca
commit
540629a0fc
6 files changed
+99
-20
No files matched your search
@@ -1226,11 +1226,12 @@ export function createGevActionRunner({
|
||||
onCredit: () => registerDynamicCredit(viewer, OSM_PLACES_CREDIT),
|
||||
// The listed places become the analyst's "last answer", so
|
||||
// "which of those…" filters them and never an older set.
|
||||
rememberResults: (rows, presentation) => {
|
||||
rememberResults: (rows, presentation, { truncated = false } = {}) => {
|
||||
if (!current()) return;
|
||||
if (rows)
|
||||
ensureAnalystEngine().remember('osm-places', rows, {
|
||||
presentation,
|
||||
truncated,
|
||||
});
|
||||
else analystEngine?.reset();
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user