Closed Bug 399588 Opened 18 years ago Closed 16 years ago

Need to migrate existing bouncer data to use newly supported locales

Categories

(Webtools :: Bouncer, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wenzel, Assigned: justdave)

References

Details

Attachments

(2 files)

We need to run a script, and some SQL (or so) to convert all current entries in the locations table to properly localized entries, one per supported locale.
Attached file Languages table
This is the languages table, containing the locales from http://lxr.mozilla.org/mozilla/source/browser/locales/all-locales plus en-US.
This marks all existing location table entries as en-US, then for each of them creates entries for each other locale too. Though not all files are present in all locales, this probably won't hurt as they shouldn't be linked anywhere then and they would result in a 404 just as well if they were not present in bouncer at all. Problem with this: In my tests, the locations table ended up with well over 35.000 entries. I assume this won't harm the bounce speed because it's well indexed (and cached IIRC), but this will make the admin interface in its current form hardly usable.
Attachment #284771 - Attachment mime type: application/octet-stream → text/plain
Attachment #284772 - Attachment mime type: application/octet-stream → text/plain
Justdave: are we using the locale stuff in production? Has this been run / is it not needed anymore?
Assignee: fwenzel → justdave
Status: ASSIGNED → NEW
To answer my own question, this is not in production yet. I'll file a bug to get us on going on deploying the languages patch that's been sitting on bouncer trunk for quite some time now.
Depends on: 538621
This has been rotting away and I merged this SQL into http://github.com/fwenzel/tuxedo/tree/master/sql/ today, with instructions in http://github.com/fwenzel/tuxedo/blob/master/README.md . We'll need a general "migrate to tuxedo" bug later.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: