Closed
Bug 1026750
Opened 11 years ago
Closed 10 years ago
Change organizerID in Events table to use numerical IDs
Categories
(Webmaker Graveyard :: Events, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: gvn, Unassigned)
Details
(Whiteboard: [tech-debt])
Attachments
(1 file)
Currently organizerID contains the organizer's username. We should migrate the DB to use proper user ID numbers instead.
This will require a full audit of the Events app. Things are sure to break (RSVP listings on event pages certainly will).
Reporter | ||
Updated•11 years ago
|
Whiteboard: [tech-debt]
Updated•11 years ago
|
Assignee: nobody → errietta
Comment 1•11 years ago
|
||
Not sure I'm on the right track here. also never messed with promises before. However, when trying to retrieve the username in this fashion from webmaker-events-2, i get "organizerUsername": {
"isFulfilled": false,
"isRejected": false
},
Not sure if I'm doing it wrong or it's just the jsonifying process when getting an event.
Attachment #8464225 -
Flags: feedback?(gavin)
Updated•11 years ago
|
Assignee: errietta → nobody
Reporter | ||
Comment 2•11 years ago
|
||
Here are some approaches we can take. For now, let's defer this until we have more tests written and possibly post-Maker Party.
1)
- Change organizerId to an INT type and migrate all existing alphanumeric username values to their numeric equivalents. This will require scripting.
- Add a new organizerUsername column and populate it with alphanumeric usernames. (Optional, but would make lookups easier.)
2)
- Leave organizerId as-is. Add organizerNumericId (or something) as a new column with numeric user IDs. This is a bit semantically icky, but less prone to data corruption and regressions.
Reporter | ||
Updated•11 years ago
|
Attachment #8464225 -
Flags: feedback?(gavin) → feedback-
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•