Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Updated postgres_data_apis.data_api1
Files: 0 uploaded, 0 deleted
Resources: 0 created, 1 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-data-api projects/test-project/branches/production/databases/test-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-project/branches/production/databases/test-database/data-api
{
"name": "projects/test-project/branches/production/databases/test-database/data-api",
"status": {
Expand Down Expand Up @@ -71,7 +71,7 @@ Resources:
data_api1:
Name:

>>> [CLI] postgres get-data-api projects/test-project/branches/production/databases/test-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-project/branches/production/databases/test-database/data-api
{
"name": "projects/test-project/branches/production/databases/test-database/data-api"
}
Expand All @@ -93,7 +93,7 @@ Destroy: 1 deleted
>>> musterr [CLI] postgres get-data-api projects/test-project/branches/production/databases/test-database/data-api
Error: Data API is not enabled for this database

>>> [CLI] postgres get-database projects/test-project/branches/production/databases/test-database
>>> retry [CLI] postgres get-database projects/test-project/branches/production/databases/test-database
{
"name": "projects/test-project/branches/production/databases/test-database"
}
6 changes: 3 additions & 3 deletions acceptance/bundle/deployment/bind/postgres_data_api/script
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ trace $CLI bundle deployment bind data_api1 "${DATA_API_NAME}" --auto-approve
trace $CLI bundle summary
trace $CLI bundle plan
trace $CLI bundle deploy
trace $CLI postgres get-data-api "${DATA_API_NAME}" | jq '{name, status: (.status | {db_schemas, db_max_rows})}'
trace retry $CLI postgres get-data-api "${DATA_API_NAME}" | jq '{name, status: (.status | {db_schemas, db_max_rows})}'
trace $CLI bundle plan

title "Unbind leaves the Data API enabled"
trace $CLI bundle deployment unbind data_api1
trace $CLI bundle summary
trace $CLI postgres get-data-api "${DATA_API_NAME}" | jq '{name}'
trace retry $CLI postgres get-data-api "${DATA_API_NAME}" | jq '{name}'

title "Bind again; destroy turns off the Data API"
trace $CLI bundle deployment bind data_api1 "${DATA_API_NAME}" --auto-approve
trace $CLI bundle destroy --auto-approve
trace musterr $CLI postgres get-data-api "${DATA_API_NAME}"
trace $CLI postgres get-database "${DATABASE_NAME}" | jq '{name}'
trace retry $CLI postgres get-database "${DATABASE_NAME}" | jq '{name}'
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Created postgres_projects.my_project
Files: 0 uploaded, 0 deleted
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/main
>>> retry [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/main
{
"branch_id": "main",
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/main",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trace $CLI bundle deploy
# Get branch details
project_name="projects/test-pg-proj-${UNIQUE_NAME}"
branch_name="${project_name}/branches/main"
trace $CLI postgres get-branch "${branch_name}" | branch_fields
trace retry $CLI postgres get-branch "${branch_name}" | branch_fields

trace $CLI bundle summary

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Created postgres_projects.my_project
Files: 0 uploaded, 0 deleted
Resources: 3 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-hard-[UNIQUE_NAME]
>>> retry [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-hard-[UNIQUE_NAME]
{
"branch_id": "test-pg-branch-hard-[UNIQUE_NAME]",
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-hard-[UNIQUE_NAME]",
Expand All @@ -34,7 +34,7 @@ Resources: 3 created, 0 changed, 0 deleted, 0 unchanged
"uid": "[BRANCH_UID]"
}

>>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-soft-[UNIQUE_NAME]
>>> retry [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-soft-[UNIQUE_NAME]
{
"branch_id": "test-pg-branch-soft-[UNIQUE_NAME]",
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-soft-[UNIQUE_NAME]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ trace $CLI bundle validate
rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy

trace $CLI postgres get-branch "${hard_branch}" | branch_fields
trace $CLI postgres get-branch "${soft_branch}" | branch_fields
trace retry $CLI postgres get-branch "${hard_branch}" | branch_fields
trace retry $CLI postgres get-branch "${soft_branch}" | branch_fields

# Deploy requests are split per-engine: Terraform sends "parent" in the branch
# create body, the direct engine sends it only as a query parameter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ print_requests.py --del-body parent,project_id,branch_id,endpoint_id,database_id
title "Fetch new branch ID"
branch_id_2=`read_id.py main`
# Get output differs between engines (different branch IDs)
$CLI postgres get-branch $branch_id_2 | branch_fields > out.get_branch.txt
retry $CLI postgres get-branch $branch_id_2 | branch_fields > out.get_branch.txt

title "Destroy and verify cleanup"
trace $CLI bundle destroy --auto-approve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created postgres_projects.my_project
Files: 0 uploaded, 0 deleted
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/production
>>> retry [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/production
{
"branch_id": "production",
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy

# Confirm the implicit production branch is now under management.
trace $CLI postgres get-branch "projects/test-pg-proj-${UNIQUE_NAME}/branches/production" | branch_fields
trace retry $CLI postgres get-branch "projects/test-pg-proj-${UNIQUE_NAME}/branches/production" | branch_fields

trace print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get '//postgres' '^//workspace-files/' '^//workspace/' '^//telemetry-ext' '^//operations/' > out.requests.deploy.json

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Created postgres_projects.my_project
Files: 0 uploaded, 0 deleted
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/dev-branch
>>> retry [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/dev-branch
{
"branch_id": "dev-branch",
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/dev-branch",
Expand Down Expand Up @@ -46,7 +46,7 @@ Resources: 0 created, 1 changed, 0 deleted, 1 unchanged

>>> print_requests.py --del-body project_id,branch_id --sort //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/

>>> [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/dev-branch
>>> retry [CLI] postgres get-branch projects/test-pg-proj-[UNIQUE_NAME]/branches/dev-branch
{
"branch_id": "dev-branch",
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/dev-branch",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ branch_name="projects/test-pg-proj-${UNIQUE_NAME}/branches/dev-branch"
title "Initial deployment"
trace $CLI bundle deploy
rm -f "$OUT_REQUESTS"
trace $CLI postgres get-branch "${branch_name}" | branch_fields
trace retry $CLI postgres get-branch "${branch_name}" | branch_fields

title "Change expire_time and re-deploy"
trace update_file.py databricks.yml "2030-01-01T00:00:00Z" "2031-06-15T12:00:00Z"
Expand All @@ -23,4 +23,4 @@ trace $CLI bundle plan -o json | nostamp | jq '.plan."resources.postgres_branche
rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy
trace print_requests.py --del-body project_id,branch_id --sort '//postgres' '^//workspace-files/' '^//workspace/' '^//telemetry-ext' '^//operations/' > out.requests.json
trace $CLI postgres get-branch "${branch_name}" | branch_fields
trace retry $CLI postgres get-branch "${branch_name}" | branch_fields
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Resources: 2 created, 0 changed, 0 deleted, 0 unchanged

>>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/

>>> [CLI] postgres get-branch [DEV_BRANCH_ID]
>>> retry [CLI] postgres get-branch [DEV_BRANCH_ID]
{
"branch_id": "dev-branch",
"name": "[DEV_BRANCH_ID]",
Expand Down Expand Up @@ -104,7 +104,7 @@ Resources: 0 created, 1 changed, 0 deleted, 1 unchanged

>>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/

>>> [CLI] postgres get-branch [DEV_BRANCH_ID]
>>> retry [CLI] postgres get-branch [DEV_BRANCH_ID]
{
"branch_id": "dev-branch",
"name": "[DEV_BRANCH_ID]",
Expand Down Expand Up @@ -141,7 +141,7 @@ Resources: 0 created, 1 changed, 0 deleted, 1 unchanged

>>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --keep --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/

>>> [CLI] postgres get-branch [DEV_BRANCH_ID]
>>> retry [CLI] postgres get-branch [DEV_BRANCH_ID]
{
"branch_id": "dev-branch",
"name": "[DEV_BRANCH_ID]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ print_requests create
project_name="projects/test-pg-proj-${UNIQUE_NAME}"
branch_name="${project_name}/branches/dev-branch"
branch_id_1=`read_id.py dev_branch`
trace $CLI postgres get-branch "${branch_name}" | branch_fields
trace retry $CLI postgres get-branch "${branch_name}" | branch_fields

title "Verify no_change (no changes)"
trace $CLI bundle plan
Expand All @@ -46,7 +46,7 @@ trace $CLI bundle deploy
print_requests update

branch_id_2=`read_id.py dev_branch`
trace $CLI postgres get-branch "${branch_name}" | branch_fields
trace retry $CLI postgres get-branch "${branch_name}" | branch_fields

title "Restore is_protected to false"
trace update_file.py databricks.yml "is_protected: true" "is_protected: false"
Expand All @@ -57,4 +57,4 @@ trace $CLI bundle deploy

print_requests restore

trace $CLI postgres get-branch "${branch_name}" | branch_fields
trace retry $CLI postgres get-branch "${branch_name}" | branch_fields
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Created postgres_projects.my_project
Files: 0 uploaded, 0 deleted
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-catalog catalogs/lakebase_test_[UNIQUE_NAME]
>>> retry [CLI] postgres get-catalog catalogs/lakebase_test_[UNIQUE_NAME]
{
"catalog_id": "lakebase_test_[UNIQUE_NAME]",
"name": "catalogs/lakebase_test_[UNIQUE_NAME]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trace $CLI bundle deploy

# Get catalog details. Hide volatile fields so cloud and local match.
catalog_name="catalogs/lakebase_test_${UNIQUE_NAME}"
trace $CLI postgres get-catalog "${catalog_name}" | catalog_fields
trace retry $CLI postgres get-catalog "${catalog_name}" | catalog_fields

trace $CLI bundle summary

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Created postgres_roles.owner
Files: 0 uploaded, 0 deleted
Resources: 5 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database",
Expand Down Expand Up @@ -111,7 +111,7 @@ Resources: 0 created, 0 changed, 1 deleted, 4 unchanged
>>> musterr [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
Error: Data API is not enabled for this database

>>> [CLI] postgres get-database projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database
>>> retry [CLI] postgres get-database projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database"
}
Expand Down
4 changes: 2 additions & 2 deletions acceptance/bundle/resources/postgres_data_apis/basic/script
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ title "Deploy enables the Data API"
rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy
print_postgres_requests deploy
trace $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace retry $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace $CLI bundle summary

title "Plan after deploy shows no changes"
Expand All @@ -30,4 +30,4 @@ rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy --auto-approve
print_postgres_requests remove
trace musterr $CLI postgres get-data-api "${data_api_name}"
trace $CLI postgres get-database "${database_name}" | jq '{name}'
trace retry $CLI postgres get-database "${database_name}" | jq '{name}'
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Created postgres_roles.owner
Files: 0 uploaded, 0 deleted
Resources: 5 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database",
Expand Down Expand Up @@ -56,7 +56,7 @@ Updated postgres_data_apis.my_data_api
Files: 0 uploaded, 0 deleted
Resources: 0 created, 1 changed, 0 deleted, 4 unchanged

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database",
Expand Down Expand Up @@ -91,7 +91,7 @@ Created postgres_data_apis.my_data_api
Files: 0 uploaded, 0 deleted
Resources: 1 created, 0 changed, 0 deleted, 4 unchanged

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ data_api_name="${database_name}/data-api"
title "Deploy enables the Data API"
envsubst < databricks.yml.tmpl > databricks.yml
trace $CLI bundle deploy
trace $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace retry $CLI postgres get-data-api "${data_api_name}" | data_api_fields

title "Change the spec out of band"
trace $CLI postgres update-data-api "${data_api_name}" spec --json '{"spec": {"db_schemas": ["public"], "db_max_rows": 7}}' | data_api_fields

title "Plan detects the change from status, and deploy restores the config"
trace $CLI bundle plan
trace $CLI bundle deploy
trace $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace retry $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace $CLI bundle plan

title "Disable the Data API out of band"
Expand All @@ -26,4 +26,4 @@ trace $CLI postgres delete-data-api "${data_api_name}"
title "Plan detects the Data API is gone and re-creates it"
trace $CLI bundle plan
trace $CLI bundle deploy
trace $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace retry $CLI postgres get-data-api "${data_api_name}" | data_api_fields
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Created postgres_roles.owner
Files: 0 uploaded, 0 deleted
Resources: 6 created, 0 changed, 0 deleted, 0 unchanged

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/first-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/first-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/first-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/first-database",
Expand Down Expand Up @@ -45,7 +45,7 @@ Resources: 1 created, 0 changed, 1 deleted, 5 unchanged
>>> musterr [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/first-database/data-api
Error: Data API is not enabled for this database

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/second-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/second-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/second-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/second-database",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ branch_name="projects/test-pg-proj-${UNIQUE_NAME}/branches/production"
title "Deploy the Data API on the first database"
envsubst < databricks.yml.tmpl > databricks.yml
trace $CLI bundle deploy
trace $CLI postgres get-data-api "${branch_name}/databases/first-database/data-api" | data_api_fields
trace retry $CLI postgres get-data-api "${branch_name}/databases/first-database/data-api" | data_api_fields

title "Moving the Data API to another database recreates it"
trace update_file.py databricks.yml 'postgres_databases.first.name' 'postgres_databases.second.name'
Expand All @@ -18,4 +18,4 @@ rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy
print_postgres_requests recreate
trace musterr $CLI postgres get-data-api "${branch_name}/databases/first-database/data-api"
trace $CLI postgres get-data-api "${branch_name}/databases/second-database/data-api" | data_api_fields
trace retry $CLI postgres get-data-api "${branch_name}/databases/second-database/data-api" | data_api_fields
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Updated postgres_data_apis.my_data_api
Files: 0 uploaded, 0 deleted
Resources: 0 created, 1 changed, 0 deleted, 4 unchanged

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database",
Expand Down Expand Up @@ -56,7 +56,7 @@ Updated postgres_data_apis.my_data_api
Files: 0 uploaded, 0 deleted
Resources: 0 created, 1 changed, 0 deleted, 4 unchanged

>>> [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
>>> retry [CLI] postgres get-data-api projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api
{
"name": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database/data-api",
"parent": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production/databases/my-database",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ trace $CLI bundle plan -o json | nostamp | jq '.plan."resources.postgres_data_ap
rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy
print_postgres_requests update
trace $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace retry $CLI postgres get-data-api "${data_api_name}" | data_api_fields

title "Remove a spec field: update_mask=spec keeps a field the request omits, so it keeps its last value"
sed '/server_cors_allowed_origins:/,$d' databricks.yml > databricks.yml.new && mv databricks.yml.new databricks.yml
trace $CLI bundle plan
rm -f "$OUT_REQUESTS"
trace $CLI bundle deploy
print_postgres_requests remove_field
trace $CLI postgres get-data-api "${data_api_name}" | data_api_fields
trace retry $CLI postgres get-data-api "${data_api_name}" | data_api_fields

title "Plan after update shows no changes"
trace $CLI bundle plan
Loading
Loading