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)
Tue, Dec 24, 6:22 AM
Unknown Object (File)
Mon, Dec 9, 6:48 AM
Unknown Object (File)
Fri, Dec 6, 10:55 AM
Unknown Object (File)
Nov 23 2024, 5:21 PM
Unknown Object (File)
Nov 23 2024, 1:55 PM
Unknown Object (File)
Nov 22 2024, 7:15 AM
Unknown Object (File)
Nov 22 2024, 7:07 AM
Unknown Object (File)
Nov 22 2024, 7:02 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