Page MenuHomePhabricator

[lib] Introduce `MemberInfoSansPermissions`
ClosedPublic

Authored by atul on Jun 4 2024, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 8:23 PM
Unknown Object (File)
Sat, Nov 23, 9:08 AM
Unknown Object (File)
Sat, Nov 16, 12:43 AM
Unknown Object (File)
Mon, Nov 11, 6:01 AM
Unknown Object (File)
Mon, Nov 11, 3:32 AM
Unknown Object (File)
Sun, Nov 10, 5:10 PM
Unknown Object (File)
Sun, Nov 10, 3:05 PM
Unknown Object (File)
Sun, Nov 10, 3:05 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.