Page MenuHomePhabricator

[lib] Remove `isDefault` field from `RoleInfo`
ClosedPublic

Authored by atul on Mar 5 2024, 9:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 9:17 AM
Unknown Object (File)
Sat, Nov 16, 6:52 AM
Unknown Object (File)
Mon, Nov 11, 3:32 AM
Unknown Object (File)
Sun, Nov 10, 7:36 AM
Unknown Object (File)
Sat, Nov 9, 7:08 PM
Unknown Object (File)
Fri, Nov 8, 8:44 AM
Unknown Object (File)
Thu, Nov 7, 7:34 PM
Unknown Object (File)
Thu, Nov 7, 2:54 AM
Subscribers

Details

Summary

We previously removed all usages of RoleInfo.isDefault on the native/web client, so we can safely remove it from RoleInfo.

As usual, there will be a native/web migration to go along with this change. Will actually update the existing specialRole migration in place since it makes sense to couple the inclusion of specialRole and exclusion of isDefault in a single pass.


Depends on D11252

Test Plan

flow + verified that RoleInfos sent from the keyserver have the isDefault field excluded.

Did a search through the codebase to ensure there were not any instances of isDefault that are relevant to changing this client type.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Mar 5 2024, 9:52 PM

Do we have a task for the migration?

This revision is now accepted and ready to land.Mar 6 2024, 4:23 AM

Do we have a task for the migration?

Migration will be handled by D11188 and D11099

This diff appears to have changed the behavior of rawThreadInfoFromServerThreadInfo even when !shouldIncludeSpecialRoleFieldInRoles... all clients that support minimally-encoded RawThreadInfos (basically all modern clients) are now getting the new format of RoleInfo, which they definitely don't support