Skip to content

feat(findings): bulk status update from the findings table - #298

Merged
BaaRai merged 1 commit into
mainfrom
feat-bulk-finding-status
Nov 17, 2026
Merged

BaaRai merged 1 commit into
mainfrom
feat-bulk-finding-status

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Implements the bulk half of #297.

  • Selection already exists on the Findings page (it drives the Export dialog), so this adds a Set status action to the toolbar whenever at least one row is selected.
  • POST /api/exploration/findings/bulk-status with {ids, status}: one transaction, one result per id, deduplicated ids, capped at 500, and the same ValidFindingStatus check as the single-row endpoint. An unknown id comes back as found: false instead of failing the batch.
  • Notification semantics stay exactly the single-row ones: one delivery event per finding whose status actually changed, none for a no-op. The node payload mirror added in fix(db): mirror finding triage onto the exploration node #289 runs inside the same transaction, so the per-task view stays in sync.
  • After the batch the list and the stats cards reload, so rows hidden by the current status filter disappear.

The report stage (report_state: submitted/accepted/rejected/duplicate) is the second half of the issue and stays separate: it is a workflow stage after triage, not a verdict, and it must not replace confirmed.

Verified: go build ./..., go vet ./server ./db, the new handler validation test, and tsc --noEmit. The DB test is PG-backed and runs in CI.

Refs #297.

@BaaRai
BaaRai merged commit d4c1a5c into main Nov 17, 2026
6 checks passed
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