Skip to content

only call EVENT_BEFORE_PROCESS_FEED once per page, as before#1628

Merged
angrybrad merged 3 commits into5.xfrom
bugfix/1619-batched-job-and-before-process-feed-event
Aug 10, 2025
Merged

only call EVENT_BEFORE_PROCESS_FEED once per page, as before#1628
angrybrad merged 3 commits into5.xfrom
bugfix/1619-batched-job-and-before-process-feed-event

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Apr 10, 2025

Description

Fixes a bug where EVENT_BEFORE_PROCESS_FEED was called once per batch and not once per page as intended and as it was before we introduced the BaseBatchedJob to Feed Me.

  • Process::EVENT_BEFORE_PROCESS_FEED is called once per page (if there’s no pagination, then there’s one page, so it’s called once) - that was also the case before we implemented BaseBatchedJob
  • Process::EVENT_AFTER_PROCESS_FEED is called once for the entire import (regardless of pagination)
  • Process::EVENT_STEP_BEFORE_PARSE_CONTENT is called for every primary element that was found in the feed’s data
  • DataTypes::EVENT_BEFORE_FETCH_FEED, DataTypes::EVENT_AFTER_FETCH_FEED, DataTypes::EVENT_AFTER_PARSE_FEED are called whenever feed data needs to be retrieved, which means as minimum once per batch

Related issues

#1619

@i-just i-just requested a review from angrybrad as a code owner April 10, 2025 12:34
@urbantrout
Copy link
Contributor

I am looking forward to this PR being merged!

@angrybrad angrybrad merged commit 361e45c into 5.x Aug 10, 2025
6 checks passed
@angrybrad angrybrad deleted the bugfix/1619-batched-job-and-before-process-feed-event branch August 10, 2025 04:05
angrybrad added a commit that referenced this pull request Aug 10, 2025
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

Successfully merging this pull request may close these issues.

3 participants