-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FS-1148] Resilient member adding in presence of unreachable backends…
… (1/2) (#3248) * Refactoring: use FailedToProcess * Refactoring: make UnreachableUsers a NonEmpty As agreed with client devs on Apr 4, 2023 in the Squad - Federation chat, the absence of the `failed_to_send` field in response to an MLS message send request has the same meaning as an empty list provided in the same field. * executeProposalAction: return failed-to-add users * MLS test utility: reuse code among utilities * Move and generalise mockUnreachableFor * Introduce failed to remove (via failed to fetch client info) * Propagate FailedToProcess across federation API arising from conversation updates * Fix/align an MLS integration test * Use a V4 add members endpoint in tests * Rethrow the invalid-domain exception * Rethrow federation-not-available error * Fix a golden test for LeaveConversationResponse * Golden tests for MLSMessageSendingStatus * Fix a test with an unreachable user * Test: clean up debugging leftovers * Test utility: fix wording of a haddoc * Clean up conv action federation failure handling * Move unreachability stuff into its own module
- Loading branch information
1 parent
d3dc67a
commit 339e39b
Showing
30 changed files
with
677 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Report a failure to add remote users to an MLS conversation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Several federation Galley endpoints have a breaking change in their response types: "leave-conversation", "update-conversation", "send-mls-message" and "send-mls-commit-bundle". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libs/wire-api-federation/test/golden/testObject_LeaveConversationResponse1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"Right": [] | ||
"Right": {} | ||
} |
7 changes: 3 additions & 4 deletions
7
libs/wire-api-federation/test/golden/testObject_MLSMessageSendingStatus1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"events": [], | ||
"time": "1864-04-12T12:22:43.673Z", | ||
"failed_to_send": [] | ||
} | ||
"events": [], | ||
"time": "1864-04-12T12:22:43.673Z" | ||
} |
10 changes: 10 additions & 0 deletions
10
libs/wire-api-federation/test/golden/testObject_MLSMessageSendingStatus4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"events": [], | ||
"failed_to_add": [ | ||
{ | ||
"domain": "offline.example.com", | ||
"id": "00000000-0000-0000-0000-000200000008" | ||
} | ||
], | ||
"time": "2023-04-12T12:22:43.673Z" | ||
} |
14 changes: 14 additions & 0 deletions
14
libs/wire-api-federation/test/golden/testObject_MLSMessageSendingStatus5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"events": [], | ||
"failed_to_remove": [ | ||
{ | ||
"domain": "golden.example.com", | ||
"id": "00000000-0000-0000-0000-000200000008" | ||
}, | ||
{ | ||
"domain": "golden.example.com", | ||
"id": "00000000-0000-0000-0000-000100000007" | ||
} | ||
], | ||
"time": "1901-04-12T12:22:43.673Z" | ||
} |
20 changes: 20 additions & 0 deletions
20
libs/wire-api-federation/test/golden/testObject_MLSMessageSendingStatus6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"events": [], | ||
"failed_to_add": [ | ||
{ | ||
"domain": "offline.example.com", | ||
"id": "00000000-0000-0000-0000-000200000008" | ||
} | ||
], | ||
"failed_to_remove": [ | ||
{ | ||
"domain": "golden.example.com", | ||
"id": "00000000-0000-0000-0000-000200000008" | ||
}, | ||
{ | ||
"domain": "golden.example.com", | ||
"id": "00000000-0000-0000-0000-000100000007" | ||
} | ||
], | ||
"time": "1905-04-12T12:22:43.673Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.