Page MenuHomePhabricator

[lib] Add `flow` suppression to `deprecatedDecodeMinimallyEncodedRawThreadInfo`
ClosedPublic

Authored by atul on Jun 27 2024, 2:16 PM.
Tags
None
Referenced Files
F3248854: D12601.id42156.diff
Fri, Nov 15, 11:14 AM
Unknown Object (File)
Mon, Nov 11, 7:18 PM
Unknown Object (File)
Mon, Nov 11, 1:44 PM
Unknown Object (File)
Mon, Nov 11, 1:25 PM
Unknown Object (File)
Mon, Nov 11, 10:58 AM
Unknown Object (File)
Mon, Nov 11, 9:07 AM
Unknown Object (File)
Mon, Nov 11, 4:19 AM
Unknown Object (File)
Mon, Nov 11, 2:14 AM
Subscribers

Details

Summary

Add flow suppression in deprecatedDecodeMinimallyEncodedRawThreadInfo before call to decodeMinimallyEncodedMemberInfo.

This code path will only be encountered during legacy migrations where member permissions ARE persisted so flow "issues" aren't relevant going forward because deprecatedDecodeMinimallyEncodedRawThreadInfo should never be called anywhere new.

This gets us down to 2 flow issues, both with minimallyEncodeRawThreadInfo.


Depends on D12599

Test Plan

Close reading, there are no logic changes... just flow suppressions to account for differing representation of RawThreadInfo.members

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Jun 27 2024, 2:16 PM

I think it's better to have type suppressions than to have to maintain the old set of types indefinitely. This makes sense to me

This revision is now accepted and ready to land.Jul 1 2024, 1:09 PM

I think it's better to have type suppressions than to have to maintain the old set of types indefinitely. This makes sense to me

Sweet, that will make things a lot easier... especially with rawThreadInfoFromServerThreadInfo. Was having a lot of flow trouble previously trying to type that as ?LegacyThinRawThreadInfo | ?ThinRawThreadInfo | ?ThinRawThreadInfoWithMemberPermissions

This revision was landed with ongoing or failed builds.Jul 9 2024, 1:54 PM
This revision was automatically updated to reflect the committed changes.