From 8bf9be9344856b12698ade1dc333d4c3b74e4e23 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Thu, 7 Dec 2023 09:04:45 +1300 Subject: [PATCH] fix(cli): virtual tilesets are required for importing into dynamo (#3022) #### Motivation Virtual tile sets such as `ts_all` are needed when importing into dynamodb as they are materialized and stored into dynamo. #### Modification re-adds virtual tileset creation before applying the diff. #### Checklist _If not applicable, provide explanation of why._ - [ ] Tests updated - [ ] Docs updated - [ ] Issue linked in Title --- packages/cli/src/cli/config/action.import.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cli/src/cli/config/action.import.ts b/packages/cli/src/cli/config/action.import.ts index 85a746a21..ed509a764 100644 --- a/packages/cli/src/cli/config/action.import.ts +++ b/packages/cli/src/cli/config/action.import.ts @@ -77,6 +77,8 @@ export class CommandImport extends CommandLineAction { logger.info({ config: this.target.value }, 'Import:Target:Load'); const configJson = await fsa.readJson(this.target.value); const mem = ConfigProviderMemory.fromJson(configJson); + mem.createVirtualTileSets(); + setDefaultConfig(mem); return mem; } @@ -107,6 +109,7 @@ export class CommandImport extends CommandLineAction { logger.info({ config }, 'Import:Load'); const configJson = await fsa.readJson(config); const mem = ConfigProviderMemory.fromJson(configJson); + mem.createVirtualTileSets(); logger.info({ config }, 'Import:Start'); const objectTypes: Partial> = {};