Repository navigation
Hide "Stored at" when the staged copy was never made - #246
Merged
Merged
Conversation
A zip read in place records the path a staged copy would have, but nothing is copied there, so the details pane pointed at a file that does not exist. /api/file/<id> now says whether the path exists, and the pane shows the row only when it does. Fixes #241 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Fixes #241
A case that reads an extraction archive in place records, for each row, the path a staged copy would have under
staged/, but nothing is ever copied there. The details pane showed that path as Stored at whenever it differed fromorig_path, so it pointed at a file that does not exist./api/file/<id>now returnspath_exists, whether the row'spathis on disk.path_existsis true.Rows whose path is real keep the row: members of a staged source, files copied out of a nested archive into
extracted/, and Project VIC imports (the file in the export folder).The check runs when the file is opened, so existing cases pick it up without reprocessing.
Test:
test_file_detail_says_whether_the_stored_path_existsintests/test_archive_reference.pyingests the same zip in place and staged, and checkspath_existsfor each.🤖 Generated with Claude Code