Skip to content

Conversation

@dogi
Copy link
Member

@dogi dogi commented Jan 7, 2026

Moved the logic for marking resources as added or removed from
ResourcesRepositoryImpl into ActivityRepositoryImpl.

  • Added markResourceAdded and markResourceRemoved methods to the
    ActivityRepository interface and its implementation.
  • Injected ActivityRepository into ResourcesRepositoryImpl.
  • Replaced direct calls to RealmRemovedLog in ResourcesRepositoryImpl
    with calls to the new ActivityRepository methods.

This change improves the separation of concerns by centralizing
activity-related logging in a dedicated repository.


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

Moved the logic for marking resources as added or removed from
ResourcesRepositoryImpl into ActivityRepositoryImpl.

- Added `markResourceAdded` and `markResourceRemoved` methods to the
  `ActivityRepository` interface and its implementation.
- Injected `ActivityRepository` into `ResourcesRepositoryImpl`.
- Replaced direct calls to `RealmRemovedLog` in `ResourcesRepositoryImpl`
  with calls to the new `ActivityRepository` methods.

This change improves the separation of concerns by centralizing
activity-related logging in a dedicated repository.
Moved the logic for marking resources as added or removed from
ResourcesRepositoryImpl into ActivityRepositoryImpl.

- Added `markResourceAdded` and `markResourceRemoved` methods to the
  `ActivityRepository` interface and its implementation.
- Injected `ActivityRepository` into `ResourcesRepositoryImpl`.
- Replaced direct calls to `RealmRemovedLog` in `ResourcesRepositoryImpl`
  with calls to the new `ActivityRepository` methods.
- Fixed visibility of `RealmRemovedLog` properties and corrected the
  constructor in `ResourcesRepositoryImpl` to resolve build errors.

This change improves the separation of concerns by centralizing
activity-related logging in a dedicated repository.
@dogi dogi added ready to merge duplicate This issue or pull request already exists labels Jan 7, 2026
@dogi dogi changed the title refactor: Extract RealmRemovedLog operations to ActivityRepository resources: smoother activity repository log coupling (fixes #10422) Jan 8, 2026
@dogi dogi merged commit 792a738 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