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)
Wed, Nov 20, 5:36 PM
Unknown Object (File)
Fri, Nov 8, 12:04 AM
Unknown Object (File)
Thu, Nov 7, 5:37 PM
Unknown Object (File)
Thu, Nov 7, 2:54 AM
Unknown Object (File)
Oct 15 2024, 7:48 PM
Unknown Object (File)
Oct 15 2024, 7:48 PM
Unknown Object (File)
Oct 15 2024, 7:48 PM
Unknown Object (File)
Oct 15 2024, 7:48 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.