|
14 | 14 | use Flowpack\DecoupledContentStore\NodeRendering\Dto\RenderingStatistics; |
15 | 15 | use Flowpack\DecoupledContentStore\NodeRendering\Infrastructure\RedisRenderingErrorManager; |
16 | 16 | use Flowpack\DecoupledContentStore\NodeRendering\Infrastructure\RedisRenderingStatisticsStore; |
| 17 | +use Flowpack\DecoupledContentStore\PrepareContentRelease\Dto\ContentReleaseMetadata; |
17 | 18 | use Flowpack\DecoupledContentStore\PrepareContentRelease\Infrastructure\RedisContentReleaseService; |
18 | 19 | use Flowpack\DecoupledContentStore\ReleaseSwitch\Infrastructure\RedisReleaseSwitchService; |
19 | 20 | use Neos\Flow\Annotations as Flow; |
@@ -81,12 +82,17 @@ public function loadBackendOverviewData(RedisInstanceIdentifier $redisInstanceId |
81 | 82 | $lastRendering = RenderingStatistics::fromJsonString($lastRenderingStatisticsEntries->getResultForContentRelease($contentReleaseId)); |
82 | 83 | $firstRendering = RenderingStatistics::fromJsonString($firstRenderingStatisticsEntries->getResultForContentRelease($contentReleaseId)); |
83 | 84 |
|
| 85 | + $metadataForContentRelease = $metadata->getResultForContentRelease($contentReleaseId); |
| 86 | + $countForContentRelease = $counts->getResultForContentRelease($contentReleaseId); |
| 87 | + $iterationsCountForContentRelease = $iterationsCounts->getResultForContentRelease($contentReleaseId); |
| 88 | + $errorCountForContentRelease = $errorCounts->getResultForContentRelease($contentReleaseId); |
| 89 | + |
84 | 90 | $result[] = new ContentReleaseOverviewRow( |
85 | 91 | $contentReleaseId, |
86 | | - $metadata->getResultForContentRelease($contentReleaseId), |
87 | | - $counts->getResultForContentRelease($contentReleaseId), |
88 | | - $iterationsCounts->getResultForContentRelease($contentReleaseId), |
89 | | - $errorCounts->getResultForContentRelease($contentReleaseId), |
| 92 | + $metadataForContentRelease instanceof ContentReleaseMetadata ? $metadataForContentRelease : null, |
| 93 | + is_int($countForContentRelease) ? $countForContentRelease : 0, |
| 94 | + is_int($iterationsCountForContentRelease) ? $iterationsCountForContentRelease : 0, |
| 95 | + is_int($errorCountForContentRelease) ? $errorCountForContentRelease : 0, |
90 | 96 | $lastRendering->getTotalJobs() > 0 ? round($lastRendering->getRenderedJobs() |
91 | 97 | / $lastRendering->getTotalJobs() * 100) : 100, |
92 | 98 | $firstRendering->getRenderedJobs(), |
|
0 commit comments