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