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)

x86
macOS
defect
Not set
normal

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).
Whiteboard: [tech-debt]
Assignee: nobody → errietta
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)
Assignee: errietta → nobody
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.
Attachment #8464225 - Flags: feedback?(gavin) → feedback-
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.

Attachment

General

Created:
Updated:
Size: