Repository navigation
SF-3951 Fix issue where chapters with unsupported USFM were not synced - #4210
pmachapman wants to merge 2 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4210 +/- ##
=======================================
Coverage 81.20% 81.20%
=======================================
Files 670 670
Lines 42913 42922 +9
Branches 7105 7112 +7
=======================================
+ Hits 34846 34854 +8
Misses 6902 6902
- Partials 1165 1166 +1 ☔ View full report in Codecov by Harness. |
RaymondLuong3
left a comment
There was a problem hiding this comment.
Thanks for this fix.
@RaymondLuong3 reviewed 3 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on pmachapman).
src/SIL.XForge.Scripture/Services/ParatextSyncRunner.cs line 1155 at r1 (raw file):
c.LastVerse, // If a draft was applied but has invalid USFM, sync it so the user can resolve in Paratext c.IsValid || (c.DraftApplied ?? false),
It looks like we should probably have a test to show that this works correctly for invalid chapters when a draft was applied.
Code quote:
c.IsValid || (c.DraftApplied ?? false),5236e48 to
966b06a
Compare
pmachapman
left a comment
There was a problem hiding this comment.
@pmachapman made 1 comment.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on RaymondLuong3).
src/SIL.XForge.Scripture/Services/ParatextSyncRunner.cs line 1155 at r1 (raw file):
Previously, RaymondLuong3 (Raymond Luong) wrote…
It looks like we should probably have a test to show that this works correctly for invalid chapters when a draft was applied.
Done. Thank you!
RaymondLuong3
left a comment
There was a problem hiding this comment.
@RaymondLuong3 reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on pmachapman).
This PR enables chapters that have been applied from drafts, but which have invalid USFM (i.e. because the Source USFM used non-standard USFM or USFM that SF does not support, such as tables), to be synced to Paratext.
I have also fixed an issue that prevented projects which were affected by this bug, and had one successful sync, from resyncing. The sync for these projects would crash with an error along the lines of:
This change is