You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature was removed in the development and migration to the entirely different MongoDB schema that took place in May 2024. This feature could be re-implemented, this time more efficiently, and with extra features.
Potential solution
Rename the Preferences document to something more appropriate such as "UserServerData".
Move all preference fields into a new "Preferences" basemodel.
Create a Wins basemodel that has fields for each type of leaderboard (except all-time as a win system isn't appropriate for that).
Update document if user wins for a specific leaderboard in a server.
Create logic to sort based on wins, and create new command param.
Migrate to the new schema.
The text was updated successfully, but these errors were encountered:
Kevin-Roman
changed the title
Keep track of number of users number of wins for each leaderboard timeframe within each server
Keep track of users number of wins for each leaderboard timeframe within each server
Jun 8, 2024
Kevin-Roman
changed the title
Keep track of users number of wins for each leaderboard timeframe within each server
Track users number of wins for each leaderboard timeframe within each server
Jun 29, 2024
…unt support (#172)
Prerequisite for
#160
## Description
Preference is a very specific collection, which is indexed on the server
id and user id, but it is suitable to become a more generalised
collection that could store more information about the user (such as for
the upcoming win count). So `Preference` needs to turned into a
`BaseModel` and a new document `Profile` created that contains the
preference.
## Changes
1. Rename 'Preference' document to 'Profile'. Create a new 'Preference'
basemodel that is a field within the profile documents. Update the whole
codebase to reflect these changes.
2. Create migration for converting preferences to profiles.
3. Create `update_wins` that updates all users' wins.
4. Miscellaneous function name changes.
## Post review
- [x] Migrate prod db.
Description
This feature was removed in the development and migration to the entirely different MongoDB schema that took place in May 2024. This feature could be re-implemented, this time more efficiently, and with extra features.
Potential solution
Rename thePreferences
document to something more appropriate such as "UserServerData".Move all preference fields into a new "Preferences" basemodel.Create aWins
basemodel that has fields for each type of leaderboard (exceptall-time
as a win system isn't appropriate for that).Update document if user wins for a specific leaderboard in a server.Migrate to the new schema.The text was updated successfully, but these errors were encountered: