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
Unknown Object (File)
Tue, Nov 5, 2:12 AM
Unknown Object (File)
Oct 4 2024, 4:08 AM
Unknown Object (File)
Oct 2 2024, 6:35 AM
Unknown Object (File)
Sep 26 2024, 1:02 AM
Unknown Object (File)
Sep 25 2024, 3:38 PM
Unknown Object (File)
Sep 21 2024, 6:39 PM
Unknown Object (File)
Sep 12 2024, 7:19 PM
Unknown Object (File)
Sep 12 2024, 7:19 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