fix(tradein): backfill kn obj_class (parser + 3-pass) (#572) #628
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#628
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/572-kn-obj-class-backfill"
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
Test plan
Closes #572
kn-API /kn/object endpoint never populates objClass (0/1516 objects confirmed in bug-22a audit). Parser _extract_obj_class_from_ai() worked but lacked the "типов" pattern, missing "типового класса"/"типовой серии" in 131+ objects. The 2026-05-24 sweep was also truncated (1 object in raw payload) leaving 620 new rows with no aiDescription to extract from. Fix: - Add (r"типов", "Типовой") to _OBJ_CLASS_PATTERNS in domrf_kn.py; aligns with the "Типовой" value that domrf_catalog.py (SSR scraper) already sets from pages. - Migration 120: three-pass backfill covering all snapshots: Pass 1: aiDescription from all stored raw payloads with extended pattern Pass 2: propagate obj_class forward from most recent older snapshot (covers broken 2026-05-24 sweep — 185 objects) Pass 3: objective_complex_mapping → objective_lots modal class (~14 objects) Projects 50.2% → 71.2% coverage (3819→5418/7614 rows); meets ≥70% acceptance.