[Feature] Disabilitata deletion sync nei trasferimenti manuali e aggiunta configurazione nelle schedulazioni
- Disabilitata completamente la sincronizzazione eliminazioni nei trasferimenti manuali (DataCoupler.razor.cs) - Aggiunto campo EnableDeletionSync al modello ProfileSchedule (default: false) - Implementata logica condizionale in ScheduledProfileExecutionService per deletion sync - Aggiunta sezione 'Opzioni Avanzate' nell'interfaccia schedulazione con warning - Creata migration Entity Framework AddEnableDeletionSyncToProfileSchedule - Aggiornato BackupModels per supporto backup/restore del nuovo campo - Aggiornata documentazione README.md e copilot-instructions.md - La deletion sync è ora disponibile solo per schedulazioni con configurazione esplicita per massima sicurezza
This commit is contained in:
@@ -69,11 +69,11 @@ public class ScheduledExecutionBackgroundService : BackgroundService
|
||||
{
|
||||
if (ShouldExecuteSchedule(schedule, currentTime))
|
||||
{
|
||||
_logger.LogInformation("Esecuzione schedulata per profilo: {ProfileName} (Schedule: {ScheduleName})",
|
||||
schedule.Profile?.Name ?? "N/A", schedule.Name);
|
||||
_logger.LogInformation("Esecuzione schedulata per profilo: {ProfileName} (Schedule: {ScheduleName}) - DeletionSync: {DeletionSync}",
|
||||
schedule.Profile?.Name ?? "N/A", schedule.Name, schedule.EnableDeletionSync);
|
||||
|
||||
// Esegui il profilo
|
||||
var result = await executionService.ExecuteProfileAsync(schedule.ProfileId);
|
||||
// Esegui il profilo con il flag deletion sync dalla schedulazione
|
||||
var result = await executionService.ExecuteProfileAsync(schedule.ProfileId, schedule.EnableDeletionSync);
|
||||
|
||||
// Aggiorna la schedulazione
|
||||
await UpdateScheduleAfterExecution(scheduleService, schedule, currentTime, result.Success);
|
||||
|
||||
Reference in New Issue
Block a user