fix(api+web): text-based name search in instance-suggestions + 300ms debounce #639
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/text-suggestions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Two fixes for assign-person dialog text search:
1. Backend: name-based fallback in
suggestSimilarInstances()Previously: embedding-first → returns empty if no embeddings exist → name filter never runs.
Now: when embedding results are empty AND query is non-blank, fallback to ILIKE name search. Embedding matches (with real similarity) come first, name-only matches (similarity=0) after.
2. Backend:
class-instancespeople branch now passesqparamPreviously:
classInstanceService.people(userId)hardcodedquery=null.Now: new
people(UUID, String)overload forwards query toinstances(userId, "people", "active", query).3. Frontend: 300ms debounce on face/label suggestion input
Previously: every keystroke fired an API call.
Now: 300ms debounce in both
MediaDetailViewer.svelte(legacy$:) andEditMarkerLabelDialog.svelte(Svelte 5 runes).Test
Version
1.21.3 → 1.21.4
Follow-up (not blocking)
AND ci.class_key = :classKeyto fallback query for cross-domain consistencypeople(UUID, String)delegation test