HomePhabricator
Diffusion Comm a1a0c0204ba7

[lib] Introduce `patchRoleInfoWithSpecialRole(RoleInfo): RoleInfo`

Description

[lib] Introduce patchRoleInfoWithSpecialRole(RoleInfo): RoleInfo

Summary:
This utility function will be consumed by native and web migration to set the specialRole field for existing threads in the thread store.

Created separate diffs and unit tests for this function so I could test in lightweight way before testing migration which is more heavy weight

Test Plan: Unit tests

Reviewers: tomek, ginsu

Reviewed By: ginsu

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D11055

Details

Provenance
atulAuthored on Feb 13 2024, 11:23 AM
Reviewer
ginsu
Differential Revision
D11055: [lib] Introduce `patchRoleInfoWithSpecialRole(RoleInfo): RoleInfo`
Parents
rCOMM787d2ea5043e: [lib] introduce barebones community types
Branches
Unknown
Tags
Unknown