refs #955. Updates Partition/SW-P/SW
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
a2171ceb47
commit
de5f719111
|
@ -16,6 +16,8 @@ resources:
|
|||
|
||||
ApiPlatform\Metadata\Get:
|
||||
provider: App\State\Provider\SoftwareProfileProvider
|
||||
normalizationContext:
|
||||
groups: ['software-profile:item:get', 'software-profile:read:collection:short']
|
||||
ApiPlatform\Metadata\Put:
|
||||
provider: App\State\Provider\SoftwareProfileProvider
|
||||
ApiPlatform\Metadata\Patch:
|
||||
|
|
|
@ -93,7 +93,7 @@ final class PartitionInput
|
|||
$partition->setDiskNumber($this->diskNumber);
|
||||
$partition->setPartitionNumber($this->partitionNumber);
|
||||
$partition->setPartitionCode($this->partitionCode);
|
||||
$partition->setSize($this->size * 100);
|
||||
$partition->setSize($this->size * 1024);
|
||||
$partition->setCacheContent($this->cacheContent);
|
||||
$partition->setFilesystem($this->filesystem);
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|||
#[Get(shortName: 'OgLive')]
|
||||
final class OgLiveOutput extends AbstractOutput
|
||||
{
|
||||
#[Groups(['og-live:read'])]
|
||||
#[Groups(['og-live:read', 'client:read'])]
|
||||
public string $name;
|
||||
|
||||
#[Groups(['og-live:read'])]
|
||||
|
|
|
@ -40,7 +40,7 @@ class PartitionOutput extends AbstractOutput
|
|||
$this->diskNumber = $partition->getDiskNumber();
|
||||
$this->partitionNumber = $partition->getPartitionNumber();
|
||||
$this->partitionCode = $partition->getPartitionCode();
|
||||
$this->size = $partition->getSize() / 100;
|
||||
$this->size = $partition->getSize() / 1024 ;
|
||||
$this->cacheContent = $partition->getCacheContent();
|
||||
$this->filesystem = $partition->getFilesystem();
|
||||
if ($partition->getOperativeSystem()) {
|
||||
|
|
|
@ -11,7 +11,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|||
#[Get(shortName: 'SoftwareProfile')]
|
||||
final class SoftwareProfileOutput extends AbstractOutput
|
||||
{
|
||||
#[Groups(['software-profile:read'])]
|
||||
#[Groups(['software-profile:read', 'image:read'])]
|
||||
public ?string $description = '';
|
||||
|
||||
#[Groups(['software-profile:read'])]
|
||||
|
@ -23,7 +23,7 @@ final class SoftwareProfileOutput extends AbstractOutput
|
|||
#[Groups(['software-profile:read'])]
|
||||
public ?OperativeSystemOutput $operativeSystem = null;
|
||||
|
||||
#[Groups(['software-profile:read'])]
|
||||
#[Groups(['software-profile:item:get'])]
|
||||
public ?array $softwareCollection = [];
|
||||
|
||||
#[Groups(['software-profile:read'])]
|
||||
|
|
Loading…
Reference in New Issue