Support Multi-Studyset Practice Tests via Term Mappings#23
Support Multi-Studyset Practice Tests via Term Mappings#23google-labs-jules[bot] wants to merge 1 commit into
Conversation
- Remove studyset_id column from practice_tests table - Implement StudysetIds resolver to derive studysets from associated terms - Update RecordPracticeTest and UpdatePracticeTest to calculate stats server-side - Update dataloaders to fetch practice tests through term mappings - Update integration tests to match new GraphQL 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. |
This change transitions practice tests from a single studyset_id relationship to a many-to-many relationship derived from the terms included in the test.
Key changes:
PracticeTestmodel and GraphQL resolvers to remove directstudyset_idusage.studysetIdsfield onPracticeTestthat queries unique studyset IDs from both question and distractor terms.RecordPracticeTestandUpdatePracticeTestmutations to automatically calculatequestionsCorrectandquestionsTotalfrom the provided questions array.practice_testswithpractice_test_question_termsandpractice_test_distractor_terms.TermATPtype and to reflect the removedstudysetIdinput.PR created automatically by Jules for task 10523823744295046263 started by @ehanahamed