Page MenuHomePhabricator

[lib] Add connectionIssue field
ClosedPublic

Authored by inka on Dec 11 2023, 1:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 2, 6:01 PM
Unknown Object (File)
Tue, Jul 2, 6:01 PM
Unknown Object (File)
Tue, Jul 2, 6:01 PM
Unknown Object (File)
Tue, Jul 2, 6:01 PM
Unknown Object (File)
Tue, Jul 2, 6:01 PM
Unknown Object (File)
Tue, Jul 2, 6:01 PM
Unknown Object (File)
Tue, Jul 2, 6:01 PM
Unknown Object (File)
Mon, Jul 1, 3:52 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-5990/add-setconnectionissue-action
In this stack I will be replacing logouts dispatched from the socket with seting this new connectionIssue filed. This is because we don't want to log the user out of the app if we can't connect to one keyserver. We also don't want to log the user out of this keyserver, because that would result in the client removing the keyserver from the store. Instead, we decided to store information about the problem that the client is having with communicating with the keyserver.
See the discussion in ENG-5808 for more details. See ENG-5913 for an explanation of why it takes those values.

Test Plan

flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Dec 11 2023, 2:23 AM
inka planned changes to this revision.Dec 11 2023, 2:57 AM

I might need to simplify this after D10289

inka edited the summary of this revision. (Show Details)

Simplify

This revision is now accepted and ready to land.Dec 14 2023, 9:30 AM

Changes to address feedback on D10332

This revision now requires review to proceed.Dec 20 2023, 1:34 AM
tomek added inline comments.
lib/types/socket-types.js
499 ↗(On Diff #34872)

Wondering how convenient it is. In some reducers, it might be easier to set connectionIssue: null, which would require having ?ConnectionIssue type, but up to you.

This revision is now accepted and ready to land.Dec 20 2023, 6:59 AM

Make connectionIssue nullable, fix validator

This revision was automatically updated to reflect the committed changes.