-
Notifications
You must be signed in to change notification settings - Fork 3
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
Assorted changes #94
Assorted changes #94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working great! The only issue I see is that when running the backfill script, it's fetching users only who registered on the site you're running the script on (so actual customer or subscriber users, not network_reader users). These users won't have the newspack_remote_site
user meta, as this meta is only populated on network_reader users. So we'll need to manually add the network_registration_site
meta when syncing to the ESP and assume that the registration site is the current site URL.
@dkoo –
That's expected, the "original" users never have the
Precisely! This is how this plugin worked all the time. |
Got it, so just to clarify: the backfill script in this PR is only concerned with backfilling registration events for "original" user accounts. So the |
That's correct. The backfill script in this PR is supposed to be ran on each network site, and then the events will be synchronised. |
🎉 This PR is included in version 1.8.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
data-integrity-improvements
branch)(Note: this is a part of integrating the changes from the
data-integrity-improvements
branch (#89))How to test the changes in this Pull Request:
NEWSPACK_NETWORK_EXPERIMENTAL_AUDITING_FEATURES
environment variable totrue
, visit Newspack Network -> Nodes and the admin panel and observe there's a "Synchronizable Users" column presentwp newspack-network data-backfill all --start=2020-01-01 --end=2024-12-31 --live
user_registered
event has the first and last name in the event dataOther information: