Closed
Bug 1931718
Opened 11 days ago
Closed 9 days ago
Suggest can return duplicate weather suggestions for the same city
Categories
(Application Services :: Suggest, defect, P1)
Application Services
Suggest
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: adw, Assigned: adw)
References
Details
(Whiteboard: [sng-cityweather])
Attachments
(1 file)
fetch_weather_suggestions()
tries to dedupe matching cities, but it doesn't work right because the items it dedupes are (city, region, keyword)
tuples, so if two tuples differ only in keyword they won't be deduped, and then later when we discard keywords and convert the tuples to Suggestion
s, we end up with two suggestions with the same city.
This doesn't cause any visible problems because desktop will only show the first one, but it's unintended and a little wasteful.
You can reproduce this on desktop by searching for "<city> weather", since "weather" matches two different keywords ("weather" and "weather near me").
Updated•11 days ago
|
Comment 1•11 days ago
|
||
Assignee | ||
Updated•9 days ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•