Page MenuHomePhabricator

[native] Redux migration to clear `UNSUPPORTED<UPDATE_RELATIONSHIP>` messages
ClosedPublic

Authored by atul on Tue, Apr 16, 12:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 4:53 AM
Unknown Object (File)
Sun, Apr 28, 4:29 AM
Unknown Object (File)
Sat, Apr 27, 12:17 PM
Unknown Object (File)
Sat, Apr 27, 3:12 AM
Unknown Object (File)
Sat, Apr 27, 3:12 AM
Unknown Object (File)
Fri, Apr 26, 5:01 PM
Unknown Object (File)
Fri, Apr 26, 3:40 PM
Unknown Object (File)
Tue, Apr 23, 11:30 AM
Subscribers
None

Details

Summary

In the stack that begins D11606 we update the "shape" of UPDATE_RELATIONSHIP messages so they include FIDs when the operation is farcaster_mutual.

This migration clears out any existing unsupported UPDATE_RELATIONSHIP messages that developers may have in their local environments.


Depends on D11653

Test Plan

Before migration:

7c2c62.png (552×1 px, 122 KB)

After migration:

a4f99f.png (228×1 px, 57 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Tue, Apr 16, 12:27 PM
atul added inline comments.
native/redux/persist.js
1227 ↗(On Diff #39160)

All ClientDB* fields are typed as string, so we parseInt to be able to compare to messageTypes constants.

The reason we have parseInt here is because we're not converting from ClientDBMessageInfo -> RawMessageInfo -> ClientDBMessageInfo as we often do.

ashoat added inline comments.
native/redux/persist.js
1228 ↗(On Diff #39160)

Is there a possibility that some of these messages have been unshimmed? I seem to recall there are two ways for things to get unshimmed... one is when the keyserver stops shimming them, and another is when they're added to the unshim list on the client

This revision is now accepted and ready to land.Tue, Apr 16, 12:34 PM
atul edited the test plan for this revision. (Show Details)

remove hack from stack

native/redux/persist.js
1228 ↗(On Diff #39160)

They haven't been added to unshim list and we have a FUTURE_CODE_VERSION code version check in update-relationship-spec

This revision was landed with ongoing or failed builds.Fri, Apr 19, 11:37 AM
This revision was automatically updated to reflect the committed changes.