diff --git a/projects/packages/scheduled-updates/changelog/add-scheduled-updates-sync-2 b/projects/packages/scheduled-updates/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..7a9b5a31ded76 --- /dev/null +++ b/projects/packages/scheduled-updates/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +Add a sync option where for scheduled updated. diff --git a/projects/packages/scheduled-updates/composer.json b/projects/packages/scheduled-updates/composer.json index a0f980c0f6e6f..2297363736c39 100644 --- a/projects/packages/scheduled-updates/composer.json +++ b/projects/packages/scheduled-updates/composer.json @@ -49,7 +49,7 @@ }, "autotagger": true, "branch-alias": { - "dev-trunk": "0.7.x-dev" + "dev-trunk": "0.8.x-dev" }, "textdomain": "jetpack-scheduled-updates", "version-constants": { diff --git a/projects/packages/scheduled-updates/src/class-scheduled-updates.php b/projects/packages/scheduled-updates/src/class-scheduled-updates.php index 760b3e0c18d47..4bdfce49e7ef8 100644 --- a/projects/packages/scheduled-updates/src/class-scheduled-updates.php +++ b/projects/packages/scheduled-updates/src/class-scheduled-updates.php @@ -20,7 +20,7 @@ class Scheduled_Updates { * * @var string */ - const PACKAGE_VERSION = '0.7.2'; + const PACKAGE_VERSION = '0.8.0-alpha'; /** * The cron event hook for the scheduled plugins update. @@ -53,6 +53,23 @@ public static function init() { add_filter( 'auto_update_plugin', array( __CLASS__, 'allowlist_scheduled_plugins' ), 10, 2 ); add_filter( 'plugin_auto_update_setting_html', array( __CLASS__, 'show_scheduled_updates' ), 10, 2 ); add_action( 'deleted_plugin', array( __CLASS__, 'deleted_plugin' ), 10, 2 ); + + // Update cron sync option after options update. + $callback = array( __CLASS__, 'update_option_cron' ); + + // Main cron saving. + add_action( 'add_option_cron', $callback ); + add_action( 'update_option_cron', $callback ); + + // Logs saving. + add_action( 'add_option_' . Scheduled_Updates_Logs::OPTION_NAME, $callback ); + add_action( 'update_option_' . Scheduled_Updates_Logs::OPTION_NAME, $callback ); + + // This is a temporary solution for backward compatibility. It will be removed in the future. + // It's needed to ensure that preexisting schedules are loaded into the sync option. + if ( false === get_option( self::PLUGIN_CRON_HOOK ) ) { + call_user_func( $callback ); + } } /** @@ -134,6 +151,31 @@ public static function delete_scheduled_update( $timestamp, $plugins ) { return wp_unschedule_event( $timestamp, self::PLUGIN_CRON_HOOK, $plugins, true ); } + /** + * Save the schedules for sync after cron option saving. + */ + public static function update_option_cron() { + $events = wp_get_scheduled_events( self::PLUGIN_CRON_HOOK ); + + foreach ( array_keys( $events ) as $schedule_id ) { + $events[ $schedule_id ]->schedule_id = $schedule_id; + + $status = self::get_scheduled_update_status( $schedule_id ); + + if ( ! $status ) { + $status = array( + 'last_run_timestamp' => null, + 'last_run_status' => null, + ); + } + + $events[ $schedule_id ]->last_run_timestamp = $status['last_run_timestamp']; + $events[ $schedule_id ]->last_run_status = $status['last_run_status']; + } + + update_option( self::PLUGIN_CRON_HOOK, $events ); + } + /** * Clear the cron cache. */ diff --git a/projects/packages/scheduled-updates/src/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-update-schedules.php b/projects/packages/scheduled-updates/src/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-update-schedules.php index be90fc9164086..189d972e7ca1f 100644 --- a/projects/packages/scheduled-updates/src/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-update-schedules.php +++ b/projects/packages/scheduled-updates/src/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-update-schedules.php @@ -260,6 +260,7 @@ public function create_item( $request ) { usort( $plugins, 'strnatcasecmp' ); $event = Scheduled_Updates::create_scheduled_update( $schedule['timestamp'], $schedule['interval'], $plugins ); + if ( is_wp_error( $event ) ) { return $event; } @@ -419,7 +420,11 @@ public function add_log( $request ) { $message = $request['message']; $context = $request['context']; - Scheduled_Updates_Logs::log( $schedule_id, $action, $message, $context ); + $log = Scheduled_Updates_Logs::log( $schedule_id, $action, $message, $context ); + + if ( is_wp_error( $log ) ) { + return new WP_Error( 'rest_invalid_schedule', __( 'The schedule could not be found.', 'jetpack-scheduled-updates' ), array( 'status' => 404 ) ); + } return rest_ensure_response( true ); } diff --git a/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php b/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php index d2535780e57f1..a179dde6b8fd3 100644 --- a/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php +++ b/projects/packages/scheduled-updates/tests/php/class-wpcom-rest-api-v2-endpoint-update-schedules-test.php @@ -146,13 +146,14 @@ public function test_get_items() { * @covers ::create_item */ public function test_create_item() { + $plugins = array( + 'custom-plugin/custom-plugin.php', + 'gutenberg/gutenberg.php', + ); $request = new WP_REST_Request( 'POST', '/wpcom/v2/update-schedules' ); $request->set_body_params( array( - 'plugins' => array( - 'custom-plugin/custom-plugin.php', - 'gutenberg/gutenberg.php', - ), + 'plugins' => $plugins, 'schedule' => array( 'timestamp' => strtotime( 'next Monday 8:00' ), 'interval' => 'weekly', @@ -181,13 +182,17 @@ public function test_create_item() { $this->assertSame( 200, $result->get_status() ); $this->assertSame( $schedule_id, $result->get_data() ); + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $sync_option ); + $this->assertIsObject( $sync_option[ $schedule_id ] ); + $this->assertSame( $plugins, $sync_option[ $schedule_id ]->args ); + $this->assertNull( $sync_option[ $schedule_id ]->last_run_timestamp ); + $this->assertNull( $sync_option[ $schedule_id ]->last_run_status ); + // Can't create a schedule for the same time again. $request->set_body_params( array( - 'plugins' => array( - 'custom-plugin/custom-plugin.php', - 'gutenberg/gutenberg.php', - ), + 'plugins' => $plugins, 'schedule' => array( 'timestamp' => strtotime( 'next Monday 8:00' ), 'interval' => 'weekly', @@ -201,6 +206,101 @@ public function test_create_item() { $this->assertSame( 'rest_forbidden', $result->get_data()['code'] ); } + /** + * Test create multiple item. + * + * @covers ::create_item + */ + public function test_create_multiple_item() { + $plugins = array( + 'custom-plugin/custom-plugin.php', + 'gutenberg/gutenberg.php', + ); + $request = new WP_REST_Request( 'POST', '/wpcom/v2/update-schedules' ); + $request->set_body_params( + array( + 'plugins' => $plugins, + 'schedule' => array( + 'timestamp' => strtotime( 'next Monday 8:00' ), + 'interval' => 'weekly', + ), + ) + ); + $schedule_id = Scheduled_Updates::generate_schedule_id( $request->get_body_params()['plugins'] ); + + // Successful request. + wp_set_current_user( $this->admin_id ); + $result = rest_do_request( $request ); + + $this->assertSame( 200, $result->get_status() ); + $this->assertSame( $schedule_id, $result->get_data() ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $sync_option ); + $this->assertIsObject( $sync_option[ $schedule_id ] ); + $this->assertSame( $plugins, $sync_option[ $schedule_id ]->args ); + $this->assertNull( $sync_option[ $schedule_id ]->last_run_timestamp ); + $this->assertNull( $sync_option[ $schedule_id ]->last_run_status ); + + $plugins[] = 'wp-test-plugin/wp-test-plugin.php'; + $request->set_body_params( + array( + 'plugins' => $plugins, + 'schedule' => array( + 'timestamp' => strtotime( 'next Monday 10:00' ), + 'interval' => 'weekly', + ), + ) + ); + + $schedule_id_2 = Scheduled_Updates::generate_schedule_id( $request->get_body_params()['plugins'] ); + $result = rest_do_request( $request ); + + $this->assertSame( 200, $result->get_status() ); + $this->assertSame( $schedule_id_2, $result->get_data() ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $sync_option ); + $this->assertIsObject( $sync_option[ $schedule_id ] ); + $this->assertIsObject( $sync_option[ $schedule_id_2 ] ); + } + + /** + * Temporary test to ensure backward compatibility. It will be removed in the future. + */ + public function test_init_backward_compatibility() { + $plugins = array( + 'custom-plugin/custom-plugin.php', + 'gutenberg/gutenberg.php', + ); + $request = new WP_REST_Request( 'POST', '/wpcom/v2/update-schedules' ); + $request->set_body_params( + array( + 'plugins' => $plugins, + 'schedule' => array( + 'timestamp' => strtotime( 'next Monday 8:00' ), + 'interval' => 'weekly', + ), + ) + ); + + wp_set_current_user( $this->admin_id ); + $result = rest_do_request( $request ); + + $this->assertSame( 200, $result->get_status() ); + + $pre_sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $pre_sync_option ); + + // Force deleting the option to test backward compatibility. + $this->assertTrue( delete_option( Scheduled_Updates::PLUGIN_CRON_HOOK ) ); + + // Simulate an init. + Scheduled_Updates::init(); + $post_sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertEquals( $pre_sync_option, $post_sync_option ); + } + /** * Can't have multiple schedules for the same time. * @@ -562,6 +662,11 @@ public function test_update_item() { $this->assertSame( 200, $result->get_status() ); $this->assertSame( $schedule_id, $result->get_data() ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $sync_option ); + $this->assertIsObject( $sync_option[ $schedule_id ] ); + $this->assertSame( $plugins, $sync_option[ $schedule_id ]->args ); } /** @@ -610,6 +715,13 @@ public function test_update_item_with_status() { // doing these null checks for the static analyzer $this->assertSame( $timestamp, $updated_status['last_run_timestamp'] ?? null ); $this->assertSame( $status, $updated_status['last_run_status'] ?? null ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $sync_option ); + $this->assertIsObject( $sync_option[ $schedule_id ] ); + $this->assertSame( $plugins, $sync_option[ $schedule_id ]->args ); + $this->assertSame( $timestamp, $sync_option[ $schedule_id ]->last_run_timestamp ); + $this->assertSame( $status, $sync_option[ $schedule_id ]->last_run_status ); } } @@ -674,6 +786,9 @@ public function test_delete_item() { $this->assertTrue( $result->get_data() ); $this->assertFalse( wp_get_scheduled_event( Scheduled_Updates::PLUGIN_CRON_HOOK, $plugins ) ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertSame( array(), $sync_option ); } /** @@ -766,7 +881,8 @@ public function test_add_log() { ); $result = rest_do_request( $request ); - $this->assertSame( 200, $result->get_status() ); + $this->assertSame( 404, $result->get_status() ); + $this->assertSame( false, get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ) ); } /** @@ -784,6 +900,11 @@ public function test_get_logs() { $this->assertSame( 200, $result->get_status() ); $this->assertSame( array(), $result->get_data() ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $sync_option ); + $this->assertNull( $sync_option[ $schedule_id ]->last_run_timestamp ); + $this->assertNull( $sync_option[ $schedule_id ]->last_run_status ); } /** @@ -814,6 +935,11 @@ public function test_add_and_get_log() { $this->assertSame( 200, $result->get_status() ); $this->assertCount( 1, $result->get_data() ); $this->assertSame( Scheduled_Updates_Logs::PLUGIN_UPDATES_START, $result->get_data()[0][0]['action'] ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertIsArray( $sync_option ); + $this->assertNull( $sync_option[ $schedule_id ]->last_run_timestamp ); + $this->assertSame( 'in-progress', $sync_option[ $schedule_id ]->last_run_status ); } /** @@ -856,6 +982,10 @@ public function test_add_and_get_multiple_logs() { $this->assertSame( 200, $result->get_status() ); $this->assertCount( Scheduled_Updates_Logs::MAX_RUNS_PER_SCHEDULE, $result->get_data() ); $this->assertSame( Scheduled_Updates_Logs::PLUGIN_UPDATES_START, $result->get_data()[0][0]['action'] ); + + $sync_option = get_option( Scheduled_Updates::PLUGIN_CRON_HOOK ); + $this->assertNotNull( $sync_option[ $schedule_id ]->last_run_timestamp ); + $this->assertSame( 'success', $sync_option[ $schedule_id ]->last_run_status ); } /** diff --git a/projects/packages/sync/changelog/add-scheduled-updates-sync b/projects/packages/sync/changelog/add-scheduled-updates-sync new file mode 100644 index 0000000000000..264cf3d8ab837 --- /dev/null +++ b/projects/packages/sync/changelog/add-scheduled-updates-sync @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Added scheduled updates sync option. diff --git a/projects/packages/sync/composer.json b/projects/packages/sync/composer.json index bbc52808dd221..f6401dea7453a 100644 --- a/projects/packages/sync/composer.json +++ b/projects/packages/sync/composer.json @@ -58,7 +58,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "config": { diff --git a/projects/packages/sync/src/class-package-version.php b/projects/packages/sync/src/class-package-version.php index 5350ed8a5ae3b..7a8403a4735e7 100644 --- a/projects/packages/sync/src/class-package-version.php +++ b/projects/packages/sync/src/class-package-version.php @@ -12,7 +12,7 @@ */ class Package_Version { - const PACKAGE_VERSION = '2.12.0'; + const PACKAGE_VERSION = '2.13.0-alpha'; const PACKAGE_SLUG = 'sync'; diff --git a/projects/plugins/automattic-for-agencies-client/changelog/add-scheduled-updates-sync-2 b/projects/plugins/automattic-for-agencies-client/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/automattic-for-agencies-client/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/automattic-for-agencies-client/composer.lock b/projects/plugins/automattic-for-agencies-client/composer.lock index 525a27bdb2459..bdcf8c4a08ac4 100644 --- a/projects/plugins/automattic-for-agencies-client/composer.lock +++ b/projects/plugins/automattic-for-agencies-client/composer.lock @@ -992,7 +992,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1024,7 +1024,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/backup/changelog/add-scheduled-updates-sync-2 b/projects/plugins/backup/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/backup/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/backup/composer.lock b/projects/plugins/backup/composer.lock index fb56328f76779..577db9e9e4585 100644 --- a/projects/plugins/backup/composer.lock +++ b/projects/plugins/backup/composer.lock @@ -1545,7 +1545,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1577,7 +1577,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/boost/changelog/add-scheduled-updates-sync-2 b/projects/plugins/boost/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/boost/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/boost/composer.lock b/projects/plugins/boost/composer.lock index 5687d5ecddc94..25148d5700a7e 100644 --- a/projects/plugins/boost/composer.lock +++ b/projects/plugins/boost/composer.lock @@ -1535,7 +1535,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1567,7 +1567,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/jetpack/changelog/add-scheduled-updates-sync-2 b/projects/plugins/jetpack/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..39e05f243f5f2 --- /dev/null +++ b/projects/plugins/jetpack/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,4 @@ +Significance: minor +Type: enhancement + +Added scheduled updates sync option. diff --git a/projects/plugins/jetpack/changelog/add-scheduled-updates-sync-2#2 b/projects/plugins/jetpack/changelog/add-scheduled-updates-sync-2#2 new file mode 100644 index 0000000000000..a1c1831fa1ef7 --- /dev/null +++ b/projects/plugins/jetpack/changelog/add-scheduled-updates-sync-2#2 @@ -0,0 +1,5 @@ +Significance: patch +Type: other +Comment: Updated composer.lock. + + diff --git a/projects/plugins/jetpack/composer.lock b/projects/plugins/jetpack/composer.lock index ea3b2730342bf..b841ab51ea5d9 100644 --- a/projects/plugins/jetpack/composer.lock +++ b/projects/plugins/jetpack/composer.lock @@ -2453,7 +2453,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -2485,7 +2485,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/migration/changelog/add-scheduled-updates-sync-2 b/projects/plugins/migration/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/migration/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/migration/composer.lock b/projects/plugins/migration/composer.lock index 49d7eeacb4f23..700f4d5a4dff4 100644 --- a/projects/plugins/migration/composer.lock +++ b/projects/plugins/migration/composer.lock @@ -1545,7 +1545,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1577,7 +1577,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/mu-wpcom-plugin/changelog/add-scheduled-updates-sync-2 b/projects/plugins/mu-wpcom-plugin/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/mu-wpcom-plugin/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/mu-wpcom-plugin/composer.json b/projects/plugins/mu-wpcom-plugin/composer.json index 30469ebd1a46e..c0cd43feacfee 100644 --- a/projects/plugins/mu-wpcom-plugin/composer.json +++ b/projects/plugins/mu-wpcom-plugin/composer.json @@ -46,6 +46,6 @@ ] }, "config": { - "autoloader-suffix": "d9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_1_15" + "autoloader-suffix": "d9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ2_1_16_alpha" } } diff --git a/projects/plugins/mu-wpcom-plugin/composer.lock b/projects/plugins/mu-wpcom-plugin/composer.lock index f87599ba85b3e..865cdb9f479e6 100644 --- a/projects/plugins/mu-wpcom-plugin/composer.lock +++ b/projects/plugins/mu-wpcom-plugin/composer.lock @@ -198,7 +198,7 @@ "dist": { "type": "path", "url": "../../packages/scheduled-updates", - "reference": "4dbf0c9b0bf8384ef49f5cbd8ab76713a2f41222" + "reference": "a829494dc67c0e478c7f1b500986dff319081f23" }, "require": { "php": ">=7.0" @@ -221,7 +221,7 @@ }, "autotagger": true, "branch-alias": { - "dev-trunk": "0.7.x-dev" + "dev-trunk": "0.8.x-dev" }, "textdomain": "jetpack-scheduled-updates", "version-constants": { diff --git a/projects/plugins/mu-wpcom-plugin/mu-wpcom-plugin.php b/projects/plugins/mu-wpcom-plugin/mu-wpcom-plugin.php index 8974bf5b42e24..129abc3293db6 100644 --- a/projects/plugins/mu-wpcom-plugin/mu-wpcom-plugin.php +++ b/projects/plugins/mu-wpcom-plugin/mu-wpcom-plugin.php @@ -3,7 +3,7 @@ * * Plugin Name: WordPress.com Features * Description: Test plugin for the jetpack-mu-wpcom package - * Version: 2.1.15 + * Version: 2.1.16-alpha * Author: Automattic * License: GPLv2 or later * Text Domain: jetpack-mu-wpcom-plugin diff --git a/projects/plugins/mu-wpcom-plugin/package.json b/projects/plugins/mu-wpcom-plugin/package.json index 2203a03aebe52..5f3cd29c1f5d6 100644 --- a/projects/plugins/mu-wpcom-plugin/package.json +++ b/projects/plugins/mu-wpcom-plugin/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-mu-wpcom-plugin", - "version": "2.1.15", + "version": "2.1.16-alpha", "description": "Test plugin for the jetpack-mu-wpcom package", "homepage": "https://jetpack.com", "bugs": { diff --git a/projects/plugins/protect/changelog/add-scheduled-updates-sync-2 b/projects/plugins/protect/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/protect/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/protect/composer.lock b/projects/plugins/protect/composer.lock index 7b3a612bd4729..273483697ab1f 100644 --- a/projects/plugins/protect/composer.lock +++ b/projects/plugins/protect/composer.lock @@ -1458,7 +1458,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1490,7 +1490,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/search/changelog/add-scheduled-updates-sync-2 b/projects/plugins/search/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/search/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/search/composer.lock b/projects/plugins/search/composer.lock index 17210a891b8bb..53a9f40bbcf05 100644 --- a/projects/plugins/search/composer.lock +++ b/projects/plugins/search/composer.lock @@ -1549,7 +1549,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1581,7 +1581,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/social/changelog/add-scheduled-updates-sync-2 b/projects/plugins/social/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/social/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/social/composer.lock b/projects/plugins/social/composer.lock index cc3eb1530c7ff..b44dad7f71b92 100644 --- a/projects/plugins/social/composer.lock +++ b/projects/plugins/social/composer.lock @@ -1540,7 +1540,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1572,7 +1572,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/starter-plugin/changelog/add-scheduled-updates-sync-2 b/projects/plugins/starter-plugin/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/starter-plugin/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/starter-plugin/composer.lock b/projects/plugins/starter-plugin/composer.lock index c0670e00d3bbc..6e6de1467f28e 100644 --- a/projects/plugins/starter-plugin/composer.lock +++ b/projects/plugins/starter-plugin/composer.lock @@ -1401,7 +1401,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1433,7 +1433,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": { diff --git a/projects/plugins/videopress/changelog/add-scheduled-updates-sync-2 b/projects/plugins/videopress/changelog/add-scheduled-updates-sync-2 new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/videopress/changelog/add-scheduled-updates-sync-2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/videopress/composer.lock b/projects/plugins/videopress/composer.lock index 99714499d8e3d..e16c6b4437fc7 100644 --- a/projects/plugins/videopress/composer.lock +++ b/projects/plugins/videopress/composer.lock @@ -1401,7 +1401,7 @@ "dist": { "type": "path", "url": "../../packages/sync", - "reference": "9e12c71d3a061cdf252f6279e730247700ecfab9" + "reference": "b1bbaa41c0511633ee32d04d3ce37e4953a3c322" }, "require": { "automattic/jetpack-connection": "@dev", @@ -1433,7 +1433,7 @@ "link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}" }, "branch-alias": { - "dev-trunk": "2.12.x-dev" + "dev-trunk": "2.13.x-dev" } }, "autoload": {