Page MenuHomePhabricator

[lib, web, native] Use KesyerverStore to get current cookie
ClosedPublic

Authored by inka on Jul 18 2023, 12:45 PM.
Tags
None
Referenced Files
F2157347: D8534.id28851.diff
Mon, Jul 1, 1:41 AM
F2157346: D8534.id28923.diff
Mon, Jul 1, 1:41 AM
F2157345: D8534.id28786.diff
Mon, Jul 1, 1:41 AM
F2157307: D8534.diff
Mon, Jul 1, 1:37 AM
Unknown Object (File)
Mon, Jun 24, 4:13 AM
Unknown Object (File)
Wed, Jun 19, 6:46 PM
Unknown Object (File)
Wed, Jun 19, 6:46 PM
Unknown Object (File)
Wed, Jun 19, 6:46 PM
Subscribers

Details

Summary

https://linear.app/comm/issue/ENG-4377/refactor-cookie-field-in-web-redux
Start using the cookie field from keyserverStore, in places where state.cookie was being fetched

In this first iteration we are hardcoding the id of our keyserver

Test Plan

ran yarn flow-all. Chekced with git grep that in all places the cookie from state was being used, the state.keyserverStore.keyserverInfos[].cookie is used instead (went through all occurences of 'cookie')

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/selectors/keyserver-selectors.js
8 ↗(On Diff #28786)

This is a hack that allows to use this selector before cookie is removed from state and migration from cookie to keyserverStore.keyserverInfos[].cookie is done. This is only done to keep the diffs small

inka requested review of this revision.Jul 18 2023, 1:04 PM
This revision is now accepted and ready to land.Jul 19 2023, 6:10 AM

change keyserverPrefixID to ashoatKeyserverID