fix(plugin): pre-update backup notifies on success, not only failure #221
Reference in New Issue
Block a user
Delete Branch "fix/preupdate-notification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Targeting dev.
Why "the pre-update popup notification isn't firing":
runPreActionBackup()only calledenqueueMessage()when the backup failed. On a successful pre-update backup it was completely silent — so nothing appeared.Fix: surface every outcome using the
BackupRunnerstatus:complete→ success notice ("Pre-update backup completed successfully.")warning→ warning (local archive made, remote upload failed)fail/ exception → errorNow a pre-update backup always produces an admin notification.
php -lclean.Note on a progress popup
This is the notification (admin message banner). A live progress modal during the extension update — like "Backup Now" on the dashboard — is a separate, harder piece (#196): the update runs server-side in one request and can't drive the AJAX progress modal without injecting into com_installer's page. If you want that too, it's a bigger change; this PR makes the outcome visible in the meantime.
Also — confirm "Backup before update" is enabled in the component options; if it's off,
runPreActionBackup()returns before doing anything.https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i