fix(bug-22a): map missing kn-API fields (flat_number/living_area/wall_type/energy_eff) + backfill #302
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#302
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/bug-22a-kn-missing-fields"
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
Issue #297 sub-task 22a (1.5d, quick-win pre-task до основного catalog scraper'а).
Audit
domrf_raw_endpointspayload для obj=65136 + сравнение с_norm_object()/_norm_flat()маппингом вdomrf_kn.py. Найдены 4 поля, которые приходят в payload, но не маппятся в БД (flat_number,living_area,wall_type,energy_eff).obj_classуже извлекается через AI desc regex (PR #293 SF#15).Changes
backend/app/services/scrapers/domrf_kn.py(+13 lines):_norm_object()и_norm_flat()(ON CONFLICT gaps fixed)data/sql/108_bug22a_kn_missing_fields_audit.sql(+85 lines):fixes/Fix_BUG22a_KnApi_Missing_Fields_May17.mdTest plan
flat_numbercoverage > 0% (раньше всегда NULL)living_areacoverage увеличиваетсяwall_type,energy_eff— coverage от payload availabilityRelated: issue #297 sub-task 22a · pre-task до catalog scraper (BUG #22 main)
Merged via deep-code-reviewer — verdict APPROVE.
Проверено:
domrf_kn_objects.wall_type/energy_eff,domrf_kn_flats.flat_number/living_area) — миграция 108 это no-opADD COLUMN IF NOT EXISTS+ coverage NOTICE, DDL changes нет._norm_object()line 190-191,_norm_flat()line 233/236 — корректные API keys (wallType,energyEff,number/flatNumber,livingArea).UPSERT_FLAT_SQLне апдейтилflat_number/living_area/is_studio/total_area/rooms/floor/num_floorsдля existing rows — теперь COALESCE-обновляет. Bonus fix:obj_classтоже теперь COALESCE (раньше overwrite).fixes/Fix_BUG22a_KnApi_Missing_Fields_May17.mdприсутствует, payload audit зафиксирован.wallType/energyEffот API 0/1516 → данных нет, не fix scope.Reminder после deploy:
region_cd=66(flat_number/living_areaначнут расти после следующего scrape;wall_type/energy_effостанутся 0% — API их не отдаёт).