Webhook: issue notifying on task updated

Hi everyone,

I am trying to make it so that if I create/edit/delete a task, my partner gets notified in our private chat system (ie “A new task has been updated!”)

Now the issue:
My understanding is that, because the editor autosaves the task all the time while you type, the task.updated event webhook is really unreliable (ie you would get A LOT of notifications while the task has been edited).

I am trying to figure out what would be the best way to handle it. I initially thought of doing some form of diff, but that also doesn’t seem viable.

The cleanest option would probably be disabling auto-save, but perhaps I am missing a more obvious way of handling this.

Any input?

Not sure how feasable that is with the way you’re doing notifications, but the way to go here would be to “buffer” the notification for something like one minute - basically each edit has a delay of one minute, if another edit happens within that minute, the prevous pending notification gets cancelled out and a new one scheduled and so on. This is how Vikunja handles this internally for the task comment notifications.

Oh right, that makes sense, I’ll give it a go

I use iOS shortcuts with an https call (via scriptable) for most vikunja tasks, and can take the input/output values to send to ntfy, built in action button responses to run a shortcut or complete an action, I can make a post about it if that would help