Skip to content

Saved categories and flags carried between cases; Processing options section on the ingest screen - #268

Merged
charpy4n6 merged 8 commits into
mainfrom
feat/saved-category-set
Oct 3, 2026
Merged

charpy4n6 merged 8 commits into
mainfrom
feat/saved-category-set

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

Saved set: carry your own categories and, optionally, flags to other cases

  • Save as my set… in the ⚙ Categories and ⚙ Flags editors copies the open case's own categories and, if ticked, its flags into categories.json in the settings folder (appconfig.config_dir(), so GLEAPP_CONFIG_DIR isolates it). Categories and flags each have their own box. The locked Project VIC presets (0–5) are never saved, because every case already has them. Saving one part replaces what was saved of it before, and the dialog warns first. A part left unticked keeps what was saved.
  • Add my saved set… adds the set to the open case:
    • Names the case already has are skipped, ignoring upper/lower case.
    • A category hidden in the case is shown again.
    • A category keeps its saved code where the case has it free, so it's the same number in every case and every Project VIC export. If the code is taken, the category gets the next free one and the result says so.
  • New case gets "Start with my saved categories (N)" and "Start with my saved flags (N)". Each box appears only once something of that kind is saved, and both start unticked every time.
  • Every save and every add is written to the case audit log.
  • It's a copy, not a link: editing a case never changes the saved set, and saving never changes an older case.

New module gleapp/savedset.py; CaseDB.insert_category adds a category at a chosen code. Endpoints: GET /api/savedset, POST /api/savedset/save, POST /api/savedset/apply; /api/case/create accepts use_categories and use_flags.

Ingest screen

  • The options are now in a Processing options section that starts collapsed.
  • "Copy media out of extraction archives into the case" is renamed Copy media out of extraction/acquisition into the case, in the + Add evidence dialog too. It is now the last item in Processing options.

The branch history includes a launcher ☰ Menu → Categories editor that was added and then removed (5847243, fd93ddd, then reverted in f60d133 and 9cbe1ea). The net diff has none of it.

Docs: MANUAL.md, help.html and the README feature table are updated.

Testing

  • tests/test_saved_set.py (15 tests) covers:
    • save and apply
    • code kept vs. renumbered
    • name merging, ignoring case
    • a hidden category shown again
    • a saved code in the preset range never being reused
    • flags carried only when asked
    • a corrupt settings file
    • the web endpoints, with case create with and without the boxes
    • the boxes starting unticked
    • the Processing options section holding every option
  • Full local suite, run before the launcher editor was removed: 938 passed, 6 skipped. After the removal, the saved-set, launcher and option tests pass (42).
  • One earlier full run failed test_the_installed_opencv_reads_the_bundled_model with "Unknown C++ exception" from OpenCV. It passes on its own on main and on this branch, and passed in the two later full runs. This change doesn't touch OpenCV.
  • Checked by hand in the browser and in a Windows exe build.

🤖 Generated with Claude Code

charpy4n6 and others added 8 commits October 2, 2026 19:39
…ases

"Save as my set..." in the category and flag editors copies the case's own
categories (never the locked Project VIC presets) and, if ticked, its flags
into categories.json in the settings folder. The New case form offers
"Start with my saved categories / flags", each its own box, and "Add my
saved set..." adds them to an open case: names already there are skipped,
a hidden one is shown again, and a category keeps its saved code unless the
case already uses it, in which case it takes the next free one and the
result says so. Saves and adds go to the case audit log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aved set boxes start unticked

The saved categories / flags boxes no longer remember their last state:
both start unticked and the examiner chooses each time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e open; Copy media option moved to the end of Processing options

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reverts 5847243 except moving "Copy media out of extraction/acquisition
into the case" to the end of Processing options, which stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@charpy4n6
charpy4n6 merged commit 6684bb1 into main Oct 3, 2026
8 checks passed
@charpy4n6
charpy4n6 deleted the feat/saved-category-set branch October 21, 2026 00:11
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.

1 participant