Repository navigation
Fix map reviews for whitespace edits, renames, and empty heads - #54
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What and why
Map reviews could report zero changes after editing whitespace inside a string or renaming a file without changing its contents. Deleting the last source file also prevented a review from starting; an empty head could not pass the map contract at render time.
Empty-file renames remain explicitly unanalyzed and keep the report partial because there are no source lines to cite. Edited or ambiguous moves retain the snapshot's conservative add/delete representation.
Fixes #46
Fixes #47
Fixes #48
How it was checked
pytest -q(747 passed, including 39 new cases), public-file audit, fixture regeneration with no diff, both wheel builds and package checks.npm test(72 passed),npm run lint,npm run build; built viewer committed with its source.npm run test:browser(7 passed), using the installed Google Chrome executable throughPLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH.agent statusreports current. No separate model-session evaluation was run.Documents
No viewer dependency changes; third-party notices are unchanged.