Refactor ExportGeneration to improve serialization and usage

Streamlined the `ExportGeneration` entity by adding a `getStatus` accessor and updating the serialization group. Refactored frontend logic to use computed properties for `status` and `storedObject`. Simplified API methods to work with the updated `ExportGeneration` interface for consistent handling.
This commit is contained in:
2025-03-17 10:41:54 +01:00
parent b2d8d21f04
commit 0c2508d26d
5 changed files with 44 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ final readonly class ExportGenerationController
return new JsonResponse(
$this->serializer->serialize(
['status' => $exportGeneration->getStoredObject()->getStatus(), 'stored_object' => $exportGeneration->getStoredObject()],
$exportGeneration,
'json',
[AbstractNormalizer::GROUPS => ['read']],
),