Skip to content

Commit 895730d

Browse files
authored
direct: Include precise reason in the plan (#4448)
## Changes Instead of marking all fields from the config as "builtin_rule", specify which field behaviour this decision is based on, e.g. "spec:output_only" or "spec:immutable". For manual reasons, there is "spec:" prefix. ## Why Seeing "builtin_rule" in the plan does not tell enough about this field. ## Tests Existing tests where plan is recorded.
1 parent 68bda16 commit 895730d

File tree

38 files changed

+386
-249
lines changed

38 files changed

+386
-249
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": "builtin_rule",
32+
"reason": "etag_based",
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": "builtin_rule",
40+
"reason": "not_returned_by_api",
4141
"old": {
4242
"service_principal_name": "[UUID]"
4343
},

acceptance/bundle/resource_deps/pipelines_recreate/out.plan_update.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"changes": {
115115
"storage": {
116116
"action": "recreate",
117-
"reason": "builtin_rule",
117+
"reason": "immutable",
118118
"old": "dbfs:/my-storage",
119119
"new": "dbfs:/my-new-storage",
120120
"remote": "dbfs:/my-storage"

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": "builtin_rule",
26+
"reason": "input_only",
2727
"old": "main",
2828
"new": "main"
2929
},
3030
"dataset_schema": {
3131
"action": "skip",
32-
"reason": "builtin_rule",
32+
"reason": "input_only",
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": "builtin_rule",
41+
"reason": "etag_based",
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": "builtin_rule",
32+
"reason": "etag_based",
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": "builtin_rule",
48+
"reason": "etag_based",
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/model_serving_endpoints/basic/out.second-plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"name": {
3838
"action": "recreate",
39-
"reason": "builtin_rule",
39+
"reason": "immutable",
4040
"old": "[ENDPOINT_NAME_1]",
4141
"new": "[ENDPOINT_NAME_2]",
4242
"remote": "[ENDPOINT_NAME_1]"

acceptance/bundle/resources/model_serving_endpoints/recreate/catalog-name/out.second-plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"changes": {
6969
"config.auto_capture_config.catalog_name": {
7070
"action": "recreate",
71-
"reason": "builtin_rule",
71+
"reason": "immutable",
7272
"old": "main",
7373
"new": "other_catalog",
7474
"remote": "main"

acceptance/bundle/resources/model_serving_endpoints/recreate/name-change/out.second-plan.direct.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"changes": {
5959
"name": {
6060
"action": "recreate",
61-
"reason": "builtin_rule",
61+
"reason": "immutable",
6262
"old": "[ORIGINAL_ENDPOINT_ID]",
6363
"new": "[NEW_ENDPOINT_ID]",
6464
"remote": "[ORIGINAL_ENDPOINT_ID]"

0 commit comments

Comments
 (0)