Page MenuHomePhabricator

[lib] Make `specialRoles` field of `RoleInfo` required
AcceptedPublic

Authored by atul on Mar 5 2024, 9:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 12:18 AM
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)
Mar 29 2024, 5:55 PM
Unknown Object (File)
Mar 17 2024, 8:51 AM
Unknown Object (File)
Mar 16 2024, 11:14 PM
Subscribers

Details

Summary

We now expect clients to get RoleInfos with the specialRole field included. We make the field required (it's still ?SpecialRole, so can be set to null) and make the necessary flow changes.


Depends on D11248

Test Plan

flow + verifying that clients recieve specialRole field in RoleInfo from keyserver responses.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

fix else case of patchRoleInfoWithSpecialRole

atul requested review of this revision.Mar 5 2024, 9:51 PM
tomek added inline comments.
lib/types/minimally-encoded-thread-permissions-types.js
37

Maybe add an explicit null?

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