Page MenuHomePhabricator

[lib] Introduce `stripMemberPermissionsFromRawThreadInfos`
ClosedPublic

Authored by atul on Jul 17 2024, 3:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 11:46 AM
Unknown Object (File)
Tue, Nov 26, 9:40 AM
Unknown Object (File)
Tue, Nov 26, 9:39 AM
Unknown Object (File)
Tue, Nov 26, 7:34 AM
Unknown Object (File)
Wed, Nov 13, 4:05 PM
Unknown Object (File)
Sat, Nov 9, 8:51 AM
Unknown Object (File)
Fri, Nov 8, 6:14 AM
Unknown Object (File)
Fri, Nov 8, 5:20 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
Branch
arcpatch-D12788 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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.