We delete webhooks in a couple places and have some ZK state that we don't currently clean up consistently, so this fixes that. This doesn't affect prod much, since we don't delete webhooks that often, but dev had a pretty massive number of orphaned webhook state.
Other than the first commit bug fix, there's some pretty serious refactoring to WebhookError, which might not have been strictly necessary, but the single test it had bugged me and I wanted to use the ZK utils class there, too.
We delete webhooks in a couple places and have some ZK state that we don't currently clean up consistently, so this fixes that. This doesn't affect prod much, since we don't delete webhooks that often, but dev had a pretty massive number of orphaned webhook state.
Other than the first commit bug fix, there's some pretty serious refactoring to
WebhookError
, which might not have been strictly necessary, but the single test it had bugged me and I wanted to use the ZK utils class there, too.