Page MenuHomePhabricator

[lib] Refactor lastCommunicatedPlatformDetails to be PlatformDetails
ClosedPublic

Authored by inka on Sep 1 2023, 2:24 AM.
Tags
None
Referenced Files
F2894520: D9060.diff
Fri, Oct 4, 4:10 PM
Unknown Object (File)
Wed, Oct 2, 4:52 PM
Unknown Object (File)
Wed, Sep 11, 8:08 PM
Unknown Object (File)
Mon, Sep 9, 6:47 PM
Unknown Object (File)
Mon, Sep 9, 2:11 AM
Unknown Object (File)
Sun, Sep 8, 11:40 PM
Unknown Object (File)
Sun, Sep 8, 11:01 PM
Unknown Object (File)
Fri, Sep 6, 2:51 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-4462/refactor-lastcommunicatedplatformdetails-field
I want to put lastCommunicatedPlatformDetails inside of keyserverStore. It will be much easier if lastCommunicatedPlatformDetails is first refatored to
be a single field of PlatformDetails type, mostly becuse the reducer will be possible to reuse in reduceKeyserverStore

Test Plan

ran yarn flow-all.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

keyserver/src/responders/website-responders.js
608

Not sure if null or undefined makes more sense. Or maybe it would make more sense to type it as lastCommunicatedPlatformDetails?: PlatformDetails?

inka requested review of this revision.Sep 1 2023, 2:42 AM
michal added inline comments.
keyserver/src/responders/website-responders.js
608

We use null for missing fields already, so I think it makes sense.

This revision is now accepted and ready to land.Sep 1 2023, 6:27 AM

Fix lastCommunicatedPlatformDetails default validator