Skip to content

Conversation

@Enkidu93
Copy link
Collaborator

@Enkidu93 Enkidu93 commented Oct 9, 2025

This change is Reviewable

@Enkidu93 Enkidu93 requested a review from ddaspit October 9, 2025 20:50
@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 72.38%. Comparing base (0118bad) to head (f59af54).

Files with missing lines Patch % Lines
...Analysis/ParatextProjectQuoteConventionDetector.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #352   +/-   ##
=======================================
  Coverage   72.38%   72.38%           
=======================================
  Files         417      417           
  Lines       35632    35632           
  Branches     4928     4929    +1     
=======================================
  Hits        25793    25793           
  Misses       8744     8744           
  Partials     1095     1095           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddaspit reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93)


src/SIL.Machine/PunctuationAnalysis/ParatextProjectQuoteConventionDetector.cs line 38 at r1 (raw file):

            return GetQuoteConventionAnalysis(
                handler,
                includeChapters.ToDictionary(kvp => Canon.BookIdToNumber(kvp.Key), kvp => kvp.Value) ?? null

Unless I'm missing something, I don't think this will work. ToDictionary will still throw an exception if includeChapters is null. You need something more like:

includeChapters?.ToDictionary(kvp => Canon.BookIdToNumber(kvp.Key), kvp => kvp.Value)

Copy link
Collaborator Author

@Enkidu93 Enkidu93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @ddaspit)


src/SIL.Machine/PunctuationAnalysis/ParatextProjectQuoteConventionDetector.cs line 38 at r1 (raw file):

Previously, ddaspit (Damien Daspit) wrote…

Unless I'm missing something, I don't think this will work. ToDictionary will still throw an exception if includeChapters is null. You need something more like:

includeChapters?.ToDictionary(kvp => Canon.BookIdToNumber(kvp.Key), kvp => kvp.Value)

You aren't missing anything 😆. Just me committing code at the end of a very long day haha. Fixed. Sorry about that. That made less than no sense.

Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@ddaspit reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Enkidu93)

@Enkidu93 Enkidu93 force-pushed the handler_null_chapters_gracefully branch from d57cf91 to f59af54 Compare October 10, 2025 18:36
@Enkidu93 Enkidu93 merged commit 53b745a into master Oct 10, 2025
3 of 4 checks passed
@Enkidu93 Enkidu93 deleted the handler_null_chapters_gracefully branch October 10, 2025 18:55
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.

4 participants