Skip to content

Commit 8a17f78

Browse files
authored
direct: Replace custom changedesc logic with settings (#4389)
## Why Replace code with configuration, less error-prone.
1 parent 75c185d commit 8a17f78

File tree

15 files changed

+30
-50
lines changed

15 files changed

+30
-50
lines changed

acceptance/bundle/migrate/dashboards/out.plan_after_migrate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"serialized_dashboard": {
3131
"action": "skip",
32-
"reason": "custom",
32+
"reason": "builtin_rule",
3333
"old": "{\"pages\":[{\"name\":\"02724bf2\",\"displayName\":\"Dashboard test bundle-deploy-dashboard\"}]}\n",
3434
"new": "{\"pages\":[{\"name\":\"02724bf2\",\"displayName\":\"Dashboard test bundle-deploy-dashboard\"}]}\n",
3535
"remote": "{\"pages\":[{\"displayName\":\"Dashboard test bundle-deploy-dashboard\",\"name\":\"02724bf2\",\"pageType\":\"PAGE_TYPE_CANVAS\"}]}\n"

acceptance/bundle/migrate/runas/out.plan.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"changes": {
3838
"run_as": {
3939
"action": "skip",
40-
"reason": "custom",
40+
"reason": "builtin_rule",
4141
"old": {
4242
"service_principal_name": "[UUID]"
4343
},

acceptance/bundle/resources/dashboards/dataset-catalog-schema/out.plan.direct.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
"changes": {
2424
"dataset_catalog": {
2525
"action": "skip",
26-
"reason": "custom",
26+
"reason": "builtin_rule",
2727
"old": "main",
2828
"new": "main"
2929
},
3030
"dataset_schema": {
3131
"action": "skip",
32-
"reason": "custom",
32+
"reason": "builtin_rule",
3333
"old": "default",
3434
"new": "default"
3535
},

acceptance/bundle/resources/dashboards/detect-change/out.plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"serialized_dashboard": {
4040
"action": "skip",
41-
"reason": "custom",
41+
"reason": "builtin_rule",
4242
"old": "{\n \"pages\": [\n {\n \"displayName\": \"New Page\",\n \"layout\": [\n {\n \"position\": {\n \"height\": 2,\n \"width\": 6,\n \"x\": 0,\n \"y\": 0\n },\n \"widget\": {\n \"name\": \"82eb9107\",\n \"textbox_spec\": \"# I'm a title\"\n }\n },\n {\n \"position\": {\n \"height\": 2,\n \"width\": 6,\n \"x\": 0,\n \"y\": 2\n },\n \"widget\": {\n \"name\": \"ffa6de4f\",\n \"textbox_spec\": \"Text\"\n }\n }\n ],\n \"name\": \"fdd21a3c\"\n }\n ]\n}\n",
4343
"new": "{\n \"pages\": [\n {\n \"displayName\": \"New Page\",\n \"layout\": [\n {\n \"position\": {\n \"height\": 2,\n \"width\": 6,\n \"x\": 0,\n \"y\": 0\n },\n \"widget\": {\n \"name\": \"82eb9107\",\n \"textbox_spec\": \"# I'm a title\"\n }\n },\n {\n \"position\": {\n \"height\": 2,\n \"width\": 6,\n \"x\": 0,\n \"y\": 2\n },\n \"widget\": {\n \"name\": \"ffa6de4f\",\n \"textbox_spec\": \"Text\"\n }\n }\n ],\n \"name\": \"fdd21a3c\"\n }\n ]\n}\n",
4444
"remote": "{}\n"

acceptance/bundle/resources/dashboards/simple/out.plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"serialized_dashboard": {
3131
"action": "skip",
32-
"reason": "custom",
32+
"reason": "builtin_rule",
3333
"old": "{ }\n",
3434
"new": "{ }\n",
3535
"remote": "{}\n"

acceptance/bundle/resources/dashboards/unpublish-out-of-band/out.plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"serialized_dashboard": {
4747
"action": "skip",
48-
"reason": "custom",
48+
"reason": "builtin_rule",
4949
"old": "{\"pages\":[{\"displayName\":\"Test Dashboard\",\"name\":\"test-page\"}]}",
5050
"new": "{\"pages\":[{\"displayName\":\"Test Dashboard\",\"name\":\"test-page\"}]}",
5151
"remote": "{\"pages\":[{\"displayName\":\"Test Dashboard\",\"name\":\"test-page\",\"pageType\":\"PAGE_TYPE_CANVAS\"}]}"

acceptance/bundle/resources/quality_monitors/change_assets_dir/out.plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"warehouse_id": {
4040
"action": "skip",
41-
"reason": "config_only",
41+
"reason": "builtin_rule",
4242
"old": "[TEST_DEFAULT_WAREHOUSE_ID]",
4343
"new": "[TEST_DEFAULT_WAREHOUSE_ID]"
4444
}

acceptance/bundle/resources/quality_monitors/change_output_schema_name/out.plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"warehouse_id": {
3737
"action": "skip",
38-
"reason": "config_only",
38+
"reason": "builtin_rule",
3939
"old": "[TEST_DEFAULT_WAREHOUSE_ID]",
4040
"new": "[TEST_DEFAULT_WAREHOUSE_ID]"
4141
}

acceptance/bundle/resources/quality_monitors/change_table_name/out.plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"warehouse_id": {
4040
"action": "skip",
41-
"reason": "config_only",
41+
"reason": "builtin_rule",
4242
"old": "[TEST_DEFAULT_WAREHOUSE_ID]",
4343
"new": "[TEST_DEFAULT_WAREHOUSE_ID]"
4444
}

acceptance/bundle/resources/quality_monitors/create/out.plan_noop.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"changes": {
2121
"warehouse_id": {
2222
"action": "skip",
23-
"reason": "config_only",
23+
"reason": "builtin_rule",
2424
"old": "[TEST_DEFAULT_WAREHOUSE_ID]",
2525
"new": "[TEST_DEFAULT_WAREHOUSE_ID]"
2626
}

0 commit comments

Comments
 (0)