Commit Graph
2 Commits
Author SHA1 Message Date
Isaac ConnorandClaude Opus 5.5 fca88d3b19 fix: report the whole search result as the events total, not the page refs #5417
With the search or advanced search box in use, the total was counted after
the rows were cut down to the requested page, so it equalled the page size
and the table could not page through the results. Count them first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 17:19:47 -05:00
Isaac ConnorandClaude Opus 5.5 e8298d91cb fix: leave out deleted monitors' events in the events query, not after paging refs #5417
The Events list hid events of soft-deleted monitors (Monitors.Deleted) while
building the rows, after the filter limit, the page slice and the totals. Pages
came up short, the footer counted and summed events that were never listed,
and a filter limit counted hidden events too.

Exclude M.Deleted in both SELECTs of queryRequest() so the limit, paging and
totals only see listed events, and drop the per-row skip. The new test runs
queryRequest() against the database inside a rolled-back transaction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 17:19:32 -05:00