Page MenuHomePhabricator

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

Authored by atul on Jun 27 2024, 2:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 7:58 AM
Unknown Object (File)
Thu, Dec 19, 7:58 AM
Unknown Object (File)
Thu, Dec 19, 7:58 AM
Unknown Object (File)
Thu, Dec 19, 7:58 AM
Unknown Object (File)
Thu, Dec 19, 7:57 AM
Unknown Object (File)
Thu, Dec 19, 7:57 AM
Unknown Object (File)
Wed, Dec 11, 2:59 PM
Unknown Object (File)
Mon, Dec 2, 1:42 PM
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
Branch
july26 (branched from master)
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.