I noticed an issue with the consistency of data arriving via the webhook functionality. Normally, when an entity is deleted, it will post the “deleted” event correctly, but I found that it won’t post the “deleted” event in case the delete is brought about by a cascaded operation.
Steps to reproduce:
- Set up webhook for license.created, license.deleted, activation.created, activation.deleted
- Create License
- Activate License
- Delete License
As the license is deleted, it appears that activations depending on the license will also be deleted, however silently.
Expected Behaviour
4 webhooks posted. The order between the deleted events is not critical, but the activation.deleted webhook being posted first is ideal.
- license.created
- activation.created
- activation.deleted
- license.deleted
Actual Behaviour
3 webhooks posted, with the activation.deleted webhook missing.
- license.created
- activation.created
- license.deleted