Skip to content

Hide "Stored at" when the staged copy was never made - #246

Merged
charpy4n6 merged 1 commit into
mainfrom
fix/stored-at-in-place
Sep 30, 2026
Merged

charpy4n6 merged 1 commit into
mainfrom
fix/stored-at-in-place

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

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 from orig_path, so it pointed at a file that does not exist.

  • /api/file/<id> now returns path_exists, whether the row's path is on disk.
  • The details pane shows Stored at only when path_exists is 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_exists in tests/test_archive_reference.py ingests the same zip in place and staged, and checks path_exists for each.

🤖 Generated with Claude Code

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]>
@charpy4n6
charpy4n6 merged commit 81c1b8c into main Sep 30, 2026
8 checks passed
@charpy4n6
charpy4n6 deleted the fix/stored-at-in-place branch September 30, 2026 23:43
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.

Details pane shows a staged path that does not exist for files read in place from an archive

1 participant