Skip to content

Feat/gui hash set import - #5

Merged
charpy4n6 merged 3 commits into
mainfrom
feat/gui-hash-set-import
Sep 2, 2026
Merged

charpy4n6 merged 3 commits into
mainfrom
feat/gui-hash-set-import

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

No description provided.

charpy4n6 and others added 3 commits September 2, 2026 19:00
Adds an in-app way to load a known-hash list into a case (e.g. an NCMEC
CyberTip MD5 list) and flag every file that matches - previously only
possible from the CLI.

Sidebar gets its own "Hash sets" section:
  - "Import hash set…" opens the OS file browser, then a small dialog for
    a name and the kind (flag as notable / mark as benign); import runs a
    background re-check and the grid jumps to the matches.
  - each imported set is listed with its entry count, live hit count, and
    an X to remove it.
  - a "Show" dropdown filters the grid to one named set's hits, or to any
    imported set.

Endpoints: POST /api/hashset/import, GET /api/hashsets/case,
POST /api/hashset/remove; /api/pick gains a "hashlist" file-type; the
list filter takes ?hashset_name=<name> or =* (any imported set).
db.list_hashsets() / db.delete_hashset(); delete also clears the flags it
added in the same transaction (instant, works mid-job) and only kicks a
re-check when idle.

Also: Lr.native is now read from /api/context in boot() rather than only
in showLauncher(), so the file browser works when GLEAPP opens straight
into an existing case.

Tests: test_hashset_import_endpoint_flags_and_removes covers import,
per-set + any-set filtering, and mid-job removal.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcEhYD7XkWcxocYPALdcEb
The Cluster dropdown (jump to one near-dup cluster by id) is niche and
overlaps the Duplicates filter's "In a near-dup cluster" option, so drop
it and give its slot — right under Source — to the new Hash sets panel.
Removes #fclu and its option-population / reset / filter-param wiring;
the server still accepts ?cluster= (unused now, kept for the CLI).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcEhYD7XkWcxocYPALdcEb
CI's lint-changed-files flagged two new pylint warnings from the
previous two commits:
  - gleapp/web/app.py broad-exception-caught: catch the concrete
    (OSError, ValueError, sqlite3.Error) that import_hashset can raise
  - tests/test_pipeline.py reimported: use the module-level `time`
    instead of a local `import time as _t`

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcEhYD7XkWcxocYPALdcEb
@charpy4n6
charpy4n6 merged commit 74912c3 into main Sep 2, 2026
8 checks passed
@charpy4n6
charpy4n6 deleted the feat/gui-hash-set-import branch September 2, 2026 23:47
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