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
Unknown Object (File)
Wed, May 15, 12:58 PM
Unknown Object (File)
Thu, May 9, 3:16 PM
Unknown Object (File)
Apr 8 2024, 6:03 PM
Unknown Object (File)
Apr 8 2024, 6:03 PM
Unknown Object (File)
Apr 8 2024, 6:00 PM
Unknown Object (File)
Apr 4 2024, 2:27 AM
Unknown Object (File)
Feb 21 2024, 4:12 AM
Unknown Object (File)
Feb 21 2024, 12:19 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