Refactor transferImages
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
c2fed1fb15
commit
ec7006db9a
|
@ -69,8 +69,12 @@ class TransferGlobalAction extends AbstractOgRepositoryController
|
|||
|
||||
$this->createService->__invoke($image->getClient(), CommandTypes::TRANSFER_IMAGE, TraceStatus::IN_PROGRESS, $content['job_id'], $inputData);
|
||||
|
||||
$imageImageRepository->setStatus(ImageStatus::TRANSFERRING);
|
||||
$image->setIsGlobal(true);
|
||||
$this->entityManager->persist($image);
|
||||
|
||||
$imageImageRepository->setStatus(ImageStatus::TRANSFERRING);
|
||||
$this->entityManager->persist($imageImageRepository);
|
||||
|
||||
$this->entityManager->flush();
|
||||
}
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@ final class ImageOutput extends AbstractOutput
|
|||
#[Groups(['image:read'])]
|
||||
public ?string $comments = '';
|
||||
|
||||
#[Groups(['image:read'])]
|
||||
#[Groups(['image:read', 'image-image-repository:read'])]
|
||||
public ?bool $remotePc = null;
|
||||
|
||||
#[Groups(['image:read'])]
|
||||
#[Groups(['image:read', 'image-image-repository:read'])]
|
||||
public ?bool $isGlobal = null;
|
||||
|
||||
#[Groups(['image:read'])]
|
||||
|
|
Loading…
Reference in New Issue