From 1156b5b99e0e6eac8e722b53d7bba8390188ddbf Mon Sep 17 00:00:00 2001 From: jmbardallo Date: Mon, 30 Mar 2026 12:06:07 +0200 Subject: [PATCH] =?UTF-8?q?Modificada=20columna=20cacheContent=20de=20una?= =?UTF-8?q?=20partici=C3=B3n=20para=20que=20sea=20de=20tipo=20TEXT=20y=20c?= =?UTF-8?q?ontener=20la=20lista=20de=20ficheros=20que=20tiene=20la=20cache?= =?UTF-8?q?.=20Se=20env=C3=ADa=20desde=20el=20ogagent=20al=20obtener=20la?= =?UTF-8?q?=20configuraci=C3=B3n=20mediante=20el=20campo=20[cac]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ src/Entity/Partition.php | 3 ++- src/Service/CreatePartitionService.php | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b86c59f..ab94347 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.2.11] - 2026-03-25 +### Added +Modificada columna cacheContent de una partición para que sea de tipo TEXT y contener la lista de ficheros que tiene la cache. Se envía desde el ogagent al obtener la configuración mediante el campo [cac] + ## [1.2.10] - 2026-03-25 ### Added Modificado StatusController para que al recibir un webhook de Poweroff o reboot actualice el estado de las trazas en progreso y las ponga como finalizadas. diff --git a/src/Entity/Partition.php b/src/Entity/Partition.php index b0cc7ca..3308da9 100644 --- a/src/Entity/Partition.php +++ b/src/Entity/Partition.php @@ -3,6 +3,7 @@ namespace App\Entity; use App\Repository\PartitionRepository; +use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity(repositoryClass: PartitionRepository::class)] @@ -21,7 +22,7 @@ class Partition extends AbstractEntity #[ORM\Column] private ?int $size = null; - #[ORM\Column(length: 255, nullable: true)] + #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $cacheContent = null; #[ORM\Column(length: 255, nullable: true)] diff --git a/src/Service/CreatePartitionService.php b/src/Service/CreatePartitionService.php index f48acfd..b72fd91 100644 --- a/src/Service/CreatePartitionService.php +++ b/src/Service/CreatePartitionService.php @@ -86,6 +86,7 @@ class CreatePartitionService $partitionEntity->setFilesystem($cfg['fsi']); $partitionEntity->setMemoryUsage(((int) $cfg['uso']) * 100); + $partitionEntity->setCacheContent($cfg['cac'] ?? null); $this->entityManager->persist($partitionEntity); $receivedPartitions[] = ['disk' => $cfg['disk'], 'partition' => $cfg['par']]; -- 2.40.1