Store flair in user document as reference to flair DB collection. #47

Closed
opened 2024-11-26 08:28:05 -05:00 by rainbownapkin · 1 comment
rainbownapkin commented 2024-11-26 08:28:05 -05:00 (Migrated from gitlab.com)

The user's current flair is stored as a string. While it makes sense to store the name of the flair as a string within connectedUser.js when they're connected, it should be pulled from a populated DB reference instead of a string that gets checked when it's changed.

If implemented properly, this should introduce no performance penalties over the current system.

The user's current flair is stored as a string. While it makes sense to store the name of the flair as a string within connectedUser.js when they're connected, it should be pulled from a populated DB reference instead of a string that gets checked when it's changed. If implemented properly, this should introduce no performance penalties over the current system.
rainbownapkin commented 2024-12-03 06:34:52 -05:00 (Migrated from gitlab.com)

Updated userSchema to store flair as db ref: 279640a7

Updated userSchema to store flair as db ref: 279640a7
rainbownapkin (Migrated from gitlab.com) closed this issue 2024-12-03 06:34:54 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: rainbownapkin/canopy#47
No description provided.