diff --git a/Refactor_Plan.md b/Refactor_Plan.md index 93467761..ad4963cd 100644 --- a/Refactor_Plan.md +++ b/Refactor_Plan.md @@ -28,15 +28,67 @@ I metodi verranno suddivisi in: - [ ] Verificare se la chiave di cache utilizzata รจ gestita tramite `Utils.redis...`. #### Fase 2: Refactoring Metodi di Lettura -Per ogni metodo di lettura individuato: -- [ ] Sostituire la logica `if (rawData.HasValue) { ... } else { ... }` con la chiamata a `GetOrFetchAsync`. -- [ ] Assicurarsi che il `fetchFunc` esegua la chiamata al `dbController`. -- [ ] Configurare correttamente il `TimeSpan expiration` (usando le costanti esistenti come `redisLongTimeCache` o `redisShortTimeCache`). -- [ ] Aggiungere i tag appropriati per permettere l'invalidazione granulare. +- [x] `ActionGetReq` (Completato) +- [ ] `AnagEventiGeneral` +- [ ] `AnagEventiGetByMacch` +- [ ] `AnagKeyValGetAll` +- [ ] `AnagStatiComm` +- [ ] `AnagTipoArtLvAsync` +- [ ] `ArticleWithDossier` +- [ ] `ConfigGetAll` +- [ ] `ConfigGetAllAsync` +- [ ] `DbDedupStats` +- [ ] `DossiersGetLastFilt` +- [ ] `ElencoGruppiFase` +- [ ] `ElencoRepartiDTO` +- [ ] `ExpiryReloadParamGet` +- [ ] `IobInfo` +- [ ] `IstKitFilt` +- [ ] `ListGiacenze` +- [ ] `ListPODL_ByCodArt` +- [ ] `MacchineGetFilt` +- [ ] `MacchineRecipeArchive` +- [ ] `MacchineRecipeConf` +- [ ] `MacchineWithFlux` +- [ ] `MachIobConf` +- [ ] `MseGetAll` +- [ ] `OdlByBatch` +- [ ] `OdlGetCurrentAsync` +- [ ] `OdlListGetFilt` +- [ ] `OperatoriGetFilt` +- [ ] `ParametriGetFilt` +- [ ] `POdlGetByKey` +- [ ] `POdlGetByOdl` +- [ ] `POdlListByKitParent` +- [ ] `POdlListGetFilt` +- [ ] `POdlListGetFiltAsync` +- [ ] `ProcFLStats` +- [ ] `StatoMacchina` +- [ ] `TagConfGetKey` +- [ ] `TemplateKitFilt` +- [ ] `TksScore` +- [ ] `VocabolarioGetAll` +- [ ] `WipKitFilt` #### Fase 3: Refactoring Metodi di Scrittura e Invalidazione -- [ ] Sostituire le chiamate manuali a `ExecFlushRedisPattern` o `redisDb.KeyDelete` con i metodi di invalidazione di `IFusionCache`. -- [ ] Utilizzare i tag per invalidare gruppi di dati correlati invece di pattern Redis generici quando possibile. +- [ ] `AnagGruppiDelete` +- [ ] `AnagGruppiUpsert` +- [ ] `ArticoliDeleteRecord` +- [ ] `ArticoliUpdateRecord` +- [ ] `ConfigResetCache` +- [ ] `DossiersDeleteRecord` +- [ ] `DossiersTakeParamsSnapshotLast` +- [ ] `IstKitDelete` +- [ ] `IstKitInsertByWKS` +- [ ] `IstKitUpsert` +- [ ] `PodlIstKitDelete` +- [ ] `POdlDoSetup` +- [ ] `POdlUpdateRecipe` +- [ ] `POdlUpdateRecord` +- [ ] `RecipeSetByPODL` +- [ ] `TemplateKitDelete` +- [ ] `TemplateKitUpsert` + #### Fase 4: Verifica - [ ] Verificare la compilazione della soluzione tramite script PowerShell.