Repository navigation
Name a Project VIC import after its JSON file - #220
Merged
Merged
Conversation
Every file imported from a VIC JSON was registered under the source "Project VIC", whatever the file was called. Project VIC is the format, not the source, so the source is now the JSON's file name (iPhone XS.json), as a folder source is named after its folder. Cases already ingested keep the name they were given. 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.
Every file imported from a Project VIC JSON was registered under the source Project VIC, whatever the JSON was called. Project VIC is the format, not the source. Two JSONs in one case also looked like one source.
A VIC import's source is now the JSON's file name, for example
iPhone XS.json, the same way a folder source is named after its folder. This is what the Source filter, the details pane and the reports show.gleapp/projectvic.py: imported rows getsource = <JSON file name>; the unusedVIC_SOURCE_NAMEconstant is gone.gleapp/case.py: the source handed to the ingest is named the same way (it wasProject VIC (<name>)).Tests:
test_projectvic_detect_and_importnow checks the source name on the parsed source and on every imported row; it fails on the old code. Full suite locally on Windows: 794 passed, 6 skipped; lint (changed files) and line endings pass. The manual's and help's Source filter line says a VIC JSON is listed by its file name.🤖 Generated with Claude Code