-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPB-6258 Connection request from deleted user #3861
WPB-6258 Connection request from deleted user #3861
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please ignore my comments, it's all good to go! :)
integration/test/Test/Connection.hs
Outdated
@@ -401,3 +402,14 @@ testFederationAllowMixedConnectWithRemote = | |||
connectTwoUsers alice bob | |||
where | |||
defSearchPolicy = "full_search" | |||
|
|||
testPendingConnectionUserDeleted :: HasCallStack => Domain -> App () | |||
testPendingConnectionUserDeleted domain = do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testPendingConnectionUserDeleted domain = do | |
testPendingConnectionUserDeleted bobsDomain = do |
? I sometimes feel we're trying really hard to make identifiers mean as little as possible in /integration. could be just me, though :)
now | ||
(ucConvId uc) | ||
let e = ConnectionUpdated ucCancelled Nothing Nothing | ||
onConnectionEvent deleted conn e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason the local and the remote part look so different? (just curious)
services/brig/src/Brig/IO/Intra.hs
Outdated
sendCancelledEvent :: Local UserId -> Remote UserConnection -> m () | ||
sendCancelledEvent luidDeleted ruc = do | ||
runExceptT (sendConnectionAction luidDeleted Nothing (qUnqualified . ucTo <$> ruc) RemoteRescind) >>= \case | ||
-- I don't think we want to abort the operation since this is running asynchronously and cannot be retried anyway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can't it be retried? i'd expect this to go back to the rabbit queue and then get picked up again in a bit?
…tion-request-from-deleted-user-cannot-be-rejected
https://wearezeta.atlassian.net/browse/WPB-6258
Checklist
changelog.d