-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scheduled Updates: Add scheduled update body parameter (#35941)
* Add a new is_scheduled_updates param to the modify plugin endpoint * Add conditions for scheduled update only * pass is_scheduled_updates property in the allowlist filter * changelog * Replace slug property with plugin property * Identify scheduled update by constant * Add new constant SCHEDULED_UPDATE to identify requests * remove unnecessary check * Prevent making changes to core structure * Change scheduled updates to singular * Change the wording to make unauthorized message more clearer * Update changelog with more clearer information * Change the function name in changelog to align with latest version * Fix version mismatch * Remove unnecessary check * Remove unnecessary check * Reformat changelog entry * Remove blank lines * Rename variale name * set lock release timeout if user is from scheduled update * Fix version mismatch * Fix typo in body param See D140023-code * Add missing typo fix --------- Co-authored-by: Konstantin Obenland <[email protected]>
- Loading branch information
Showing
8 changed files
with
73 additions
and
17 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
projects/packages/scheduled-updates/changelog/update-modify-plugin-endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Significance: minor | ||
Type: changed | ||
|
||
Scheduled updates: Modified the `allowlist_scheduled_plugins` function to check scheduled update requests. | ||
|
||
Change the `allowlist_scheduled_plugins` function to include a check for the `SCHEDULED_AUTOUPDATE` constant. This allows us to identify requests coming from scheduled updates and include the relevant plugins when the `auto_update_plugin` hook is triggered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
projects/plugins/jetpack/changelog/update-modify-plugin-endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Significance: minor | ||
Type: other | ||
|
||
Scheduled updates: Introduced a new body parameter `scheduled_update` to the `POST /sites/%s/plugins/%s` endpoint. | ||
|
||
When `POST /sites/%s/plugins/%s` endpoint is called with the `scheduled_update` parameter, we validate the request and modify the auto update plugins allowed list to include the ones in the scheduled updates option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
projects/plugins/mu-wpcom-plugin/changelog/update-modify-plugin-endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: changed | ||
Comment: Updated composer.lock. | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.