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