refs #1472. Changes in images and imageRepo
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
acf772f139
commit
a448fb071d
|
@ -86,17 +86,28 @@ class ResponseController extends AbstractOgRepositoryController
|
||||||
{
|
{
|
||||||
$trace = $this->entityManager->getRepository(Trace::class)->findOneBy(['jobId' => $data['job_id']]);
|
$trace = $this->entityManager->getRepository(Trace::class)->findOneBy(['jobId' => $data['job_id']]);
|
||||||
$imageUuid = $trace->getInput()['imageUuid'];
|
$imageUuid = $trace->getInput()['imageUuid'];
|
||||||
$imageImageRepository = $trace->getInput()['imageImageRepositoryUuid'];
|
$imageImageRepositoryUuid = $trace->getInput()['imageImageRepositoryUuid'];
|
||||||
$repositoryUuid = $trace->getInput()['repositoryUuid'];
|
$repositoryUuid = $trace->getInput()['repositoryUuid'];
|
||||||
|
|
||||||
$image = $this->entityManager->getRepository(Image::class)->findOneBy(['uuid' => $imageUuid]);
|
$image = $this->entityManager->getRepository(Image::class)->findOneBy(['uuid' => $imageUuid]);
|
||||||
$repository = $this->entityManager->getRepository(ImageRepository::class)->findOneBy(['uuid' => $repositoryUuid]);
|
$repository = $this->entityManager->getRepository(ImageRepository::class)->findOneBy(['uuid' => $repositoryUuid]);
|
||||||
|
$imageImageRepository = $this->entityManager->getRepository(ImageImageRepository::class)->findOneBy(['uuid' => $imageImageRepositoryUuid]);
|
||||||
|
|
||||||
if ($image === null) {
|
if ($image === null) {
|
||||||
$this->updateTraceStatus($trace, TraceStatus::FAILED, 'Image not found');
|
$this->updateTraceStatus($trace, TraceStatus::FAILED, 'Image not found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($repository === null) {
|
||||||
|
$this->updateTraceStatus($trace, TraceStatus::FAILED, 'Repository not found');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($imageImageRepository === null) {
|
||||||
|
$this->updateTraceStatus($trace, TraceStatus::FAILED, 'Image repository not found');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->logger->info("Image $actionType successful", ['image' => $image->getName()]);
|
$this->logger->info("Image $actionType successful", ['image' => $image->getName()]);
|
||||||
|
|
||||||
// Creamos un objeto imagen nuevo, en el repositorio destino
|
// Creamos un objeto imagen nuevo, en el repositorio destino
|
||||||
|
|
Loading…
Reference in New Issue