Restructure Practice Tests and Progress Cleanup - #27
Conversation
This commit restructures how practice test questions are stored by moving them from a JSONB column in the `practice_tests` table into a dedicated `practice_test_questions` table. This allows for better individual question querying and updating.
Key changes:
- Database migration to create the new `practice_test_questions` table and migrate existing JSONB data.
- Updated GraphQL schema:
- `TermATP` snapshots now use `termSnapshot` and `defSnapshot`.
- Added `id` to the `Question` type.
- Replaced `updatePracticeTest` with `updatePracticeTestQuestion` to allow targeted FRQ updates.
- Removed all references to the unused Leitner system and term progress history.
- Updated mutations and resolvers:
- `RecordPracticeTest` now populates the new questions table.
- `UpdatePracticeTestQuestion` implements manual FRQ correctness overrides and synchronizes practice test accuracy and term progress stats.
- `PracticeTest.Questions` resolver now fetches and reconstructs questions from the database.
- Cleanup of obsolete dataloaders, mapping tables, and models.
- Updated integration tests to match the new schema and logic.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Restructured practice tests by moving questions from JSONB to a dedicated table, implemented individual question updates, and removed obsolete Leitner system and progress history features.
PR created automatically by Jules for task 7894574637773094534 started by @ehanahamed