Skip to content

Stop pending webhook delivery after the endpoint is disabled #15

Open

Description

@LunaStev

Problem

Publish checks endpoint.Enabled, but deliver reloads the endpoint without checking Enabled or whether its event is still subscribed. Disabling a webhook does not stop already queued or deferred events.

Evidence / regression scenario

A fake HTTP transport received one request after the endpoint was saved with Enabled=false and ProcessPending was run.

Code references

Audit baseline: 50eb207.

Completion criteria

  • Recheck the current enabled state and subscribed event types immediately before queued/deferred transmission.
  • Define whether pending deliveries become paused or cancelled; make the status visible and ensure re-enabling does not unexpectedly replay cancelled events.
  • Test publish -> disable -> process and publish -> remove event subscription -> process with an in-memory HTTP transport.
  • Keep the explicit user-requested TestEndpoint behavior documented separately from automatic queue delivery.

Scope and dependencies

Difficulty: medium.

No real Discord or generic endpoint calls in tests; preserve owner/platform scope checks.

Backlog index: #12. Keep the change limited to this issue and include focused verification in the pull request.

Activity

  1. added
    bug
    help wanted
    webhooks
    priority high
    needs testing
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedneeds testingpriority highwebhooks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions