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
F1779077: D8639.diff
Fri, May 17, 5:34 PM
Unknown Object (File)
Wed, May 15, 3:32 PM
Unknown Object (File)
Sun, May 5, 8:25 PM
Unknown Object (File)
Sun, May 5, 5:24 PM
Unknown Object (File)
Sun, May 5, 5:24 PM
Unknown Object (File)
Sun, May 5, 5:24 PM
Unknown Object (File)
Sun, May 5, 5:22 PM
Unknown Object (File)
Sun, May 5, 4:38 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #29061)

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.