Skip to content

Conversation

@dogi
Copy link
Member

@dogi dogi commented Jan 7, 2026

Refactored TeamCoursesFragment to use CoursesRepository instead of direct Realm access.

  • Injected CoursesRepository into TeamCoursesFragment.
  • Added getCoursesByIds(ids: List) method to the CoursesRepository interface and its implementation.
  • Replaced the direct mRealm.where() call in setupCoursesList() with a call to the new repository method within a lifecycle-aware coroutine.

This change improves architectural separation of concerns and makes the fragment independent of the underlying data source implementation.


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

Refactored TeamCoursesFragment to use CoursesRepository instead of direct Realm access.

- Injected CoursesRepository into TeamCoursesFragment.
- Added getCoursesByIds(ids: List<String>) method to the CoursesRepository interface and its implementation.
- Replaced the direct mRealm.where() call in setupCoursesList() with a call to the new repository method within a lifecycle-aware coroutine.

This change improves architectural separation of concerns and makes the fragment independent of the underlying data source implementation.
Refactored TeamCoursesFragment to use CoursesRepository instead of direct Realm access.

- Injected CoursesRepository into TeamCoursesFragment's superclass.
- Added getCoursesByIds(ids: List<String>) method to the CoursesRepository interface and its implementation.
- Replaced the direct mRealm.where() call in setupCoursesList() with a call to the new repository method within a lifecycle-aware coroutine.
- Fixed a build error by removing a duplicate `coursesRepository` property that conflicted with the one inherited from `BaseResourceFragment`.

This change improves architectural separation of concerns and makes the fragment independent of the underlying data source implementation.
@dogi dogi added triage Further information is requested small change labels Jan 7, 2026
@Okuro3499 Okuro3499 added the ⭐. label Jan 7, 2026
@dogi dogi closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small change triage Further information is requested ⭐.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants