Añadir límite de copias de seguridad y mensajes de registro#18
Merged
Conversation
https://facturascripts.com/roadmap/4772 - Se implementó la función `applyBackupLimit` en `Cron.php` para gestionar el número máximo de copias de seguridad permitidas. - Se añadió el mensaje de registro "Copia de seguridad eliminada por límite" en español en `es_ES.json`. - Se actualizó `Init.php` para establecer el valor predeterminado de `max_backups` en 0. - Se modificó `SettingsBackup.xml` para incluir un nuevo campo de configuración para el límite de copias de seguridad. - Se creó el archivo de prueba `CronApplyBackupLimitTest.php` para verificar el comportamiento de la nueva funcionalidad.
daniel89fg
requested changes
Jun 30, 2026
- Se ha añadido la propiedad 'cron_max_backups' en Backup.php para definir el número máximo de copias de seguridad. - Se ha actualizado el archivo Backup.html.twig para mostrar el número máximo de copias de seguridad en la interfaz.
Se modifica el test 'testGenerateReturnsFalseOnNonMySQL' para que valide la generación de copias de seguridad en PostgreSQL. Ahora se asegura que el método 'BackupSQL::generate' retorne verdadero cuando se utiliza PostgreSQL como tipo de base de datos.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://facturascripts.com/roadmap/4772
applyBackupLimitenCron.phppara gestionar el número máximo de copias de seguridad permitidas.es_ES.json.Init.phppara establecer el valor predeterminado demax_backupsen 0.SettingsBackup.xmlpara incluir un nuevo campo de configuración para el límite de copias de seguridad.CronApplyBackupLimitTest.phppara verificar el comportamiento de la nueva funcionalidad.