Closed
Bug 1030613
Opened 10 years ago
Closed 10 years ago
[mozillians] re-run geocode migration
Categories
(Infrastructure & Operations Graveyard :: WebOps: Engagement, task)
Infrastructure & Operations Graveyard
WebOps: Engagement
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sancus, Assigned: gozer)
References
Details
(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/432] )
Attachments
(1 file)
563.86 KB,
text/plain
|
Details |
The mozillians geolocation migration failed on a bunch of profiles that it shouldn't have failed on. I tracked the problem down to an issue with the geodata.json file I uploaded. I'm going to upload a fixed data set in this bug, and the following steps will be needed on prod: 1) Download geocoding.json from this bug. 2) Run ./manage.py loaddata geocoding.json 3) Run the following sql on the database: UPDATE profile SET geo_country_id=NULL WHERE geo_city_id IS NULL OR geo_region_id IS NULL; 4) Run ./manage.py geocode until it says there are 6 profiles left to geocode.
Reporter | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/432]
Reporter | ||
Comment 2•10 years ago
|
||
Oops, I forgot to mention a step. Before loading the data, run "truncate geo_geocoding" in the database. The modified steps follow: 1) Download geocoding.json from this bug. 2) Run sql on the db: TRUNCATE geo_geocoding 3) Run ./manage.py loaddata geocoding.json 4) Run sql on the db: UPDATE profile SET geo_country_id=NULL WHERE geo_city_id IS NULL OR geo_region_id IS NULL; 5) Run ./manage.py geocode until it says there are 6 profiles left to geocode. After doing this, https://mozillians.org/en-US/country/United%20States/city/San%20Francisco/ should contain roughly 10 pages of results instead of only a few.
Assignee | ||
Updated•10 years ago
|
Assignee: server-ops-webops → gozer
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•10 years ago
|
||
6 profiles left to geocode.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 4•10 years ago
|
||
Bumping to QA verified -- results on prod look and behave correctly. Automated tests are passing again.
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•