Closed Bug 781166 Opened 12 years ago Closed 8 years ago

Support webhooks for document change notifications

Categories

(developer.mozilla.org Graveyard :: Editing, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lorchard, Unassigned)

Details

It would be useful to support webhooks for change notifications. For example, other Mozilla sites (eg. dev hub) want to maintain local mirrors of MDN-managed content wrapped in their own respective site chrome

For webhooks, support a list of URLs associated with each document. When the document is changed, a POST request with details about the change is sent to each of the URLs. As an example, github supports webhooks like so:

    https://help.github.com/articles/post-receive-hooks/

Some notes & concerns:

* Webhooks should ideally be processed in an offline queue (ie. Celery), otherwise the response time of editing the page will be tied to the response times of all the webhooks attached.

* It could be handy to allow recursive webhooks. That is, attach a single webhook to /CSS and opt to receive notifications for /CSS/color, /CSS/animation, and /CSS/height. This could be troublesome if someone attaches a webhook to /, though.

* Who is allowed to attach webhooks? Anyone, to any document? Should we limit the # of webhooks any given user can have in use?
Priority: -- → P3
Component: Docs Platform → Editing
No longer blocks: 756266
If you have an active need for this feature, re-open with your use case.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.