Merge branch 'main' into develop
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
commit
7d529e9be7
|
@ -1,6 +1,11 @@
|
|||
# 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.
|
||||
|
||||
---
|
||||
|
|
|
@ -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' } ]
|
||||
arguments: [ { 'id': 'exact', 'command': 'exact', 'client.id': 'exact', 'status': 'exact', 'jobId': 'exact' } ]
|
||||
tags: [ 'api_platform.filter' ]
|
||||
|
||||
api_platform.filter.trace.order:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
*/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
|
||||
|
||||
|
|
|
@ -76,14 +76,13 @@ 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('OK', Response::HTTP_NO_CONTENT);
|
||||
return new JsonResponse(data: ['/clients/' . $image->getClient()->getUuid() => ['headers' => []]], status: Response::HTTP_OK);
|
||||
}
|
||||
|
||||
private function processDelete($data, Operation $operation, array $uriVariables = [], array $context = []): null
|
||||
|
|
Loading…
Reference in New Issue