Closed Bug 880768 Opened 13 years ago Closed 13 years ago

Add dual DB feature for old Thimble projects hosted at /p/:id

Categories

(Webmaker Graveyard :: Thimble, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jon, Assigned: michiel)

References

Details

(Whiteboard: s=2013w24 p=1)

Attachments

(1 file)

Pomax, JP and I have been discussing the best way to continue hosting projects created in thimble-django. We've decided that the best compromise would be to: 1) Add a route for /p/:id and /p/:id/edit to the server that is enabled by an environment variable 2) Add a second sequelize connection for projects according to the thimble-django schema 3) Import all of the thimble-django data into this second DB
Assignee: nobody → pomax
Status: NEW → ASSIGNED
Whiteboard: s=2013w24 [migration] → s=2013w24 p=1
Severity: normal → blocker
database dump is on google drive; this doesn't have its own database, so: mysql>CREATE DATABASE LegacyThimble; mysql>CONNECT LegacyThimble; mysql>SOURCE unpackedfile.sql; mysql>RENAME TABLE api_page TO LegacyProjects; then fire up "node app" (otherwise sequelize will build the table for us, which is not very useful, because it'll be empty)
Attachment #761091 - Flags: review?(jon)
Attachment #761091 - Flags: review?(jon) → review?(david.humphrey)
Comment on attachment 761091 [details] [review] https://github.com/mozilla/thimble.webmaker.org/pull/115 I made a few minor comments/suggestions in the code. This looks sane to me. Let's do it on staging and test it a bunch today.
Attachment #761091 - Flags: review?(david.humphrey) → review+
Comment on attachment 761091 [details] [review] https://github.com/mozilla/thimble.webmaker.org/pull/115 fresh pull request, same code, pull comments from #112 worked in. Pretty sure this is the same code, routes etc. resolve correctly, but in the interest of safety this does require at least one pair of eyes to run over it just to be sure.
Attachment #761091 - Attachment description: https://github.com/mozilla/thimble.webmaker.org/pull/112 → https://github.com/mozilla/thimble.webmaker.org/pull/115
Attachment #761091 - Flags: review+ → review?
Attachment #761091 - Flags: review? → review?(david.humphrey)
Attachment #761091 - Flags: review?(david.humphrey) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
See Also: → 882169
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: