-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix(sync): use newspack_esp_sync_contact
filter for the network_registration_site
field
#132
Conversation
…gistration_site`field
Co-authored-by: leogermani <leogermani@automattic.com>
@leogermani Do you want to take over this PR to look at the |
Yes I want to test it in more depth |
@miguelpeixe I've tested and successfully removed that filter that weren't doing anything. I've updated the test instructions if you want to have a look |
Tested well for me. |
# [2.2.0-alpha.1](v2.1.0...v2.2.0-alpha.1) (2024-09-20) ### Bug Fixes * **sync:** use `newspack_esp_sync_contact` filter for the `network_registration_site` field ([#132](#132)) ([3755d07](3755d07)) ### Features * subscriptions and memberships sync reimplementation ([#122](#122)) ([04fc845](04fc845))
🎉 This PR is included in version 2.2.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Automattic/newspack-plugin#3359 introduced a new
newspack_esp_sync_contact
filter, which should be used for any contact data manipulation during a sync.This change also removes an unnecessary hook that had no effect.
How to test
define( 'NEWSPACK_ALLOW_READER_SYNC', true );
trunk
define( 'NEWSPACK_LOG_LEVEL', 3);
to be able to see ESP sync logsWatch the logs
tail -f /tmp/2024-mm-dd--newspack_esp_sync
Visit the Node site as an anonymous visitor and register
Confirm you see a
RAS Reader registration
log entry and the data includes the "Registration Site" with the Node urlWait for the event to propagate to the Hub, (or run
wp newspack-network process-webhooks
)Confirm you now see a
RAS Newspack Network: User propagated from another site in the network.
in the Hub's logs, and that the data includes the "Registration Site" with the Node urlNow as an anonymous reader visit the Hub and register
Make sure you see the
RAS Reader registration
event on the Hub's log, with "Registration Site"Go to the Node and Pull the latest events in Newspack Network > Node Settings
Confirrm you see the
RAS Newspack Network: User propagated from another site in the network.
in the Node's logs, with the "Registration Site" filled