Skip to content

Bug: Team membership refresh silently replaces unsaved roster selections #3584

Closed

Description

@yannickmonney

P2 · Reproduced locally against 44e0dcf254975286c0e9dea443b5cd1ca6b23347. No production testing.

Concurrent team edits can silently erase local roster work and disable Save.

Reproduction:

  1. Open Edit team with member A. Locally select member B without saving.
  2. While open, another session adds member C, refreshing useTeamMembers.

Expected: Preserve the local selection or surface a remote-update conflict before replacing it.

Observed: The effect unconditionally replaces selectedMemberIds and initialMemberIdsRef with server A+C; local unsaved B disappears and dirty state is reset.

Evidence: Component probe selects B through the actual panel callback, rerenders with query A+C, and observes B absent without any mutation call.

Verification: Independently reran the five relevant observation/control tests; all passed. The actual dialogs and their form state execute in jsdom. The shared form editor preserves a newer pending-save draft in the control.

Proof boundary: Actual TeamEditDialog state/effect executed; query delivery and member-checklist control are mocked seams. No full browser/two-session run.

Source:

Deduplication: Cached issue titles searched settings/team/dirty. GitHub search "team draft reset": [] GitHub search "team membership refresh": []

Acceptance: Reproduce the triggering sequence with a regression test, preserve the editable draft or refuse invalid input as described above, and retain the successful-save control.

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