Page MenuHomePhabricator

[lib] Add connectionIssue field
ClosedPublic

Authored by inka on Dec 11 2023, 1:59 AM.
Tags
None
Referenced Files
F3353788: D10287.diff
Sat, Nov 23, 11:25 AM
Unknown Object (File)
Thu, Nov 14, 4:19 AM
Unknown Object (File)
Thu, Nov 7, 11:19 PM
Unknown Object (File)
Thu, Nov 7, 11:19 PM
Unknown Object (File)
Thu, Nov 7, 11:19 PM
Unknown Object (File)
Thu, Nov 7, 11:19 PM
Unknown Object (File)
Thu, Nov 7, 11:19 PM
Unknown Object (File)
Thu, Nov 7, 11:19 PM
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
Branch
inka/connectionIssue
Lint
No Lint Coverage
Unit
No Test Coverage

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.