Refactor Health Upload Realm Queries to HealthRepository#11626
Refactor Health Upload Realm Queries to HealthRepository#11626
Conversation
…epository Extract direct Realm database queries in UploadToShelfService into HealthRepository. - Add `getUpdatedHealthExaminations` to retrieve unmanaged, updated RealmHealthExamination objects. - Add `markHealthUploaded` to safely mark an examination as uploaded and update its `_rev`. - Update UploadToShelfService methods `uploadHealth` and `uploadSingleUserHealth` to use the new repository methods instead of direct Realm transactions. - Inject HealthRepository into UploadToShelfService via ServiceModule. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
❌ 3 blocking issues (3 total)
|
Refactors UploadToShelfService to remove direct Realm access for health data uploads, delegating these operations to HealthRepository.
PR created automatically by Jules for task 13185437995499689068 started by @dogi