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 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
Unknown Object (File)
Fri, Nov 8, 7:15 AM
Unknown Object (File)
Fri, Oct 25, 2:14 PM
Unknown Object (File)
Oct 10 2024, 10:25 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
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

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

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.