Page MenuHomePhabricator

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

Authored by atul on Feb 13 2024, 12:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 8 2024, 11:20 PM
Unknown Object (File)
Apr 8 2024, 11:20 PM
Unknown Object (File)
Apr 8 2024, 11:20 PM
Unknown Object (File)
Apr 8 2024, 11:20 PM
Unknown Object (File)
Feb 23 2024, 10:50 PM
Unknown Object (File)
Feb 23 2024, 3:43 PM
Unknown Object (File)
Feb 21 2024, 7:32 PM
Unknown Object (File)
Feb 19 2024, 1:39 PM
Subscribers

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/shared/thread-utils.js
1086–1091 ↗(On Diff #37039)

Previously this got introduced in D10116

atul published this revision for review.Feb 13 2024, 12:37 PM
atul retitled this revision from [lib] Introduce `patchRoleInfoWithSpecialRole` to [lib] Introduce `patchRoleInfoWithSpecialRole(RoleInfo): RoleInfo`.
This revision is now accepted and ready to land.Feb 13 2024, 12:55 PM