feat(tradein/scraper-kit): migrate admin debug endpoints + domclick ingest to kit (#2305) #2326
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#2326
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-migrate-admin-debug-kit"
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?
Closes #2305 (Group A эпика #2277 — scraper_kit migration).
Что сделано
8 debug-эндпоинтов в
app/api/v1/admin.py+scripts/ingest_domclick_jsonl.pyпереведены сlegacy
app.services.scrapers.*наscraper_kit.providers.*:/scrape(Avito/Cian/YandexRealty + save_listings),
scrape_avito_house,scrape_avito_detail,scrape_avito_imv,scrape_yandex_detail,scrape_yandex_valuation,scrape_cian_detail,cian_auto_login. DI (RealScraperConfig/RealMatcherAdapter/RealProxyProvider/get_scraper_delay) зеркалит паттерн уже используемый вscheduler_main._run_kit_scheduler.ingest_domclick_jsonl.py—ScrapedLot/save_listings+DomClickDetailEnrichment/save_detail_enrichmentна kit (последнее стало возможным после Group D/#2307).Намеренно НЕ мигрировано — найден реальный баг в scraper_kit
scrape_yandex_newbuilding/scrape_cian_newbuildingоставлены на legacy: kit-провайдерыproviders.{yandex,cian}.newbuildingконструируютBrowserFetcher(source=...)безобязательного keyword-only
endpoint=— упадётTypeErrorпри любом вызове, caller-side DIэто не чинит (сигнатуры не выставляют
configвообще). Заведено issue #2322 (блокирует чистуюмиграцию Group C/#2310 — та тоже трогает newbuilding-пути, проверить/пофиксить #2322 первым).
Попутно найден несвязанный pre-existing баг — issue #2323 (
awaitна sync-функции).Проверено
(
_parse_house_page,_extract_price_changes,_parse_card_fieldsи т.д.), не на network-путяхnewbuilding-баг подтверждён как genuinely unfixable caller-side)
Дальше
Разблокирует финальное закрытие #2277 (после Groups C/E/F).