[wp-trac] [WordPress Trac] #51857: Add rollback for failed plugin/themeupdates (was: Add rollback for failed plugin/theme auto-updates)
WordPress Trac
noreply at wordpress.org
Tue Dec 1 20:46:23 UTC 2020
#51857: Add rollback for failed plugin/themeupdates
-----------------------------+-----------------------
Reporter: pbiron | Owner: pbiron
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.7
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------
Description changed by pbiron:
Old description:
> When a core auto-update fails, core has long had the ability to
> automatically attempt a "rollback" to the latest stable release (in the
> branch that the site is running). Note: for core auto-updates,
> "rollback" is not attempted for certain failures (e.g. "disk full", etc).
>
> This capability should be extended to be available for plugin and theme
> auto-updates.
>
> The current functionality for core rollbacks relies on the availability
> of a "rollback" package being returned by the Updates API. It is unclear
> (to me, at this time) whether extending this functionality to
> plugins/themes will require changes to the API or not.
>
> **Important:** This ticket is **not** about backup/restore in case a site
> admin later determines that a `successful` plugin/theme update actually
> causes problem on a site!!!! Rather it is about covering cases such as
> #51823, where a plugin/theme auto-update failure happens between the time
> the existing plugin/theme is deleted but before the new version
> successfully installed.
New description:
When a core auto-update fails, core has long had the ability to
automatically attempt a "rollback" to the latest stable release (in the
branch that the site is running). Note: for core auto-updates, "rollback"
is not attempted for certain failures (e.g. "disk full", etc).
This capability should be extended to be available for plugin and theme
updates.
[note: originally this description mentioned `auto-updates`...that was a
mistake on my part. This is about rollback for both `manual` and `auto-
updates`]
The current functionality for core rollbacks relies on the availability of
a "rollback" package being returned by the Updates API. It is unclear (to
me, at this time) whether extending this functionality to plugins/themes
will require changes to the API or not.
**Important:** This ticket is **not** about backup/restore in case a site
admin later determines that a `successful` plugin/theme update actually
causes problem on a site!!!! Rather it is about covering cases such as
#51823, where a plugin/theme update failure happens between the time the
existing plugin/theme is deleted but before the new version successfully
installed.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51857#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list