Page MenuHomePhabricator

[lib] Replace sessionRecoveryInProgress with actionSessionRecovery
ClosedPublic

Authored by ashoat on Mar 3 2024, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 12:15 AM
Unknown Object (File)
Apr 5 2024, 12:12 AM
Unknown Object (File)
Apr 4 2024, 7:02 PM
Unknown Object (File)
Apr 4 2024, 6:43 PM
Unknown Object (File)
Mar 24 2024, 5:41 PM
Unknown Object (File)
Mar 16 2024, 2:59 AM
Unknown Object (File)
Mar 15 2024, 5:09 PM
Unknown Object (File)
Mar 15 2024, 1:03 PM
Subscribers
None

Details

Summary

This Redux field (part of ConnectionInfo inside KeyserverInfo) will now store a RecoveryActionSource instead of just a boolean. This will allow us to pass the RecoveryActionSource from the place where the session recovery is initiated to the place where the session recovery is executed (KeyserverConnectionHandler).

Depends on D11211

Test Plan

I used this test plan for the whole stack: https://gist.github.com/Ashoat/75ab690d5c53cdd68a51b02e03e27c58

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested review of this revision.Mar 3 2024, 9:04 PM

Just to make sure: sessionRecoveryInProgress isn't persisted, right?

lib/keyserver-conn/call-keyserver-endpoint-provider.react.js
328 ↗(On Diff #37745)

Nit

lib/types/redux-types.js
1360–1363 ↗(On Diff #37745)

Should we delete this?

This revision is now accepted and ready to land.Mar 4 2024, 1:47 AM

Just to make sure: sessionRecoveryInProgress isn't persisted, right?

That's right – all of ConnectionInfo is not persisted

lib/types/redux-types.js
1360–1363 ↗(On Diff #37745)

Oops yeah, good catch