Page MenuHomePhabricator

[lib] Inline reduceLastCommunicatedPlatformDetails
ClosedPublic

Authored by inka on Nov 8 2023, 6:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 8:23 PM
Unknown Object (File)
Oct 28 2024, 12:03 AM
Unknown Object (File)
Oct 28 2024, 12:03 AM
Unknown Object (File)
Oct 28 2024, 12:03 AM
Unknown Object (File)
Oct 28 2024, 12:03 AM
Unknown Object (File)
Oct 28 2024, 12:03 AM
Unknown Object (File)
Oct 28 2024, 12:01 AM
Unknown Object (File)
Oct 20 2024, 1:20 PM

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
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

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