Page MenuHomePhabricator

[lib] Refactor lastCommunicatedPlatformDetails to be PlatformDetails
ClosedPublic

Authored by inka on Sep 1 2023, 2:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 3, 3:05 PM
Unknown Object (File)
Wed, Jul 3, 8:30 AM
Unknown Object (File)
Fri, Jun 28, 3:34 PM
Unknown Object (File)
Mon, Jun 24, 8:15 AM
Unknown Object (File)
Sat, Jun 22, 11:43 PM
Unknown Object (File)
Fri, Jun 21, 1:16 AM
Unknown Object (File)
Tue, Jun 11, 5:26 PM
Unknown Object (File)
May 24 2024, 12:15 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

keyserver/src/responders/website-responders.js
608 ↗(On Diff #30690)

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 ↗(On Diff #30690)

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