Modificada columna cacheContent de una partición para que sea de tipo TEXT y contener la lista de ficheros que tiene la cache. #82

Merged
jmbardallo merged 1 commits from cache-content into main 2026-03-30 12:07:11 +02:00
3 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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)]

View File

@ -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']];