Skip to content

fix(drives): one findings count, moved findings folded, every finding searchable (#193813 #193814) - #608

Merged
mayoalexander merged 1 commit into
iris/1.18.23from
wt/193813-drives-counts
Nov 18, 2026
Merged

mayoalexander merged 1 commit into
iris/1.18.23from
wt/193813-drives-counts

Conversation

@mayoalexander

Copy link
Copy Markdown

Issue for this PR

Atlas tickets #193813 and #193814 (not GitHub issues). Follows PR #602 (Drives tab, #193705).

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

#193813: two numbers for one drive. The drive list showed the scan's sensitive_files (files on the drive now), while the Findings tab counted every drive-findings record, including ones a later scan marked moved. Measured on live data: BK-03 368 vs 382 (14 moved), Redwalrus 278 vs 433 (155 moved), Hive archive 0 vs 11 (11 moved).

"Findings" now means on the drive now, everywhere in the tab. Moved findings sit under a "Show N moved off this drive" fold, and a drive whose findings were all moved says so.

#193814: folders capped at 1,000, and search only covered the first page. Once the Findings tab or a folder opens, the tab reads every page in the background, 200 at a time (new optional perPage on /iris/drives/findings, clamped to 200). The first page still paints at once and the footer shows progress. A safety cap of 10,000 is labelled when it's hit.

How did you verify your code works?

Ran this branch's UI (vite) against the compiled engine and drove the real panel in Chromium with live data, after getting expected values from the API:

  • BK-03: 368 throughout, the fold shows 14, 382 rows once expanded.
  • Search for sites-2016 returns all 88 matches, all of them past the first 100 findings.
  • Hive archive: 0 on the drive with 11 moved. Redwalrus: 278 with 155 moved.
  • No overflow and no console errors.

Tests: route 5 pass (adds the perPage clamp); packages/app session tests 994 pass, 1 fail. The failure is the enforced-schedule case in iris-heartbeats-model.test.ts, which fails the same way on iris/1.18.23.

Screenshots / recordings

Captured on iris-hive-001. Not attached, because they show a real drive catalogue.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

🤖 Generated with Claude Code

… searchable (#193813 #193814)

The drive row counted sensitive files on the drive now (the scan's own
count); the Findings tab counted every record, including ones the scan
marked moved. BK-03 read 368 vs 382, Redwalrus 278 vs 433. Findings now
means on the drive now, everywhere; moved ones sit under a fold.

Findings load every page in the background (200 a time) once the tab or a
folder opens, so search and folders cover all of them; the first page still
paints at once, and a safety cap says when it stops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mayoalexander
mayoalexander merged commit 5bc0f4b into iris/1.18.23 Nov 18, 2026
1 check failed
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