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 23, 5:21 PM
Unknown Object (File)
Sat, Nov 23, 1:55 PM
Unknown Object (File)
Fri, Nov 22, 7:15 AM
Unknown Object (File)
Fri, Nov 22, 7:07 AM
Unknown Object (File)
Fri, Nov 22, 7:02 AM
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
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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