Skip to content

Restructure Practice Tests and Progress Cleanup - #27

Merged
ehanahamed merged 1 commit into
mainfrom
restructure-practice-tests-and-cleanup-7894574637773094534
Jun 29, 2026
Merged

Restructure Practice Tests and Progress Cleanup#27
ehanahamed merged 1 commit into
mainfrom
restructure-practice-tests-and-cleanup-7894574637773094534

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

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

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.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@ehanahamed
ehanahamed merged commit aba2ed0 into main Jun 29, 2026
1 check failed
@ehanahamed
ehanahamed deleted the restructure-practice-tests-and-cleanup-7894574637773094534 branch June 29, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant