Compare commits

..

No commits in common. "7d529e9be7162a9d3c3b7ce811092dbeeebe5bdc" and "6adbec0fe9741bda660e4874d4600f1f5ef3b6fb" have entirely different histories.

4 changed files with 5 additions and 10 deletions

View File

@ -1,11 +1,6 @@
# Changelog
## [0.17.3] - 2025-08-04
### Improved
- Se ha añadido el filtro "jobId" a la entidad Trace.
---
## [0.17.2] - 2025-08-04
### Improved
## Improved
- Se ha cambiado la respuesta de algunos endpoints que llaman al ogAgent. Ahora devuelve el job_id asociado a la traza.
---

View File

@ -298,7 +298,7 @@ services:
api_platform.filter.trace.search:
parent: 'api_platform.doctrine.orm.search_filter'
arguments: [ { 'id': 'exact', 'command': 'exact', 'client.id': 'exact', 'status': 'exact', 'jobId': 'exact' } ]
arguments: [ { 'id': 'exact', 'command': 'exact', 'client.id': 'exact', 'status': 'exact' } ]
tags: [ 'api_platform.filter' ]
api_platform.filter.trace.order:

View File

@ -1,4 +1,3 @@
*/2 * * * * opengnsys php -d memory_limit=512M /opt/opengnsys/ogcore/api/bin/console opengnsys:check-client-availability>> /opt/opengnsys/ogcore/api/var/log/cron.log 2>&1
*/1 * * * * opengnsys php -d memory_limit=512M /opt/opengnsys/ogcore/api/bin/console opengnsys:run-scheduled-command-tasks>> /opt/opengnsys/ogcore/api/var/log/cron.log 2>&1
*/1 * * * * opengnsys php -d memory_limit=512M /opt/opengnsys/ogcore/api/bin/console opengnsys:execute-pending-traces>> /opt/opengnsys/ogcore/api/var/log/cron.log 2>&1
*/1 * * * * opengnsys php -d memory_limit=512M /opt/opengnsys/ogcore/api/bin/console opengnsys:execute-pending-traces>> /opt/opengnsys/ogcore/api/var/log/cron.log 2>&1

View File

@ -76,13 +76,14 @@ readonly class PartitionProcessor implements ProcessorInterface
$response = $this->partitionAssistantAction->__invoke($data);
// Si hay una respuesta exitosa, devolvemos el contenido del job ID
if ($response instanceof JsonResponse && $response->getStatusCode() === 200) {
$jobContent = json_decode($response->getContent(), true, 512, JSON_UNESCAPED_SLASHES);
$jsonString = json_encode($jobContent, JSON_UNESCAPED_SLASHES);
return new JsonResponse($jsonString, Response::HTTP_OK, [], true);
}
return new JsonResponse(data: ['/clients/' . $image->getClient()->getUuid() => ['headers' => []]], status: Response::HTTP_OK);
return new JsonResponse('OK', Response::HTTP_NO_CONTENT);
}
private function processDelete($data, Operation $operation, array $uriVariables = [], array $context = []): null