Conversation
dkoo
left a comment
There was a problem hiding this comment.
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-improvementsbranch)(Note: this is a part of integrating the changes from the
data-integrity-improvementsbranch (#89))How to test the changes in this Pull Request:
NEWSPACK_NETWORK_EXPERIMENTAL_AUDITING_FEATURESenvironment 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 --liveuser_registeredevent has the first and last name in the event dataOther information: