-
Notifications
You must be signed in to change notification settings - Fork 800
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
Connection: Unset jetpack conection active plugins from sync callable checksum when sync is not active #39098
Conversation
…sync gets activated.
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! |
…plugins-callable-checksum-when-fallback-wpcom
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.
Hi @darssen 👋
The checksum value got removed, and the plugin list got synced as expected 👍
It took a few minutes though for Sync to get it synced, and the site is empty.
Is it likely to increase on huge sites which are constantly syncing something, might it end up in the end of the queue?
Or for example a site that activates Jetpack for the first time, and has a lot to sync.
We could try adding additional check, and run self::update_active_plugins_wpcom_no_sync_fallback()
if Sync is active, but jetpack_connection_active_plugins
checksum is missing.
That way we'll know that the site underwent the "no-sync -> has-sync" plugin activation, and there's no shame in sending some critical data right away.
Co-authored-by: Sergey Mitroshin <[email protected]>
The problem with callable is that they normally are only sent when there is other information that needs to be synced too. So if when testing you just waited for it, it would take a little bit more time. Adding a post right away for example should speed up the process.
Since this is a fallback and the initial issue is a bit of an edge case, unless we observe there is an actual problem with the delay I would keep things as they are. |
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.
That all sounds great.
I think we're good to merge it then 👍
… checksum when sync is not active (#39098) * Remove the checksum for active plugins, so it gets recalculated when sync gets activated. * changelog * Version bump * Version bump * Update projects/packages/connection/src/class-plugin-storage.php Co-authored-by: Sergey Mitroshin <[email protected]> --------- Co-authored-by: Sergey Mitroshin <[email protected]>
Fixes https://github.com/Automattic/vulcan/issues/469
Proposed changes:
jetpack_connection_active_plugins
option gets changed in wpcom via the no sync fallback. This way we ensure that if/when sync gets re-enabled we send the callable no matter.Other information:
Jetpack product discussion
https://github.com/Automattic/vulcan/issues/469
Does this pull request change what data or activity we track or use?
Testing instructions:
Check steps in https://github.com/Automattic/vulcan/issues/469 and check that we get now consistent values.