The Test Data I Did Not Write
Описание и применение
Дублирование записей зарядных станций на карте возникло из‑за тестовых данных, не отражающих реальные различия в названиях операторов. Переписав логику дублирования и используя реальные данные в тестах, удалось сократить количество дублирующих записей.
Задача
Duplicate charging station listings appeared on the map because the deduplication job relied on test data that did not reflect real operator naming differences.
Результат
The updated deduplication logic reduced duplicate listings from multiple sources, improving map accuracy and user experience.
Рабочий процесс
- Identify duplicate records by key fields
- Compare operator names in test fixtures
- Run nightly deduplication job
- Measure duplicate count in production
- Rewrite passes to match on distance and street name
- Add real data fixtures to tests
- Run dry runs against real data
- Deploy updated job
Доказательства
The fixture said the operator names match. In 9,269 real pairs, they matched once.
In the real data, the names matched once in 9,269 pairs of duplicates.
The refactor was merged seventy-eight minutes after it was opened, without a review.
- Дата записи: 2026-10-01T20:55:51.510Z