mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-19 08:28:06 +02:00
fix: improve setup wizard behavior (#127)
* fix: improve setup wizard behavior * fix: derive runtime versions from release metadata * test: validate metabase source mapping requirements * Fix boundary check release identifiers
This commit is contained in:
parent
33a142f769
commit
d1c84e5564
35 changed files with 671 additions and 90 deletions
|
|
@ -12,6 +12,7 @@ import {
|
|||
discoverMetabaseDatabases,
|
||||
lookerCredentialsFromLocalConnection,
|
||||
metabaseRuntimeConfigFromLocalConnection,
|
||||
planMetabaseFanoutChildren,
|
||||
seedLocalMappingStateFromKtxYaml,
|
||||
validateLookerMappings,
|
||||
validateMappingPhysicalMatch,
|
||||
|
|
@ -198,6 +199,14 @@ export async function runKtxSourceMapping(
|
|||
}
|
||||
|
||||
const rows = await store.listDatabaseMappings(args.connectionId);
|
||||
planMetabaseFanoutChildren({
|
||||
metabaseConnectionId: args.connectionId,
|
||||
mappings: rows.map((row) => ({
|
||||
metabaseDatabaseId: row.metabaseDatabaseId,
|
||||
targetConnectionId: row.targetConnectionId,
|
||||
syncEnabled: row.syncEnabled,
|
||||
})),
|
||||
});
|
||||
const failures = rows.flatMap((row) => {
|
||||
if (!row.targetConnectionId) {
|
||||
return [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue