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)
Apr 7 2024, 8:15 PM
Unknown Object (File)
Apr 7 2024, 8:15 PM
Unknown Object (File)
Apr 7 2024, 8:15 PM
Unknown Object (File)
Apr 7 2024, 8:13 PM
Unknown Object (File)
Apr 7 2024, 8:13 PM
Unknown Object (File)
Apr 6 2024, 11:09 PM
Unknown Object (File)
Apr 4 2024, 9:53 AM
Unknown Object (File)
Mar 12 2024, 10:53 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.