feat(tradein): admin backfill endpoints — cian price-history (T8a) + yandex address (T10) + house IMV (T7) #856
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#856
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-scrapers-wave2-backfills"
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?
Волна 2 из inbox-ноты 2026-05-30-2050 (local→server). Логика перенесена из рабочих локальных скриптов
scripts/, реализована как admin-triggerable POST endpoints (ручной/контролируемый запуск — НЕ авто-cron, т.к. bulk по cron ловит 429 с datacenter-IP). Без Playwright (curl_cffi). Не трогает scheduler.py.T8a
POST /admin/scrape/cian-price-history— curl_cffi fetch detail →extract_state(frontend-offer-card, defaultState)→offerData.priceChanges→offer_price_history(была пустая). Reusefetch_detail+save_detail_enrichment. Новыйapp/services/cian_price_history.py.T10
POST /admin/scrape/yandex-address-backfill— curl_cffi fetch yandex/offer/<id>/, regex full-address из<title>→ UPDATElistings.address+ сброс geocode_tried_at. Пропускает если номер дома не извлёкся.app/services/yandex_address_backfill.py.T7
POST /admin/scrape/house-imv-backfill— ядро изbackfill-house-imv.py: median lot-params + house_type→IMV map + region-bbox prefix, resumable по imv_status, →house_imv_evaluations+house_placement_history+house_suggestions.app/services/house_imv_backfill.py.pytest: 27 новых + 1413 total passed. ruff clean. (2 фейла cian_valuation/search-cache — локально-средовые, в CI проходят.)
⚠️ Риски: T7 IMV own-session без явного proxy (подхватит HTTP_PROXY env); T7 endpoint синхронный (~4.5мин/50 домов); T10 region_code=66 (EKB) хардкод. Детали в отчёте.