Page MenuHomePhabricator

[lib] Introduce `stripMemberPermissionsFromRawThreadInfo`
ClosedPublic

Authored by atul on Jul 15 2024, 6:32 PM.
Tags
None
Referenced Files
F3350037: D12763.diff
Fri, Nov 22, 8:24 PM
Unknown Object (File)
Mon, Nov 18, 4:08 PM
Unknown Object (File)
Thu, Nov 14, 7:52 PM
Unknown Object (File)
Fri, Nov 1, 7:53 PM
Unknown Object (File)
Thu, Oct 31, 11:01 PM
Unknown Object (File)
Oct 23 2024, 7:22 PM
Unknown Object (File)
Oct 23 2024, 7:22 PM
Unknown Object (File)
Oct 23 2024, 7:22 PM
Subscribers
None

Details

Summary

This utility will be helpful in rawThreadInfoFromServerThreadInfo and client migrations.


Depends on D12758

Test Plan

Added basic unit test, will continue testing implicitly with rest of stack.

Diff Detail

Repository
rCOMM Comm
Branch
july9 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Jul 15 2024, 6:52 PM
ashoat requested changes to this revision.Jul 17 2024, 12:20 PM

Love that you included tests! A bit confused about the invariant not matching the types – a couple questions inline

lib/utils/member-info-utils.js
19

If we only expect to use this with ThinRawThreadInfo, why aren't we passing that type in here?

20

Shouldn't we at least be able to return ThinRawThreadInfo given the invariant below?

This revision now requires changes to proceed.Jul 17 2024, 12:20 PM
lib/utils/member-info-utils.js
19

Sorry, the changes to stripMemberPermissionsFromRawThreadInfo types got mistakenly included in another commit. Will move back into this commit.

Will need to go through and rebase whole stack because of various ESLint issues which didn't seem to surface when I was running yarn eslint:all locally.

move changes to stripMemberPermissionsFromRawThreadInfo into this diff

This revision is now accepted and ready to land.Jul 18 2024, 10:14 AM
This revision was landed with ongoing or failed builds.Jul 18 2024, 2:17 PM
This revision was automatically updated to reflect the committed changes.