adasd
This commit is contained in:
@@ -1172,10 +1172,7 @@
|
||||
}, 12000);
|
||||
|
||||
try {
|
||||
const schema = await request(`${apiBase}/projects/${encodeURIComponent(key)}/schema-status`, { timeoutMs: 4000 });
|
||||
const nextSchemaStatus = normalizeSchemaStatus(schema);
|
||||
setSchemaStatus(nextSchemaStatus);
|
||||
if (!nextSchemaStatus.all_present) {
|
||||
if (schemaStatus.missing_count > 0 || schemaStatus.pending_upgrade_count > 0) {
|
||||
setPayload(normalizeBootstrap(null, key));
|
||||
setError('Mining-Checker Schema ist noch nicht initialisiert. Bitte im Tab Settings die Datenbank initialisieren.');
|
||||
return;
|
||||
|
||||
@@ -1270,7 +1270,13 @@ final class Router
|
||||
return [];
|
||||
}
|
||||
|
||||
return $this->measurementFxSnapshots($measurements, self::BOOTSTRAP_SNAPSHOT_LIMIT);
|
||||
$limit = match ($view) {
|
||||
'overview' => 1,
|
||||
'measurements' => 10,
|
||||
default => self::BOOTSTRAP_SNAPSHOT_LIMIT,
|
||||
};
|
||||
|
||||
return $this->measurementFxSnapshots($measurements, $limit);
|
||||
}
|
||||
|
||||
private function bootstrapSummary(array $measurements, array $settings, array $targets, string $view): array
|
||||
|
||||
Reference in New Issue
Block a user