From 39bc6f7bea3354e9af4d055ba16a72080fda0f62 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Tue, 24 Sep 2019 20:28:14 +0200 Subject: [PATCH] build: temporarily disable dynamic queries migration (#32837) Disables the dynamic queries migration until we can land the relevant framework changes (#32686 and #32720). PR Close #32837 --- packages/core/schematics/migrations.json | 5 ----- packages/core/schematics/test/BUILD.bazel | 1 + .../schematics/test/dynamic_queries_migration_spec.ts | 2 +- packages/core/schematics/test/test-migrations.json | 9 +++++++++ 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 packages/core/schematics/test/test-migrations.json diff --git a/packages/core/schematics/migrations.json b/packages/core/schematics/migrations.json index 30fd5090c3..aac7cb8d82 100644 --- a/packages/core/schematics/migrations.json +++ b/packages/core/schematics/migrations.json @@ -34,11 +34,6 @@ "version": "9-beta", "description": "Adds an Angular decorator to undecorated classes that have decorated fields", "factory": "./migrations/undecorated-classes-with-decorated-fields/index" - }, - "migration-v9-dynamic-queries": { - "version": "9-beta", - "description": "Removes the `static` flag from dynamic queries.", - "factory": "./migrations/dynamic-queries/index" } } } diff --git a/packages/core/schematics/test/BUILD.bazel b/packages/core/schematics/test/BUILD.bazel index c14f4c8010..f924396f97 100644 --- a/packages/core/schematics/test/BUILD.bazel +++ b/packages/core/schematics/test/BUILD.bazel @@ -5,6 +5,7 @@ ts_library( testonly = True, srcs = glob(["**/*.ts"]), data = [ + "test-migrations.json", "//packages/core/schematics:migrations.json", ], deps = [ diff --git a/packages/core/schematics/test/dynamic_queries_migration_spec.ts b/packages/core/schematics/test/dynamic_queries_migration_spec.ts index 31644d345f..d662024a75 100644 --- a/packages/core/schematics/test/dynamic_queries_migration_spec.ts +++ b/packages/core/schematics/test/dynamic_queries_migration_spec.ts @@ -20,7 +20,7 @@ describe('dynamic queries migration', () => { let previousWorkingDir: string; beforeEach(() => { - runner = new SchematicTestRunner('test', require.resolve('../migrations.json')); + runner = new SchematicTestRunner('test', require.resolve('./test-migrations.json')); host = new TempScopedNodeJsSyncHost(); tree = new UnitTestTree(new HostTree(host)); diff --git a/packages/core/schematics/test/test-migrations.json b/packages/core/schematics/test/test-migrations.json new file mode 100644 index 0000000000..684a6073e3 --- /dev/null +++ b/packages/core/schematics/test/test-migrations.json @@ -0,0 +1,9 @@ +{ + "schematics": { + "migration-v9-dynamic-queries": { + "version": "9-beta", + "description": "Removes the `static` flag from dynamic queries.", + "factory": "../migrations/dynamic-queries/index" + } + } +}