Page MenuHomePhabricator

[lib] Inline reduceLastCommunicatedPlatformDetails
ClosedPublic

Authored by inka on Nov 8 2023, 6:59 AM.
Tags
None
Referenced Files
F2902833: D9764.diff
Sat, Oct 5, 7:14 PM
Unknown Object (File)
Sat, Sep 28, 3:49 AM
Unknown Object (File)
Mon, Sep 9, 3:57 AM
Unknown Object (File)
Sep 4 2024, 7:43 AM
Unknown Object (File)
Sep 4 2024, 7:43 AM
Unknown Object (File)
Sep 4 2024, 7:43 AM
Unknown Object (File)
Sep 4 2024, 7:43 AM
Unknown Object (File)
Sep 4 2024, 7:43 AM

Details

Summary

issue: https://linear.app/comm/issue/ENG-5353/inline-reducelastcommunicatedplatformdetails
updateLastCommunicatedPlatformDetailsActionType is dispatched from socket and callServerEndpoint. In both of these we are in the context of one keyserver, so this action is keyserver specific

Test Plan

called updateLastCommunicatedPlatformDetailsActionType, checked that it sets the lastCommunicatedPlatformDetails correctly, chcecked that logInActionTypes sets it correctly.

Diff Detail

Repository
rCOMM Comm
Branch
inka/reducers
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka published this revision for review.Nov 8 2023, 8:13 AM
lib/reducers/keyserver-reducer.js
158 ↗(On Diff #33201)

Do these types match? Isn't one PlatformDetails and the other PlatformDetailsPayload?

lib/reducers/last-communicated-platform-details-reducer.js
20 ↗(On Diff #33201)

Is registerActionTypes.success handled somewhere?

lib/types/device-types.js
44–47 ↗(On Diff #33201)

This would be clearer imo (but it doesn't really matter)

inka added inline comments.
lib/reducers/keyserver-reducer.js
174–185 ↗(On Diff #33315)

In ENG-4440 we agreed to leave the register action as is, since it will be replaced and merged with login as part of ENG-4351
@varun is that still true? If so, is there a task that talks about the login / register actions more specifically?

This revision is now accepted and ready to land.Nov 16 2023, 5:04 AM