You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Audit log Block counters turns a failed security read into “No sign-in blocks” #3852
Audit log Block counters turns a failed security read into “No sign-in blocks”
Impact
Settings → Audit logs → Block counters can reassure an administrator that there were no rejected sign-in attempts when its security counter query failed. This hides lockout/IP-limit evidence during an incident and gives no recovery action.
Reproduction
Open the Audit logs Block counters tab.
Let login_attempts/queries:listBlockCounters settle with HTTP 503 after loading ends.
Inspect the table.
Actual result: the regular “No sign-in blocks” and “No rejected sign-in attempts in the last 7 days.” empty copy appears. No read-failure indicator or Retry/Try again/Reload control is rendered.
Expected result: show a failed-read state with Retry and use the no-blocks copy only after a successful empty response.
Root cause and scope
At current origin 9ea59724df24d62729a9360f3902d964dab39b3e, services/platform/app/features/settings/audit-logs/components/block-counters-table.tsx:32-39 destructures only data and isLoading; :39 maps undefined to []; the DataTable at :102-113 receives no error or retry callback. A settled failed query follows the ordinary empty-state path.
The block-counter query now passes its error and refetch into the shared DataTable error state, so failed reads show localized recovery UI instead of the successful empty copy. Successful empty responses retain “No sign-in blocks”. Regression tests cover both states and accessibility.
Validation: focused Vitest passed (2 tests), targeted type-aware Oxlint passed, commit conflict/format/local-SAST hooks passed. Platform TypeScript, browser/E2E/backend, migrations/docs sweeps remain unrun under the light-run limits. Duplicate issue; #3852 is the source and #3854 is covered by the same PR.
Activity
yannickmonney commentedon Oct 4, 2026
Implemented in PR #4314: #4314
The block-counter query now passes its error and refetch into the shared DataTable error state, so failed reads show localized recovery UI instead of the successful empty copy. Successful empty responses retain “No sign-in blocks”. Regression tests cover both states and accessibility.
Validation: focused Vitest passed (2 tests), targeted type-aware Oxlint passed, commit conflict/format/local-SAST hooks passed. Platform TypeScript, browser/E2E/backend, migrations/docs sweeps remain unrun under the light-run limits. Duplicate issue; #3852 is the source and #3854 is covered by the same PR.