Repository navigation
fix(engine): repair and the opening summary read what a note counts, not its words #3118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Mavrick-F
merged 4 commits into
opengeos:main
from
Mavrick-F:fix/loss-facts-not-wording
Nov 27, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f67e49c
fix(engine): repair and the opening summary read what a note counts, …
Mavrick-F 08e9927
fix(engine): expect a total over layers, and build the browser withou…
Mavrick-F eec79bb
fix(engine): an overflowing total is unknown, Repair reads a definite…
Mavrick-F 05ebd18
fix(engine): one notice for a kind of loss whether its counts are kno…
Mavrick-F File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unknown-count branch carries no loss code (
None), while the known-count branch above carriesDroppedFeature.conversion_noticeskeys on the tally and the code, so for one file where layer A has a known count and layer B an unknown one, the opening summary says two notices for one kind (GDAL: 3 features ... were left outandGDAL: an unknown number of features ... may have been left out) and never the single unknown total the PR describes ("a total is unknown when any layer's count is"). It isn't silent, since both are said, but it doesn't match the stated grouping.The test
grouped_conversion_losses_keep_unknown_totals_in_either_order(project.rs) passesConversionLoss::adddirectly with hand-set codes, so it never reaches this key split and wouldn't catch it. Two options: give this branch the sameDroppedFeaturecode (features may be dropped, so the code is arguably right here, but it changes the single-layer notice's code), or keep the split and say so in the PR. Either way, a test throughconversion_noticeswith one known and one unknown layer would pin it down.Category: quality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 05ebd18. Tallied notes are grouped by what they count alone, not their code, so a known and an unknown count of one kind are one notice, its total unknown. The group keeps the code any of its notes carries (
dropped.featurefrom the known count), since that loss is in it. The single-layer notices keep their own codes. The test now goes throughconversion_notices, in both orders:a_known_and_an_unknown_count_of_one_kind_are_one_notice_in_either_order.