Skip to content

Commit

Permalink
Jetpack Sync: Update 'init' hook priority on Dedicated Sync requests …
Browse files Browse the repository at this point in the history
…to 0 (#33594)

* Jetpack Sync: Update Dedicated Sync 'init' hook priority

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6611399779
  • Loading branch information
fgiannar authored and matticbot committed Oct 23, 2023
1 parent 321c33b commit c2ad0e2
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 114 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"automattic/jetpack-publicize": "^0.36.4-alpha",
"automattic/jetpack-connection": "^1.58.2",
"automattic/jetpack-my-jetpack": "^3.10.0-alpha",
"automattic/jetpack-sync": "^1.58.1",
"automattic/jetpack-sync": "^1.59.0-alpha",
"automattic/jetpack-status": "^1.18.5",
"automattic/jetpack-plans": "^0.3.4"
},
Expand Down
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.59.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Changed
- Dedicated Sync: Update 'init' hook priority on Dedicated Sync requests to 0, in order to start sending Sync actions to WPCOM and exit as early as possible.

## [1.58.1] - 2023-10-18
### Fixed
- Update dependencies.
Expand Down Expand Up @@ -946,6 +953,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Packages: Move sync to a classmapped package

[1.59.0-alpha]: https://github.com/Automattic/jetpack-sync/compare/v1.58.1...v1.59.0-alpha
[1.58.1]: https://github.com/Automattic/jetpack-sync/compare/v1.58.0...v1.58.1
[1.58.0]: https://github.com/Automattic/jetpack-sync/compare/v1.57.4...v1.58.0
[1.57.4]: https://github.com/Automattic/jetpack-sync/compare/v1.57.3...v1.57.4
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/automattic/jetpack-sync/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "1.58.x-dev"
"dev-trunk": "1.59.x-dev"
}
},
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static function init() {
// rely on 'jetpack_sync_before_send_queue_sync' are picked up and added to the queue if needed.
if ( Settings::is_dedicated_sync_enabled() && Dedicated_Sender::is_dedicated_sync_request() ) {
self::initialize_listener();
add_action( 'init', array( __CLASS__, 'add_dedicated_sync_sender_init' ), 90 );
add_action( 'init', array( __CLASS__, 'add_dedicated_sync_sender_init' ), 0 );
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Package_Version {

const PACKAGE_VERSION = '1.58.1';
const PACKAGE_VERSION = '1.59.0-alpha';

const PACKAGE_SLUG = 'sync';

Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/i18n-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
),
'jetpack-sync' => array(
'path' => 'jetpack_vendor/automattic/jetpack-sync',
'ver' => '1.58.1',
'ver' => '1.59.0-alpha1698053571',
),
),
);
54 changes: 27 additions & 27 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats",
"reference": "60421a3ffeea005ba64529ca461a650848234e22"
"reference": "9fbdc9dead2646c92f4dc6872c9644eb23273e43"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -57,7 +57,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
"reference": "9fa9b1136dd706691ab5479e2bff7f7efdd0720f"
"reference": "e46c0048128fd247369bc68efc772a445943031d"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -119,7 +119,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
"reference": "5ffd5bafe1aa4afc7b3b3cd7c49a003446880587"
"reference": "ae46d73d2b289d9a458bf095a5d54fdf32758160"
},
"require": {
"automattic/jetpack-constants": "^1.6.23"
Expand Down Expand Up @@ -187,7 +187,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
"reference": "49bf4e1f475ebfcd9c13e78fd072d351111f6c36"
"reference": "d2515afbd0a00ffc2e66e6bab0a7df36d6ae0685"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0"
Expand Down Expand Up @@ -252,7 +252,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
"reference": "822518857f6d317f0565283c6657ebb1ecbadb45"
"reference": "abfeb768e25b275b8c12b6a8e0687ff9846fb782"
},
"require": {
"composer-plugin-api": "^2.1.0"
Expand Down Expand Up @@ -311,7 +311,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
"reference": "b5e325ccbb4f659169d2d9dda60c40d466f8c8ea"
"reference": "848a6bed817de842a501ebb3fcf1d1dda1d96398"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11"
Expand Down Expand Up @@ -353,7 +353,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
"reference": "e15af6e7728bc9c0457b2fbbb2ed2d440313436a"
"reference": "34e4523aa8d5407ed3606133356778266ad1ecb5"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^1.4.22",
Expand Down Expand Up @@ -431,7 +431,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
"reference": "6f75579cb264289db832fd8c979e4514f6e92deb"
"reference": "42b74af16f4adf85ccaa9ba5a0c80f884101621f"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -482,7 +482,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
"reference": "7a32bd35d0bcf8965d9afc8b6ae26943e8304c95"
"reference": "5f083849647d2b8d688477f7fdaa1c5db6f840af"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -532,7 +532,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-identity-crisis",
"reference": "109e9eaaafc9f1830d571055c1b674443f41037f"
"reference": "08792f04e7ac761a68cb8a4693d91d04d319706a"
},
"require": {
"automattic/jetpack-assets": "^1.18.13",
Expand Down Expand Up @@ -610,7 +610,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
"reference": "966d397993f08e317f36b948b441877ff1569e23"
"reference": "e42369f00495f705253d876bc463075b9e9d7ad3"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -665,7 +665,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
"reference": "1b486ca0851f3d49420cfcfb8b47a6a983c7f323"
"reference": "44a191582bd38afd95f48601f9e4140dbf2238d2"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^1.4.22",
Expand Down Expand Up @@ -740,7 +740,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
"reference": "eb12d576671912eebd957c682a4d4d7387a80060"
"reference": "23cadfc8261e273d1716a141f02ce6485897f159"
},
"require": {
"automattic/jetpack-connection": "^1.58.2"
Expand Down Expand Up @@ -801,7 +801,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
"reference": "1d07d5cf7b2ba73e3f9dcf7b7ec578206d779940"
"reference": "f79be4c3531d97f7de3ed5db76273c1eafa9aebc"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -851,7 +851,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack",
"reference": "9675147089c1cf04553801fca1f63187d3ca500c"
"reference": "3877dae0c0ef5e483b644d08926e68e15bfbe246"
},
"require": {
"automattic/jetpack-admin-ui": "^0.2.23",
Expand Down Expand Up @@ -942,7 +942,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-partner",
"reference": "7db55b7901c5a0cc3cb01202fda8b46bd1894edb"
"reference": "34427ae6794348b8a84bc41b1e32a883dcd86b36"
},
"require": {
"automattic/jetpack-connection": "^1.58.2",
Expand Down Expand Up @@ -1004,7 +1004,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
"reference": "36f69b8ed7e48e65d2d29f1104fdfbe5160d907c"
"reference": "28cfcb764332fe866a314f723966516312ad39c0"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -1062,7 +1062,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
"reference": "cdd4730a58804251b0006db9b3335f26ca575cba"
"reference": "2bf95c29211fcd12abc2af1447c1950d1134347e"
},
"require": {
"automattic/jetpack-connection": "^1.58.2"
Expand Down Expand Up @@ -1129,7 +1129,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
"reference": "70ac5a65e0afe07dd6ffaff1dec9bf7fcd9cd73e"
"reference": "c52139ee666900265ba140f0769f175302cfd3e0"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^1.4.22"
Expand Down Expand Up @@ -1183,7 +1183,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-publicize",
"reference": "c74671b815e4fee596427e3243dd4427a1f1a079"
"reference": "8eaacd44edeae63c69730fc8fbcc1940437f1701"
},
"require": {
"automattic/jetpack-assets": "^1.18.13",
Expand Down Expand Up @@ -1262,7 +1262,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
"reference": "26b70323ccf7efadb61da64d4105af97a1f9fb44"
"reference": "7335c431338a6a9e6a8ae7e1ca69a2f7fbcc32fd"
},
"require": {
"automattic/jetpack-status": "^1.18.5"
Expand Down Expand Up @@ -1316,7 +1316,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
"reference": "082b435d8a954cb20c3c8dfaf24f143089e9eca3"
"reference": "85082073dcc300e00b91d9e9dacae8f276e35eb2"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.11",
Expand Down Expand Up @@ -1367,7 +1367,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
"reference": "c49ac5028a353c83ab49f6c3851078a2b20f8431"
"reference": "b48fbb5db7dc442109688d8fbb98ed530cfa7ec3"
},
"require": {
"automattic/jetpack-constants": "^1.6.23"
Expand Down Expand Up @@ -1417,12 +1417,12 @@
},
{
"name": "automattic/jetpack-sync",
"version": "1.58.1",
"version_normalized": "1.58.1.0",
"version": "1.59.0-alpha.1698053571",
"version_normalized": "1.59.0.0-alpha1698053571",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
"reference": "24ecad6343b364a515bb9f52656342a37205c9d9"
"reference": "7f3a93bf2a2ff684f26ecc960422b867c0f9461a"
},
"require": {
"automattic/jetpack-connection": "^1.58.2",
Expand Down Expand Up @@ -1453,7 +1453,7 @@
"link-template": "https://github.com/Automattic/jetpack-sync/compare/v${old}...v${new}"
},
"branch-alias": {
"dev-trunk": "1.58.x-dev"
"dev-trunk": "1.59.x-dev"
}
},
"installation-source": "dist",
Expand Down
Loading

0 comments on commit c2ad0e2

Please sign in to comment.