Skip to content

feat(integrations): bulk contact push and pull#4645

Draft
miguelpeixe wants to merge 25 commits into
trunkfrom
feat/bulk-contact-push
Draft

feat(integrations): bulk contact push and pull#4645
miguelpeixe wants to merge 25 commits into
trunkfrom
feat/bulk-contact-push

Conversation

@miguelpeixe
Copy link
Copy Markdown
Member

All Submissions:

Changes proposed in this Pull Request:

Closes # .

How to test the changes in this Pull Request:

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

- Fix has_pending_retries() to fetch all pending actions (per_page -1)
- Fix stale pull not enqueueing for batch on failure
- Add pull_sync() error return for cron fallback
- Update pull_sync docblock to match behavior
- Add deactivation hook and NEWSPACK_CRON_DISABLE support
- Only enqueue for pull when not stale; stale failures fall back to queue
Avoids N*M calls to get_contact_data/apply_filters when N users and M
integrations are active. Also passes full contact data in the
newspack_sync_contact_failed action for consistency with the
single-contact path.
@miguelpeixe miguelpeixe force-pushed the feat/bulk-contact-push branch from aab8695 to 3ad8b37 Compare April 8, 2026 13:59
@miguelpeixe miguelpeixe changed the base branch from trunk to feat/integrations-contact-cron April 8, 2026 14:00
@miguelpeixe miguelpeixe changed the title feat(integrations): bulk contact push feat(integrations): bulk contact push and pull Apr 8, 2026
Base automatically changed from feat/integrations-contact-cron to trunk April 22, 2026 14:37
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.

1 participant