refs #1516. Changed form and global import
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
b2f5c3802a
commit
947817daae
|
@ -45,10 +45,6 @@ class TransferIsGlobalAction extends AbstractOgRepositoryController
|
|||
|
||||
}
|
||||
|
||||
if (!$imageImageRepository->getImageFullsum()) {
|
||||
throw new ValidatorException('Fullsum is required');
|
||||
}
|
||||
|
||||
$params = [
|
||||
'json' => [
|
||||
'image' => $image->getName().'.img',
|
||||
|
@ -68,7 +64,6 @@ class TransferIsGlobalAction extends AbstractOgRepositoryController
|
|||
$inputData = [
|
||||
'imageName' => $image->getName(),
|
||||
'imageUuid' => $image->getUuid(),
|
||||
'imageImageRepositoryUuid' => $imageImageRepository->getUuid(),
|
||||
'repositoryUuid' => $repository->getUuid(),
|
||||
];
|
||||
|
||||
|
|
|
@ -108,9 +108,9 @@ class ResponseController extends AbstractOgRepositoryController
|
|||
return;
|
||||
}
|
||||
|
||||
if ($imageImageRepository === null) {
|
||||
if ($imageImageRepository) {
|
||||
$this->updateTraceStatus($trace, TraceStatus::FAILED, 'Image repository not found');
|
||||
return;
|
||||
$imageImageRepository->setStatus(ImageStatus::SUCCESS);
|
||||
}
|
||||
|
||||
$this->logger->info("Image $actionType successful", ['image' => $image->getName()]);
|
||||
|
@ -122,7 +122,6 @@ class ResponseController extends AbstractOgRepositoryController
|
|||
$newImageImageRepository->setStatus(ImageStatus::SUCCESS);
|
||||
|
||||
// Cambiamos el estado de la imagen anterior a SUCCESS
|
||||
$imageImageRepository->setStatus(ImageStatus::SUCCESS);
|
||||
$this->entityManager->persist($newImageImageRepository);
|
||||
$this->entityManager->persist($image);
|
||||
|
||||
|
|
Loading…
Reference in New Issue