Page MenuHomePhabricator

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

Authored by atul on Apr 16 2024, 12:23 PM.
Tags
None
Referenced Files
F3358394: D11669.diff
Sun, Nov 24, 4:36 AM
Unknown Object (File)
Sun, Nov 3, 9:37 AM
Unknown Object (File)
Oct 12 2024, 11:48 PM
Unknown Object (File)
Oct 12 2024, 11:48 PM
Unknown Object (File)
Oct 12 2024, 11:48 PM
Unknown Object (File)
Oct 12 2024, 11:48 PM
Unknown Object (File)
Oct 12 2024, 11:47 PM
Unknown Object (File)
Oct 12 2024, 11:47 PM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Apr 16 2024, 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.Apr 16 2024, 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.Apr 19 2024, 11:37 AM
This revision was automatically updated to reflect the committed changes.