Page MenuHomePhabricator

[lib] Move `stripPermissionsFromMemberInfo` out of `...-types.js` file
ClosedPublic

Authored by atul on Jul 15 2024, 12:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 3, 9:10 PM
Unknown Object (File)
Fri, Aug 30, 5:51 PM
Unknown Object (File)
Fri, Aug 30, 8:36 AM
Unknown Object (File)
Tue, Aug 27, 11:09 PM
Unknown Object (File)
Mon, Aug 26, 6:41 PM
Unknown Object (File)
Mon, Aug 26, 2:37 AM
Unknown Object (File)
Sun, Aug 25, 11:42 PM
Unknown Object (File)
Fri, Aug 16, 2:45 AM
Subscribers
None

Details

Summary

We're going to create some "higher order" utility functions using stripPermissionsFromMemberInfo, so figured it would make sense to pull out of types file and into its own utility file.

For context, we're going to want to mirror the utility files in special-roles.js where we can patch RawThreadInfo and RawThreadInfos all in one go. This will make the changes to rawThreadInfoFromServerThreadInfo and the client migrations easier.


Depends on D12755

Test Plan

This is just a move diff, unit tests still pass. Note: There's still a validator unit test that is expected to fail. Going to address that now that flow stuff is reolved.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 15 2024, 12:22 PM
Harbormaster failed remote builds in B30337: Diff 42299!
atul requested review of this revision.Jul 15 2024, 12:24 PM
ashoat requested changes to this revision.Jul 17 2024, 12:08 PM

CI issues – can you please resolve before asking for review again?

This revision now requires changes to proceed.Jul 17 2024, 12:08 PM

Actually it seems to be explained in the Test Plan:

This is just a move diff, unit tests still pass. Note: There's still a validator unit test that is expected to fail. Going to address that now that flow stuff is reolved.

Looks like it's addressed in D12758

This revision is now accepted and ready to land.Jul 17 2024, 12:10 PM

cherry-pick and land, validator test should pass now

Ran yarn eslint:all, yarn flow:all, and yarn jest:all locally and confirmed that they all passed without issue. Will wait for ESLint & Flow & Jest workflow to pass before landing.

This revision was landed with ongoing or failed builds.Jul 17 2024, 2:05 PM
This revision was automatically updated to reflect the committed changes.