Skip to content

Implement and refine progress tracking with HarmonyProgressReporter#77

Draft
hahn-kev wants to merge 5 commits into
sillsdev:mainfrom
hahn-kev:feature/progress-tracking-16239342796954750511
Draft

Implement and refine progress tracking with HarmonyProgressReporter#77
hahn-kev wants to merge 5 commits into
sillsdev:mainfrom
hahn-kev:feature/progress-tracking-16239342796954750511

Conversation

@hahn-kev

Copy link
Copy Markdown
Collaborator

We would like to be able to get more detail info about how a sync is going, this PR implements a progress reporter for use when syncing changes

google-labs-jules Bot and others added 5 commits June 27, 2026 10:45
- Added HarmonyProgress record struct to SIL.Harmony.Core.
- Updated ISyncable interface and DataModel to support IProgress<HarmonyProgress>.
- Implemented progress reporting in SnapshotWorker by change count.
- Added ProgressTests to verify the implementation.

Co-authored-by: hahn-kev <4575355+hahn-kev@users.noreply.github.com>
- Introduced SyncStage enum in Core.
- Refactored HarmonyProgress to use SyncStage and nullable counts.
- Added HarmonyDetailedProgress for rich progress reporting.
- Introduced HarmonyProgressReporter wrapper to support multiple IProgress<T> types and avoid unnecessary string allocations.
- Updated ISyncable, DataModel, SyncHelper, and SnapshotWorker to use the new reporter.
- Added comprehensive tests for simple and detailed progress.

Co-authored-by: hahn-kev <4575355+hahn-kev@users.noreply.github.com>
- Added Finished stages to SyncStage enum.
- Refactored HarmonyProgressReporter to use named methods (e.g., ReportStartApplyingChanges, ReportApplyingChange).
- Implemented internal status string generation to avoid unnecessary allocations.
- Updated SnapshotWorker and SyncHelper call sites.
- Added and verified tests for the new specialized methods and stages.

Co-authored-by: hahn-kev <4575355+hahn-kev@users.noreply.github.com>
- Refactored HarmonyProgressReporter to calculate total changes from IEnumerable<Commit>.
- Added UploadingChanges and UploadingChangesFinished stages to SyncStage enum.
- Integrated uploading changes reporting in SyncHelper (SyncWith and SyncMany).
- Updated SnapshotWorker to use the refined ReportStartApplyingChanges.
- Verified all changes with updated ProgressTests.

Co-authored-by: hahn-kev <4575355+hahn-kev@users.noreply.github.com>
- Updated ReportStartApplyingChanges to only calculate total change count if a progress listener is present.
- Verified all progress tracking stages (downloading and uploading) in tests.
- Finalized specialized methods for reporting stages.

Co-authored-by: hahn-kev <4575355+hahn-kev@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 42964cfa-3414-4c5f-98bc-7b434dd4c4a1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant