Page MenuHomePhabricator

[lib] Introduce `stripMemberPermissionsFromRawThreadInfos`
ClosedPublic

Authored by atul on Jul 17 2024, 3:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 6, 5:48 PM
Unknown Object (File)
Fri, Sep 6, 3:01 PM
Unknown Object (File)
Tue, Sep 3, 10:09 PM
Unknown Object (File)
Sun, Sep 1, 12:27 PM
Unknown Object (File)
Sat, Aug 31, 2:15 AM
Unknown Object (File)
Fri, Aug 30, 9:52 PM
Unknown Object (File)
Fri, Aug 30, 8:32 PM
Unknown Object (File)
Fri, Aug 30, 11:53 AM
Subscribers
None

Details

Summary

This is the migrationFunc that will be consumed by createUpdateDBOpsForThreadStoreThreadInfos for the client migrations.


Depends on D12779

Test Plan

Included basic unit test. Will also be tested as part of native and web migrations.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Jul 17 2024, 3:51 PM
ashoat requested changes to this revision.Jul 18 2024, 12:04 PM
ashoat added inline comments.
lib/utils/member-info-utils.js
45 ↗(On Diff #42425)

I don't understand why this any-cast is necessary – isn't rawThreadInfo already a ThinRawThreadInfoWithPermissions?

Did you perhaps forget to remove the any-cast before diffing this up?

This revision now requires changes to proceed.Jul 18 2024, 12:04 PM

remove extraneous any-cast

Did you perhaps forget to remove the any-cast before diffing this up?

Yeah, I narrowed type of stripMemberPermissionsFromRawThreadInfos and should've removed any-cast after.

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

rebase BEFORE re-removing any-cast

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