Repository navigation
Feat/gui hash set import - #5
Merged
Merged
Conversation
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
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.
No description provided.