adasd
All checks were successful
Deploy / deploy-staging (push) Successful in 6s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-03 00:43:33 +02:00
parent 66f9176ea8
commit 99cf5eaef2
3 changed files with 31 additions and 16 deletions

View File

@@ -1234,9 +1234,13 @@ final class Router
return [];
}
$rows = in_array($view, ['overview', 'mining', 'measurements'], true)
? $this->repository()->listRecentMeasurements($projectKey, self::BOOTSTRAP_MEASUREMENT_LIMIT)
: $this->repository()->listMeasurements($projectKey, self::BOOTSTRAP_MEASUREMENT_LIMIT);
if (in_array($view, ['overview', 'mining'], true)) {
$rows = $this->repository()->listRecentMeasurements($projectKey, self::BOOTSTRAP_MEASUREMENT_LIMIT);
} elseif ($view === 'measurements') {
$rows = $this->repository()->listRecentMeasurements($projectKey, 10);
} else {
$rows = $this->repository()->listMeasurements($projectKey, self::BOOTSTRAP_MEASUREMENT_LIMIT);
}
if (in_array($view, ['overview', 'mining'], true)) {
$rows = $this->filterMeasurementsToRecentWindow($rows, self::OVERVIEW_WINDOW_DAYS);
@@ -1278,13 +1282,12 @@ final class Router
private function bootstrapFxSnapshots(array $measurements, string $view): array
{
if (!in_array($view, ['overview', 'mining', 'measurements'], true)) {
if (!in_array($view, ['overview', 'mining'], true)) {
return [];
}
$limit = match ($view) {
'overview' => 1,
'measurements' => 10,
default => self::BOOTSTRAP_SNAPSHOT_LIMIT,
};