fix(site-finder): true-counts вместо молча-усечённых len(list) в connection-points/utility (#2445-A1/A2) #2450
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2450
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/silent-cap-true-counts"
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?
Summary
Аудит-находки A1+A2 (epic #2445). Два «silent truncation as total» бага:
quarter_dump_lookup.py—total_structures_in_radius=len()отLIMIT 50,protection_zones_intersecting=len()отLIMIT 100(+ БЕЗ ORDER BY → недетерминированные 100).utility_infrastructure_loader.py—total_features=len()отLIMIT 200.Показывали усечение как полный итог — нарушение «no silent caps».
Fix
Паттерн
permits_nearby.py: отдельныйCOUNT(*)по полной выборке (WHERE вынесен в общую константу → count и fetch не могут разъехаться),LIMITостаётся на display-списке,*_truncatedбулевы флаги. Плюс детерминированный ORDER BY перед zouitLIMIT 100.Schema: 3 новых булевых поля (аддитивно, default False).
api-types.tsрегенерирован (только 3 поля, без churn — codegen-check пройдёт).Test plan
CASTсоблюдёнFollow-up (не в этом PR)
frontend/src/types/nspd.ts:132(hand-maintained mirror) + cockpit-UI должны показать truncated-флаги — когда будет UI-эпик отображения.Refs #2445