Files
gristlabs_grist-core/app/server/lib
Jarosław Sadziński 629fcccd5a (core) Adding /webhooks endpoint
Summary:
- New /webhooks event that lists all webhooks in a document (available for owners),
- Monitoring webhooks usage and saving it in memory or Redis,
- Loosening _usubscribe API endpoint, so that the information returned from the /webhook endpoint is enough to unsubscribe,
- Owners can remove webhook without the unsubscribe key.

The endpoint lists all webhooks that are registered in a document, not just webhooks from a single table.
There are two status fields. First for the webhook, second for the last request attempt.
Webhook can have 5 statuses: 'idle', 'sending', 'retrying', 'postponed', 'error', which roughly describes what the
sendLoop is currently doing. The 'error' status describes a situation when all request attempts failed and the queue needs
to be drained, so some requests were dropped.

The last request status can only be: 'success', 'failure' or 'rejected'. Rejected means that the last batch was dropped because the
queue was too long.

Test Plan: New and updated tests

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3727
2022-12-13 22:46:40 +01:00
..
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-12-13 22:46:40 +01:00
2022-09-29 18:02:09 +02:00
2022-05-27 22:19:17 -04:00
2022-12-13 22:46:40 +01:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-09-14 14:55:44 -04:00
2022-09-14 14:55:44 -04:00
2022-07-04 10:42:40 -04:00
2022-06-17 21:53:20 +02:00
2022-05-18 08:02:32 -07:00
2022-07-04 10:42:40 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2022-04-01 15:24:19 -07:00
2022-07-04 10:42:40 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-08-25 12:38:36 -07:00
2022-04-27 22:21:55 +02:00
2022-12-13 22:46:40 +01:00