Repository navigation
Webhooks - #2336
Webhooks#2336
Conversation
|
@matmair I guess now that the plugins architecture is merged, now we should look at this? Looking through the code here, it appears that this is somewhat "separate" from the plugin architecture? Unless I'm reading this wrong (and please correct me if so): I would like to see the web-hook system be a sub-component of the plugin architecture - each "plugin" can accept custom web hooks to perform actions. Can you run me through your thinking here? Does it line up with above? |
|
@SchrodingersGat it is not depended on the plugin system but receiving webhooks without the plugin system dors not really make sense as the hook should trigger some custom code which should be in a plugin or something similar. |
| HMAC = 2 | ||
|
|
||
|
|
||
| class WebhookEndpoint(models.Model): |
There was a problem hiding this comment.
Should the "WebhookEndpoint" have a foreignkey relation to "PluginConfig"? This way, when the plugin is uninstalled, so are the corresponding endpoints. Also, it would enable plugins to keep track of their own endpoints?
| help_text=_('Is this webhook active') | ||
| ) | ||
|
|
||
| user = models.ForeignKey( |
There was a problem hiding this comment.
Is the "user" the latest user to make use of the endpoint, or the only user who is allowed to use it
|
@matmair so if I understand correctly:
|
|
@matmair I'm going to merge this now so we can have some time to play around with it before the 0.6.0 release |
Fixes #2036
This is in preparation for discussion and merge after #2074 is done.
See #2049
This PR adds a Webhook receiver under the
/api/webhook/<endpoint-id>/URL. The view is designed to be inherited so each step is split into actionable functions. While there is the possibility for the (admin) user to create webhook-endpoints this is in preparation for integrating 3rd party software via plugins.