-
Notifications
You must be signed in to change notification settings - Fork 7
feat: limit subscription purchase for user with network membership #126
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
feat: limit subscription purchase for user with network membership #126
Conversation
adekbadek
left a comment
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.
Can't test successfully – the subscription is still purchasable on the node site. Tracing the code, I see that it relies on the newspack_network_membership_plans option being set on the node site. In my setup, this option is only added on the hub site.
…cription-purchase
Maybe you tried to buy before the new plan was pulled to the Node? I updated the testing instructions with more details to make sure the info about all Memberhip Plans are populated before you try to buy. It's basically what was tested on #124 |
|
Ah, I see. I misread the instructions for #124 and thought the After updating the membership plan on the node and synchronizing the events, the Can the migration (populating |
|
Note: handling of non-logged in users should also be added (with email-lookup), similar to Automattic/newspack-blocks#1816. |
Yes, a backfill of membership plans and also all the woo data will be necessary. The backfillers added here should address them all. But yes, it is a step we'll need to go through. Maybe we can work on that idea to have a central backfiller command, from the Hub, that will remotely reach each node.. this would save some steps. But in any case, I'm happy to test and run it all |
|
@adekbadek here's an idea We bring back 4acd965, leaving the current approach alive. We cherry pick only the addition of the user meta from here And then we merge and release. Then we'll have the current implementation preserved, and we'll start to propagate the new events (but not really use them yet) Then we have a full release cycle to run all the backfillers without any rush. Then in the next release we merge the new functionalities that rely on these new events. wdyt? |
|
That seems pretty complicated. Alternatively, can a site trigger an update to |
|
Closing in favor of #137 |
Follow instructions at #122