Closed Bug 1030613 Opened 10 years ago Closed 10 years ago

[mozillians] re-run geocode migration

Categories

(Infrastructure & Operations Graveyard :: WebOps: Engagement, task)

task
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sancus, Assigned: gozer)

References

Details

(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/432] )

Attachments

(1 file)

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.
Attached file geocoding.json
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/432]
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.
Blocks: 1030537
Assignee: server-ops-webops → gozer
Status: NEW → ASSIGNED
6 profiles left to geocode.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Bumping to QA verified -- results on prod look and behave correctly. Automated tests are passing again.
Status: RESOLVED → VERIFIED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: