refactor(data): Remove UserProgress redundancy by making Lesson state the source of truth#48
refactor(data): Remove UserProgress redundancy by making Lesson state the source of truth#48Gowreesh-A-M wants to merge 4 commits intomainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors the application's data layer by merging user progress tracking directly into the lessons table. The primary goal is to simplify the data architecture, reduce redundancy, and improve consistency by making the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request consolidates user progress tracking by merging percentComplete and lastAccessedAt directly into the LessonsTable, eliminating the need for a separate UserProgressTable and UserRepository. The changes include updating the database schema, DTOs, and repositories, as well as refactoring the recentActivityProvider to query the LessonsTable directly. A review comment highlighted a type safety concern in the database migration helper function, suggesting to use GeneratedColumn instead of dynamic for the column parameter.
42eb880 to
ad46f0e
Compare
Merged redundant UserProgressTable into LessonsTable to simplify architecture. Updated schema to version 7 and consolidated all progress logic into CourseRepository.
- Regenerate auth_provider.g.dart to fix duplicate symbol errors. - Remove references to the deleted user_progress repository. - Update MockDataSource to match the simplified LessonDto schema.
ad46f0e to
9e7d979
Compare
…re_storage, image_picker_ios, and package_info_plus
Uh oh!
There was an error while loading. Please reload this page.