Page MenuHomePhabricator

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

Authored by atul on Mar 5 2024, 9:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 1:10 AM
Unknown Object (File)
Mon, Dec 16, 10:55 AM
Unknown Object (File)
Mon, Dec 16, 7:32 AM
Unknown Object (File)
Sat, Dec 14, 3:37 PM
Unknown Object (File)
Sat, Dec 14, 2:15 PM
Unknown Object (File)
Mon, Dec 9, 7:59 PM
Unknown Object (File)
Thu, Dec 5, 3:33 AM
Unknown Object (File)
Mon, Dec 2, 9:29 PM
Subscribers

Details

Summary

We update the existing patchRoleInfoWithSpecialRole utility used in the client migration to strip out the isDefault field from RoleInfo. It makes sense to include specialRole and exclude isDefault at the same time.


Depends on D11253

Test Plan

Re-run migration on web and native

  1. Make sure all RoleInfos have the specialRole field included (can be null, but must be included)
  2. Make sure all RoleInfos have the isDefault field removed.
  3. Look at keyserver logIn response payload and ensure that specialRole IS included and isDefault ISN'T included

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Mar 5 2024, 10:00 PM

This migration wasn't already applied, right?

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

This migration wasn't already applied, right?

No, it's consumed by migration D11099/D11188 which haven't been landed yet. Those will be landed alongside "flip the switch" diff after re-arranging stack.

This revision was landed with ongoing or failed builds.Mar 20 2024, 11:03 AM
This revision was automatically updated to reflect the committed changes.