LiquidPlanner Classic Forum

Ask a Question
Back to All

Webhooks and Deleted Items

Posted on behalf of Anderson Arboleya. Original posting date 2014-09-12.

Webhooks are not notifying me of deletion of subitens, when I delete some item that has subitems.

For instance imagine this structure:

MyClient
└── MyProject
└──── MyTask

If I delete MyClient, I expect 3 hooks to be fired with "change_type=delete":

  • 1 for MyClient
  • 1 for MyProject
  • 1 for MyTask

But in fact just the delete item - in this case the Project - get its hook properly fired. Is this the proper behavior?

I can workaround it and spread the deletions in cascade-style for the subitens, but it sounds a little weird to me, since I can listen for single Webhooks.

For instance, considering the Task WebHook as an example, it means the that Tasl Webhook is only fired when its deleted, but not when its parent item is deleted.

Looking forward to hear more about this.