craftcms / craftcms/webhooks

Hook fires once for every field within the Entry

Open
#96 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
84
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Description

Hook will fire once for every type of field contained within the Entry.

Steps to reproduce
  1. Sender class : craft\elements\Entry
  2. Event name : afterSave
  3. Filtered out drafts, revisions, propagations
  4. Debounce key (doesn't matter, but setting it as event.sender.uri does bring it down from "a lot" to 2 since the uri is NULL)
Additional info
  • Craft version: 5.4.5.1
  • PHP version: 8.3.4
  • Database driver & version: MariaDB 10.11.9
  • Plugins & versions:
    • Neo 5.2.7
    • Webhooks 3.1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the afterSave event handling for craft\elements\Entry and reproduce the report with the listed Craft, PHP, MariaDB, Neo, and Webhooks versions. Verify how many times the hook fires for a single Entry and whether filtering drafts, revisions, and propagations changes that count; done means the event fires once per Entry rather than once per field.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.