Repository navigation
Keep the ingest path out of the CSV, HTML, KML and JSON exports - #26
Merged
Merged
Conversation
files.path is the absolute path as ingested: the evidence folder for a folder source, the case's staged folder for an archive row. It is a location on the machine the case was made on, and it was reaching every export. _disp_path now prefers rel_path for a folder source, which is what its docstring promised; the CSV file_path column, the HTML Path field and the KML description all read it. A row with no rel_path falls back to the file name. The JSON export drops files.path from each row and keeps rel_path, orig_path and file_path. tests/test_export_paths.py runs the pipeline on synthetic files under folders whose names hold a space, writes the HTML, CSV, JSON, MD5 and KMZ outputs, and asserts none of them names the temp root or the evidence folder, with the relative paths still present. It fails against the previous code. Co-Authored-By: Claude Fable 5.1 <[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.
Keeps the ingest path out of the CSV, HTML, KML and JSON exports.
files.path is the absolute path as ingested: the evidence folder for a folder source, the case's staged folder for an archive row. It is a location on the machine the case was made on, and it was reaching every export.
This changes the CSV file_path column and the HTML Path field for folder-source cases from the absolute ingest path to the path within the source.
🤖 Generated with Claude Code