Address PR feedback: add yarn build, env vars, and BackupManager

Changes based on maintainer feedback from PR #1217:

1. Add yarn install/build steps to update process
   - Added yarn availability check in validateUpdatePreconditions
   - Added yarn install and yarn build steps after composer install
   - Added yarn rebuild to rollback process
   - Updated total steps count from 12 to 14

2. Add environment variables to disable web features
   - DISABLE_WEB_UPDATES: Completely disable web-based updates
   - DISABLE_BACKUP_RESTORE: Disable backup restore from web UI
   - Added checks in controller and template

3. Extract BackupManager service
   - New service handles backup creation, listing, details, and restoration
   - UpdateExecutor now delegates backup operations to BackupManager
   - Cleaner separation of concerns for future reuse

4. Merge upstream/master and resolve translation conflicts
   - Added Conrad info provider and generic web provider translations
   - Kept Update Manager translations
This commit is contained in:
Sebastian Almberg 2026-02-01 19:17:22 +01:00
parent 6b27f3aa14
commit 10c192edd1
6 changed files with 653 additions and 293 deletions

View file

@ -15018,6 +15018,24 @@ Buerklin-API Authentication server:
<target>WARNING: This will overwrite your current database with the backup data. This action cannot be undone! Make sure you have a current backup before proceeding.</target>
</segment>
</unit>
<unit id="um_web_updates_disabled" name="update_manager.web_updates_disabled">
<segment state="translated">
<source>update_manager.web_updates_disabled</source>
<target>Web-based updates are disabled</target>
</segment>
</unit>
<unit id="um_web_updates_disabled_hint" name="update_manager.web_updates_disabled_hint">
<segment state="translated">
<source>update_manager.web_updates_disabled_hint</source>
<target>Web-based updates have been disabled by the server administrator. Please use the CLI command "php bin/console partdb:update" to perform updates.</target>
</segment>
</unit>
<unit id="um_backup_restore_disabled" name="update_manager.backup_restore_disabled">
<segment state="translated">
<source>update_manager.backup_restore_disabled</source>
<target>Backup restore is disabled by server configuration.</target>
</segment>
</unit>
<unit id="kHKChQB" name="settings.ips.conrad">
<segment>
<source>settings.ips.conrad</source>