Page MenuHomePhabricator

[lib] Introduce `MemberInfoSansPermissions`
ClosedPublic

Authored by atul on Jun 4 2024, 2:29 PM.
Tags
None
Referenced Files
F2831249: D12315.diff
Fri, Sep 27, 11:14 PM
Unknown Object (File)
Wed, Sep 25, 10:49 PM
Unknown Object (File)
Wed, Sep 25, 10:49 PM
Unknown Object (File)
Wed, Sep 25, 10:49 PM
Unknown Object (File)
Mon, Sep 9, 9:07 AM
Unknown Object (File)
Mon, Sep 9, 9:07 AM
Unknown Object (File)
Mon, Sep 9, 8:52 AM
Unknown Object (File)
Fri, Aug 30, 10:17 PM
Subscribers
None

Details

Summary

Introduce MemberInfoSansPermissions, stripPermissionsFromMemberInfo, and some unit tests.

The type will eventually replace MemberInfoWithPermissions in RawThreadInfo, but for now it's convenient to use to "surface" flow issues.


Depends on D12296

Test Plan

flow + unit tests

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D12315 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This is really mostly for my convenience so I can avoid stashing/unstashing while working through remainder of stack until ready to replace MemberInfoWithPermissions with MemberInfoSansPermissions.

atul published this revision for review.Jun 4 2024, 2:31 PM
tomek added inline comments.
lib/types/minimally-encoded-thread-permissions-types.js
108–113 ↗(On Diff #40974)

How about using $Diff?

This revision is now accepted and ready to land.Jun 5 2024, 2:30 AM
lib/types/minimally-encoded-thread-permissions-types.js
108–113 ↗(On Diff #40974)

Or even $Rest https://flow.org/en/docs/types/utilities/#toc-rest which

is the type that represents the runtime object rest operation

This revision was automatically updated to reflect the committed changes.