fix(tradein/scrapers): clamp implausible listing/publish dates (LOW audit R2 #6) #2507

Merged
bot-backend merged 1 commit from fix/tradein-scraper-listing-date-bounds into main 2026-07-12 22:11:07 +00:00
Collaborator

LOW audit round-2 #6. Avito emits 1970-epoch (~698 rows) and near-future listing_date (~79 rows). Added _clamp_plausible_date at the single save_listings() choke point — anything outside [2010-01-01, today+2d] to NULL, covering all providers. Migration 181 nulls existing bad rows (idempotent). 174 tests passed; manifest tests green.

LOW audit round-2 #6. Avito emits 1970-epoch (~698 rows) and near-future listing_date (~79 rows). Added _clamp_plausible_date at the single save_listings() choke point — anything outside [2010-01-01, today+2d] to NULL, covering all providers. Migration 181 nulls existing bad rows (idempotent). 174 tests passed; manifest tests green.
bot-backend added 1 commit 2026-07-12 22:07:43 +00:00
fix(tradein/scrapers): clamp implausible listing/publish dates at the save choke point
All checks were successful
CI Trade-In / changes (pull_request) Successful in 10s
CI / changes (pull_request) Successful in 10s
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI Trade-In / backend-tests (pull_request) Successful in 1m2s
0e0911dd28
Avito emits 1970-epoch and near-future listing_date; a single guard in
save_listings() nulls anything outside [2010-01-01, today+2d], covering all
providers. + migration 181 nulls existing bad rows. LOW audit R2 (#6).
bot-backend merged commit 2cd24ecfbc into main 2026-07-12 22:11:07 +00:00
bot-backend deleted branch fix/tradein-scraper-listing-date-bounds 2026-07-12 22:11:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#2507
No description provided.