Skip to content

Conversation

@dogi
Copy link
Member

@dogi dogi commented Jan 7, 2026

This change moves the logic for saving course progress from the CourseStepFragment to the ProgressRepository.

This improves separation of concerns by centralizing database operations within the repository layer, making the fragment simpler and more focused on UI logic.

The following changes were made:

  • Added saveCourse-progress to the ProgressRepository interface and ProgressRepositoryImpl.
  • Injected ProgressRepository into CourseStepFragment using Hilt.
  • Replaced the direct database call in CourseStepFragment with a call to the new repository method.

https://jules.google.com/session/1353736323483050373

This change moves the logic for saving course progress from the
`CourseStepFragment` to the `ProgressRepository`.

This improves separation of concerns by centralizing database
operations within the repository layer, making the fragment
simpler and more focused on UI logic.

The following changes were made:
- Added `saveCourse-progress` to the `ProgressRepository` interface and
  `ProgressRepositoryImpl`.
- Injected `ProgressRepository` into `CourseStepFragment` using Hilt.
- Replaced the direct database call in `CourseStepFragment` with a
  call to the new repository method.
@dogi dogi added triage Further information is requested experiment labels Jan 7, 2026
@qltysh
Copy link

qltysh bot commented Jan 7, 2026

❌ 2 blocking issues (2 total)

Tool Category Rule Count
qlty Structure Function with many parameters (count = 6): saveCourseProgress 2

@dogi dogi changed the title refactor: Move saveCourseProgress to ProgressRepository courses: smoother progress repository saving (fixes #10423) Jan 8, 2026
parentCode: String?,
courseId: String?,
stepNum: Int,
passed: Boolean?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function with many parameters (count = 6): saveCourseProgress [qlty:function-parameters]

parentCode: String?,
courseId: String?,
stepNum: Int,
passed: Boolean?
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function with many parameters (count = 6): saveCourseProgress [qlty:function-parameters]

@dogi dogi changed the title courses: smoother progress repository saving (fixes #10423) courses: smoother progress repository steps saving (fixes #10423) Jan 8, 2026
@dogi dogi merged commit 621a850 into master Jan 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants