Add main network WPCOM blog ID to sync functions#15056
Conversation
This is an automated check which relies on |
4d8710a to
26208a9
Compare
jeherve
left a comment
There was a problem hiding this comment.
Tests appear to be failing right now:
PHP Fatal error: Call to undefined method Automattic\Jetpack\Sync\Modules\Full_Sync_Immediately::get_enqueue_status() in /tmp/wordpress-master/src/wp-content/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-full.php on line 345
|
@bisko I just had the thought that we should move this out of multisite callables, and always set this value. The reason is that some sites might migrate away from being a multisite and keep the same WPCOM blog ID (for example, every site that migrates to Atomic) and we need to overwrite the multisite callable option with This also means we need to trigger a full reindex if we see that the site is no longer part of a multisite - so, if |
mdbitz
left a comment
There was a problem hiding this comment.
Testing shows this is returning the correct value on multi-sites, however based on comments and consistency in other functions we need to update the single site behavior so it returns the WP.com ID and not false.
This test seems to be failing locally too with a different error message, probably due to environment configuration. It's also failing when trying it locally on the |
…ster now that the tests are re-enabled. Added to backlog to revise.
existing tests were failing, now marked as skipped until they can be revised.
mdbitz
left a comment
There was a problem hiding this comment.
Verified Changes that main blog_id is returned and test Suite is executed.
* Initial changelog entry * Changelog: add #14904 * Changelog: add #14910 * Changelog: add #14913 * Changelog: add #14916 * Changelog: add #14922 * Changelog: add #14924 * Changelog: add #14925 * Changelog: add #14928 * Changelog: add #14840 * Changelog: add #14841 * Changelog: add #14842 * Changelog: add #14826 * Changelog: add #14835 * Changelog: add #14859 * Changelog: add #14884 * Changelog: add #14888 * Changelog: add #14817 * Changelog: add #14814 * Changelog: add #14819 * Changelog;: add #14797 * Changelog: add #14798 * Changelog: add #14802 * Changelog: add #13676 * Changelog: add #13744 * Changelog: add #13777 * Changelog: add #14446 * Changelog: add #14739 * Changelog: add #14770 * Changelog: add #14784 * Changelog: add #14897 * Changelog: add #14898 * Changelog: add #14968 * Changelog: add #14985 * Changelog: add #15044 * Changelog: add #15052 * Update to remove Podcast since it remains in Beta * Changelog: add #14803 * Changelog: add #15028 * Changelog: add #15065 * Changelog:add #14886 * Changelog: add #15118 * Changelog: add #14990 * Changelog: add #14528 * Changelog: add #15120 * Changelog: add #15126 * Changelog: add #15049 * Chanegelog: add #14852 * Changelog: add #15090 * Changelog: add #15138 * Changelog: add #15124 * Changelog:add #15055 * Changelog: add #15017 * Changelog: add #15109 * Changelog: add #15145 * Changelog:add #15096 * Changelog:add #15153 * Changelog: add #15133 * Changelog: add #14960 * Changelog: add #15127 * Changelog: add #15056 * Copy current changelog to changelog archive. * Clarify changelog description
Syncs the WPCOM ID of the main site in a multisite network so that we can collate documents from the same network in the ES Reader index.
Changes proposed in this Pull Request: