Page MenuHomePhabricator

[keyserver/lib] Introduce the thread actions, endpoints, and responders for deleting a custom role
ClosedPublic

Authored by rohan on Jul 26 2023, 8:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 9:53 AM
Unknown Object (File)
Sat, Nov 23, 9:52 AM
Unknown Object (File)
Sat, Nov 9, 11:40 PM
Unknown Object (File)
Sat, Nov 9, 11:24 PM
Unknown Object (File)
Sat, Nov 9, 10:35 PM
Unknown Object (File)
Sat, Nov 9, 4:19 PM
Unknown Object (File)
Thu, Nov 7, 6:00 PM
Unknown Object (File)
Sun, Nov 3, 6:50 AM
Subscribers

Details

Summary

Split into separate diffs from D8574, this diff handles introducing the actions, responders, and endpoints for deleting a custom role. This, alongside the core delete function from D8574 will be all
of the back-end needed for deleting roles.

Depends on D8574

Test Plan

This will be tested with the client-side logic introduced in the next diff (split out from D8574)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

rohan requested review of this revision.Jul 26 2023, 8:40 AM

Didn't look at implementation of deleteRole(...), but this looks correct assuming that deleteRole(...) is.

This revision is now accepted and ready to land.Jul 26 2023, 11:58 AM
keyserver/src/responders/thread-responders.js
395

These guys are really easy to write unit tests for.

They may not be particularly useful, but maybe you'll get more familiar w/ Jest and writing tests will be more approachable in the future? idk

This revision was landed with ongoing or failed builds.Jul 31 2023, 6:15 PM
This revision was automatically updated to reflect the committed changes.