fix(parcels): rename CTE overlaps → overlap_rows (#1196 hotfix) #1197
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#1197
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/neighbors-cte-overlaps-keyword"
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
Hotfix регрессии от PR #1195: CTE
overlaps AS (...)падает на PG (OVERLAPS— keyword для time-period operator). С момента мерджа PR #1195 каждыйPOST /analyzeвозвращалneighbors_summary.data_available: False, neighbors: [](фронт получал пустой блок соседей), плюс ронял всю остальную часть analyze в aborted-transaction (irdблок, persist analysis_run).Воспроизведение
Прямой psql на проде:
И через TestClient
POST /analyzeна 66:41:0304011:1124 — captured WARNING:Что в PR
backend/app/api/v1/parcels.py:623,648,650,658— CTE aliasoverlaps→overlap_rows, SELECT column alias тоже + Pythonrow["overlap_rows"].Почему регрессия прошла CI
tests/api/v1/патчат БД черезMagicMock, SQL не выполняется на реальной PG. Mock не ловит keyword-конфликт. Future-proofing: добавить минимальный integration-тест с настоящей PG для analyze hot-path — отдельный issue, не блокер этого hotfix.Test plan
psqlпрямой smoke — переименованный CTE работает, отдаёт 6 соседей и 1 overlap для66:41:0304011:1124.pytest tests/api/v1/ -k analyze→ 26 passed (тесты на mock БД продолжают зеленеть — не были задеты).ruff check→ All checks passed.neighbors_summary.data_available=True+ len > 0 +ird.ird_overlapsнепустой.Refs #1196
Regression of: #1195