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: Legal Hold matters table turns failed reads into a normal empty state #3836
Legal Hold matters table turns failed reads into a normal empty state
Impact
Governance → Legal hold → Matters can tell an operator there are no matters after the matters query has failed. A compliance user may create a duplicate matter or assume the matter register is clear, and the page offers no way to recover without a full navigation/reload.
Reproduction
Open the Legal hold Matters section.
Let listLegalMatters settle with a server/transport failure such as HTTP 503.
Inspect the table after loading ends.
Actual result: the section renders the normal “No matters” empty-state copy. No error, failed-read indication, or Retry/Try again/Reload action is present.
Expected result: show a read-failure state with Retry and keep normal empty-state copy for successful empty responses only.
Root cause and scope
At current origin 9ea59724df24d62729a9360f3902d964dab39b3e, services/platform/app/features/settings/governance/legal-hold/matters-section.tsx:40-41 destructures only { data: matters, isLoading } from useLegalMatters; :202-213 passes matters ?? [] to DataTable and omits error and onRetry. A settled isError query therefore follows the empty-table path. The dedicated Matters register is not covered by issue #3818, which reports active-hold, release-request, and history tables.
Probe assertion: one Vitest test passed with useLegalMatters controlled to data: undefined, isLoading:false, isError:true; normal “No matters” copy appeared with no alert or retry action.
Activity
fix(platform): name a failed legal matters read, not an empty register