Page MenuHomePhabricator

[keyserver] Update usage of threads.default_role in role-deleters.js
ClosedPublic

Authored by rohan on Nov 24 2023, 9:49 AM.
Tags
None
Referenced Files
F3174174: D9975.diff
Thu, Nov 7, 3:51 PM
Unknown Object (File)
Sat, Oct 26, 12:48 PM
Unknown Object (File)
Oct 2 2024, 4:13 AM
Unknown Object (File)
Oct 2 2024, 4:13 AM
Unknown Object (File)
Oct 2 2024, 4:13 AM
Unknown Object (File)
Oct 2 2024, 4:09 AM
Unknown Object (File)
Sep 24 2024, 8:15 AM
Unknown Object (File)
Aug 28 2024, 11:08 AM
Subscribers

Details

Summary

We need to get rid of usages of threads.default_role throughout the codebase so we can eventually drop the column.

This diff handles the usage in role-deleters.js

Existing code: Gets the default_role ID so we prevent it from being deleted (keyserver validation)

Depends on D9974

Addresses part of ENG-5833

Test Plan
  1. After updating the query, console.log the default role ID that is retrieved and make sure it corresponds to the correct role
  2. Make sure that even if the client could delete Members, the keyserver still blocks it

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable