Allow cardset owners to see histories from previous bonus sessions
Create a snapshot of the current leitner objects and save them inside a new leitner history collection. These objects can be later on used to see the content of previous bonus events.
Step 1: Move old data to the new Format
-
cardset learningPhase -> leitnerLearningPhase -
workload -> leitnerLearningWorkload -
leitner -> leitnerUserCardStats (For single users) and leitnerBonusCardStats (For an active bonus) -
tasks -> leitnerActivationDay -
leitnerHistory -> leitnerPerformanceStats
Step 2: Update the UI to use the new format:
-
Cardset labels and bonus info -
Leitner bonus statistics -
Leitner Bonus statistics navigation button
-
-
Leitner User History -
Leitner User Log -
Leitner User Status -
Wordcloud modal Bonus Info
Step 3: Update methods to use the new field names
-
CRUD Learning-Phase (Bonus) -
Add Support for MC
-
-
CRUD Learning-Phase (Private) -
Add Support for MC
-
-
Remove User from Bonus -
Remove User Workload - Server restart re-enables cardsets with bonus
-
Delete Cardset -
Delete User -
Cronjob -
Update global performance stats (Card median) -
Add update event for removing users from a bonus -
Update the active learner counter if a user leaves the bonus -
Add update event for deleting a user (Show leave bonus message on modal) -
Users are listed twice (Error inside test database) Step 4: Browsing-History
-
-
Define titles for the bonus phase -
Display the title on the .csv export filename -
Display the title on the delete learning phase modal -
Fix .csv export not working if no user joined the bonus -
Trim the title when inserting it into the database
-
-
Allow admins to adjust bonus values on archived bonus phases -
Dropdown menu -
Allow admins to delete previous bonus phases -
User can't learn new cards -
CSV export does not work on archived bonus phases
-
Misc:
-
Update Collection index -
Adjust next unlock message for the new cronjob behavior of registration dates -
Restore leitner cronjob debug output
Closes #603 (closed)