Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Ability to filter event based on object status #14

Closed
minyan-gu opened this issue Jul 24, 2019 · 3 comments
Closed

[FR] Ability to filter event based on object status #14

minyan-gu opened this issue Jul 24, 2019 · 3 comments

Comments

@minyan-gu
Copy link

minyan-gu commented Jul 24, 2019

Craft 3.2 autosave fires many events and majority of them I don't care at webhook level, since these events are generated from Draft/Revision objects.

It will be good to add a filter option on event's entry fields, e.g. isNew, isDraft, isRevision
For our use case, we only want the webhook make a request when the entry contains below field values:

"isDraft": false
"isRevision": false

@brandonkelly

@brandonkelly
Copy link
Member

We just released Webhooks 2.1.0 with this:

Event Filters

@minyan-gu
Copy link
Author

This is PERFECT!! Thank you Brandon for quickly adding this new feature to resolve our issue with craft 3.2 autosave, much appreciated!

@isjackwild
Copy link

This is super useful! However — what does the dot in the middle mean? I understand the tick and the cross but the dot is a bit of a mystery ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants