Skip to content

Bug: Data-subject request dialog hides a failed subject-member read as “No matching members” #3857

Closed

Description

@yannickmonney

Finding

Data-subject request dialog hides a failed subject-member read as “No matching members”

Impact

An administrator filing a GDPR erasure request can see an empty subject picker when the organization-member read has failed. The dialog gives no indication that the subject directory is unavailable and no retry action; a valid erasure request cannot be targeted, while the empty copy suggests there simply are no matching members.

Reproduction

  1. Open Governance → Data subject requests → File erasure request.
  2. Let governance/legal_hold_queries:listOrgMembersForPicker settle with HTTP 503 after loading ends.
  3. Open the Subject picker.

Actual result: the picker shows “No matching members.” with no alert, failed-read label, or Retry/Try again/Reload action.

Expected result: distinguish an unavailable subject directory from a successful empty result, show a read-error state with Retry, and keep submission unavailable until a real member list is available.

Root cause and scope

At current origin 9ea59724df24d62729a9360f3902d964dab39b3e:

  • services/platform/app/features/settings/governance/data-subject-requests/file-request-dialog.tsx:60-70 maps only (members.data ?? []) into memberOptions.
  • The SearchableSelect at :184-204 receives no members.isLoading, isError, error, or refetch; the normal emptyText is always used when data is unavailable.
  • useOrgMembersForErasurePicker exposes the backend query state, but the dialog discards it.

Evidence

  • Probe: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/dsr-picker-read-error.probe.test.tsx
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/dsr-picker-read-error.replay.log
  • Probe assertion: one Vitest test passed with member query data: undefined, isLoading:false, isError:true; Subject picker showed normal empty copy without alert/retry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions