Skip to content

Add manual backup creation and delete buttons to Update Manager#1255

Open
Sebbeben wants to merge 1 commit intoPart-DB:masterfrom
Sebbeben:feature/update-manager-improvements
Open

Add manual backup creation and delete buttons to Update Manager#1255
Sebbeben wants to merge 1 commit intoPart-DB:masterfrom
Sebbeben:feature/update-manager-improvements

Conversation

@Sebbeben
Copy link
Contributor

Summary

I've seen discussions about adding a backup button, so I added one to the Update Manager. Also thought it would be useful to easily delete old backups and logs.

  • "Create Backup" button in the backups tab for on-demand backups
  • Trash icon delete buttons for update logs and backup files
  • New controller routes with CSRF protection and @system.manage_updates permission checks
  • Uses data-turbo-confirm for CSP-safe confirmation dialogs (no inline JS)

Testing done

  • Navigated to Update Manager → Backups tab
  • Clicked "Create Backup" → confirm dialog appeared → backup created and listed
  • Clicked trash icon on a backup → confirm dialog → backup deleted
  • Navigated to Logs tab → clicked trash icon → log deleted
  • Verified buttons only appear for users with @system.manage_updates permission
  • Verified no CSP console errors

- Add "Create Backup" button in the backups tab for on-demand backups
- Add delete buttons (trash icons) for update logs and backups
- New controller routes with CSRF protection and permission checks
- Use data-turbo-confirm for CSP-safe confirmation dialogs
- Add deleteLog() method to UpdateExecutor with filename validation
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 0% with 46 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.67%. Comparing base (70cde4c) to head (31380fd).

Files with missing lines Patch % Lines
src/Controller/UpdateManagerController.php 0.00% 33 Missing ⚠️
src/Services/System/UpdateExecutor.php 0.00% 13 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1255      +/-   ##
============================================
- Coverage     54.77%   54.67%   -0.11%     
- Complexity     8012     8028      +16     
============================================
  Files           601      601              
  Lines         25690    25736      +46     
============================================
- Hits          14072    14070       -2     
- Misses        11618    11666      +48     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments