HomePhabricator
Diffusion Comm d0acd7462955

[keyserver] Update `fetchRoles(threadID: string)` to fetch special_role

Description

[keyserver] Update fetchRoles(threadID: string) to fetch special_role

Summary:
We want to update code that fetches from threads or roles to appropriately also fetch roles.special_role so we can include it in the return object. For now, I will leave in the r.special_role = ${specialRoles.DEFAULT_ROLE} AS is_default since I'm intermediately leaving in the isDefault property in RoleInfo. Towards the end of the stack, I will remove this check alongside the property as mentioned in the Linear task.

This diff handles role-fetchers.js

Part of ENG-5993


Depends on D10969

Test Plan: Ran the query before and after to confirm the results are identical, except with the new special_role field

Reviewers: ginsu, tomek, rohan

Reviewed By: ginsu, tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D10106

Details

Provenance
atulAuthored on Feb 7 2024, 12:42 PM
Reviewer
ginsu
Differential Revision
D10106: [keyserver] Update `fetchRoles(threadID: string)` to fetch special_role
Parents
rCOMM1cb9081f4e66: [lib] Introduce `ServerLegacyRoleInfo`
Branches
Unknown
Tags
Unknown