Skip to content

WPB-28422 reconcile stale local memberships for deleted remote conversations - #5504

Open
battermann wants to merge 3 commits into
developfrom
WPB-28422-backend-reconcile-stale-local-memberships-for-deleted-remote-conversations
Open

WPB-28422 reconcile stale local memberships for deleted remote conversations#5504
battermann wants to merge 3 commits into
developfrom
WPB-28422-backend-reconcile-stale-local-memberships-for-deleted-remote-conversations

Conversation

@battermann

@battermann battermann commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-28422

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@battermann
battermann marked this pull request as ready for review September 1, 2026 14:13
@battermann
battermann requested review from a team as code owners September 1, 2026 14:13
@battermann
battermann requested a lite review from Copilot September 1, 2026 14:14
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Sep 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces reconciliation logic to clean up stale local membership records when a remote (federated) conversation is definitively absent from the owning backend’s successful response, and adds integration coverage for this behavior.

Changes:

  • Reconcile (delete) stale local memberships when a remote “get conversations” call succeeds but omits locally-tracked remote conversation IDs.
  • Add integration tests that validate reconciliation behavior (including idempotency) and ensure memberships are preserved on federation failures.
  • Update an existing integration test to tolerate “no-conversation” results for a one-to-one conversation after remote user deletion.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
libs/wire-subsystems/src/Wire/ConversationSubsystem/Query.hs Adds reconciliation side-effect when remote conversations are missing from a successful federated response.
integration/test/Test/Conversation.hs Adds integration tests for stale membership reconciliation and adjusts expectations for one-to-one conversation retrieval after remote user deletion.
changelog.d/6-federation/WPB-28422 Documents the new stale-membership cleanup behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread libs/wire-subsystems/src/Wire/ConversationSubsystem/Query.hs
@battermann
battermann force-pushed the WPB-28422-backend-reconcile-stale-local-memberships-for-deleted-remote-conversations branch from 256eb56 to 0caac72 Compare September 1, 2026 14:31
@battermann
battermann requested a lite review from Copilot September 1, 2026 14:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants