adasd
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user