Skip to content

Add domains and pages bundle resources - #7854

Draft
pietern wants to merge 1 commit into
mainfrom
pietern/bundle-domains-pages
Draft

pietern wants to merge 1 commit into
mainfrom
pietern/bundle-domains-pages

Conversation

@pietern

@pietern pietern commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Bundles can now manage two Unity Catalog Discover resources, so a team can keep its business vocabulary in git next to the jobs, dashboards and tables it describes, review changes to it in pull requests, and roll it out with bundle deploy.

  • domains: a domain groups data and AI assets on the Discover page by business area. A bundle sets its governed tag key, subtitle, description, icon, owners and draft state, and can nest a subdomain under a parent domain.
  • pages: a page documents a business term or concept in a domain. A bundle sets its title, description, synonyms and state (draft or published), and its Markdown body either inline with body or from a file in the repository with file_path.
  • domain lookup variable: resolves the governed tag key of a domain to the ID of the domain, for a bundle that adds pages to a domain it does not own.
variables:
  finance_domain:
    lookup:
      domain: Finance                # a domain owned by another team

resources:
  domains:
    payments:
      tag_key: Payments              # the governed tag must already exist
      subtitle: Card payments, refunds and settlement
      icon:
        name: BANK
        color: "#1B5E20"

    fraud:                           # a subdomain
      tag_key: Payments/Fraud
      parent_domain_id: ${resources.domains.payments.id}

  pages:
    settlement:
      domain: ${resources.domains.payments.name}
      display_name: Settlement
      description: The transfer of the money of a payment to the merchant.
      synonyms: [payout]
      state: PUBLISHED
      file_path: ./pages/settlement.md        # Markdown file next to the YAML

    invoice:
      domain: domains/${var.finance_domain}
      display_name: Invoice
      body: |-                                # or inline Markdown
        An **invoice** is a request for payment sent to a customer.

How the resources work together

  • A page names its domain as domains/{domain_id}. For a domain in the same bundle that is ${resources.domains.<key>.name}, and the bundle then creates the domain before its pages and deletes it after them. For a domain outside the bundle it is domains/${var.<lookup variable>}, or the ID written out.
  • A subdomain names its parent with parent_domain_id: ${resources.domains.<key>.id}.
  • file_path is relative to the file that defines the page, as for dashboards and Genie spaces. The Markdown is deployed as written, except that Windows line endings are converted to Unix line endings, so that a checkout on Windows deploys the same page as one on Linux or macOS. Setting both body and file_path is an error.
  • In development mode the title of a page gets the usual [dev <user>] prefix, so each developer deploys their own copy. A domain is not prefixed, because its tag key has to match an existing governed tag.
  • bundle plan reports a change that was made to a domain or a page outside of the bundle, such as an edit in the UI, and the next deploy overwrites it.
  • A page is published or unpublished only when its state changes. Editing a published page updates it in place and keeps it published. When state is not set, a new page is a draft and the bundle never changes the state afterwards. The same holds for draft on a domain.
  • Moving a page to another domain updates the page in place, so it keeps its ID and history. Changing the tag key or the parent of a domain recreates the domain.
  • Deleting or recreating a domain or a page asks for confirmation: a deleted page cannot be restored, and deleting a domain deletes its subdomains.
  • bundle deployment bind and unbind work for both resources. The ID is the one in the URL of the domain or page.
  • A create that fails with a timeout is recovered: a page create carries a request ID, so repeating it returns the page the first attempt created, and a domain is looked up by its tag key.
  • Python: domains is available in databricks-bundles. pages is not yet, because Python models are only generated for resources at Public Preview or later and pages are in Beta.

Requirements and limits

  • A domain is built on a governed tag, which must exist before the deploy. Creating and changing a domain needs the Manage Discover permission.
  • The domain lookup can only find domains that the deploying identity is allowed to manage. Without that, write the ID of the domain in the configuration.
  • The Pages API is not part of the Databricks SDKs yet, so the CLI calls its REST API directly.
  • Not included: links from a page to tables, dashboards and other assets; permissions on domains and pages; and generating bundle configuration from an existing page.
  • Deployment history does not know these two resource types yet. A deployment with history enabled does not record them.
  • The Pages API can return the previous state of a page for several seconds after an update or a delete, so a bundle plan that immediately follows a deploy can report a change that is already applied.
  • A domain that still has pages which are not part of the bundle cannot be deleted. bundle destroy stops with the error from the API and keeps the domain in the state, so a later destroy tries again.

Why

Teams that adopt Discover want to manage their domains and glossary the way they manage the rest of their workspace: in git, reviewed, and promoted from development to production. Domains can already be managed with Terraform, pages only through the REST API, and neither could be part of a bundle.

Tests

  • Unit tests for the Pages API client, the update logic of both resources, loading a page body from a file, path translation, synonym normalization and the domain lookup.
  • Acceptance tests against the fake server, which now implements both APIs including the validation that matters here (one domain per governed tag, subdomain tag keys, immutable fields, published titles unique per domain, deletion refused while a domain has pages):
    • bundle/resources/domains: create, update in place, draft and publish, recreate on a tag key change, subdomains, destroy with a page that is not part of the bundle.
    • bundle/resources/pages: inline and file bodies, update, publish, moving a page to another domain, drift after an edit outside the bundle, the domain lookup.
    • bundle/resources/pages/examples: three complete example bundles written to be reused in the documentation (a glossary in a shared domain; a domain, a subdomain and their glossary; drafts in development and published pages in production).
    • bundle/deployment/bind for both resources, the invariant suite (no drift after deploy, idempotent delete and destroy) and PyDABs support for domains.
  • Pages were also run against two real workspaces: create from a file and inline, update, clearing a field, moving a page to another domain, drift detection, bind and unbind, development mode, deploying as a service principal, and destroy.
  • Domains and the domain lookup have not been run against a real workspace yet. Creating a domain needs the Manage Discover permission, which was not available on the workspaces used for testing. They are covered by the fake server only, and someone with that permission should run bundle/resources/pages/examples/domain-with-glossary once before this merges.

This pull request and its description were written by Isaac.

@github-actions github-actions Bot added DABs DABs related issues PyDABs labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: beb739dc9 | Workflow run

Selected 20 changed tests (limit=20, 6 not selected)

27 tests: regression=13 unreleased=0 coverage=14 failing=0
test branch main (9a14ad6) latest (v1.28.0)
TestAccept/bundle/deployment/bind/domain/DMS= ✅ ❌ ❌
TestAccept/bundle/deployment/bind/page/DMS= ✅ ❌ ❌
TestAccept/bundle/invariant/continue_293/DMS=/INPUT_CONFIG=domain.yml.tmpl ✅ ✅ ✅
TestAccept/bundle/invariant/continue_293/DMS=/INPUT_CONFIG=page.yml.tmpl ✅ ✅ ✅
TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=domain.yml.tmpl/READPLAN= ✅ ✅ ✅
TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=domain.yml.tmpl/READPLAN=1 ✅ ✅ ✅
TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=page.yml.tmpl/READPLAN= ✅ ✅ ✅
TestAccept/bundle/invariant/delete_idempotent/DMS=/INPUT_CONFIG=page.yml.tmpl/READPLAN=1 ✅ ✅ ✅
TestAccept/bundle/invariant/destroy_idempotent/DMS=/INPUT_CONFIG=domain.yml.tmpl/READPLAN= ✅ ✅ ✅
TestAccept/bundle/invariant/destroy_idempotent/DMS=/INPUT_CONFIG=domain.yml.tmpl/READPLAN=1 ✅ ✅ ✅
TestAccept/bundle/invariant/destroy_idempotent/DMS=/INPUT_CONFIG=page.yml.tmpl/READPLAN= ✅ ✅ ✅
TestAccept/bundle/invariant/destroy_idempotent/DMS=/INPUT_CONFIG=page.yml.tmpl/READPLAN=1 ✅ ✅ ✅
TestAccept/bundle/invariant/no_drift/DMS=/INPUT_CONFIG=domain.yml.tmpl/READPLAN= ✅ ✅ ✅
TestAccept/bundle/invariant/no_drift/DMS=/INPUT_CONFIG=domain.yml.tmpl/READPLAN=1 ✅ ✅ ✅
TestAccept/bundle/invariant/no_drift/DMS=/INPUT_CONFIG=page.yml.tmpl/READPLAN= ✅ ✅ ✅
TestAccept/bundle/invariant/no_drift/DMS=/INPUT_CONFIG=page.yml.tmpl/READPLAN=1 ✅ ✅ ✅
TestAccept/bundle/python/domains-support/DMS=/PYDAB_VERSION=current ✅ ❌ ❌
TestAccept/bundle/python/domains-support/DMS=true/PYDAB_VERSION=current ✅ ❌ ❌
TestAccept/bundle/resources/domains/basic/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/domains/destroy-with-pages/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/pages/basic/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/pages/examples/domain-with-glossary/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/pages/examples/draft-in-dev-published-in-prod/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/pages/examples/glossary-in-shared-domain/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/pages/file-body/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/pages/lookup-domain/DMS= ✅ ❌ ❌
TestAccept/bundle/resources/pages/move-domain/DMS= ✅ ❌ ❌
TestAccept/bundle/deployment/bind/domain/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/deployment/bind/domain/output.txt
        +++ /tmp/TestAcceptbundledeploymentbinddomainDMS=2518288454/002/output.txt
        @@ -1,70 +1,15 @@
         
         === Create the domain outside the bundle
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        ->>> [CLI] bundle deployment bind payments [UUID][0] --auto-approve
        -Successfully bound domain with an id '[UUID][0]'
        -Run 'bundle deploy' to deploy changes to your workspace
         
        ->>> [CLI] bundle summary
        -Name: test-bind-domain
        -Target: default
        -Workspace:
        -  User: [USERNAME]
        -  Path: /Workspace/Users/[USERNAME]/.bundle/test-bind-domain/default
        -Resources:
        -  Domains:
        -    payments:
        -      Name: Payments
        -      URL:  [DATABRICKS_URL]/discover/manage/domains/[UUID][0]?w=[WORKSPACE_ID]
        +>>> [CLI] bundle deployment bind payments [UUID] --auto-approve
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        -=== The bound domain differs from the config, so the deploy updates it in place
        +Error: no such resource: payments
         
        ->>> [CLI] bundle plan
        -update domains.payments
        -
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bind-domain/default/files...
        -Updated domains.payments
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
        -
        ->>> print_requests.py //domains
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/domains/[UUID][0]",
        -  "q": {
        -    "update_mask": "subtitle,description,icon,technical_owner_ids,business_owner_ids"
        -  },
        -  "body": {
        -    "subtitle": "Payment processing data",
        -    "tag_key": "Payments"
        -  }
        -}
        -
        ->>> [CLI] domains get-domain domains/[UUID][0]
        -{
        -  "tag_key": "Payments",
        -  "subtitle": "Payment processing data"
        -}
        -
        -=== Binding a domain that does not exist is an error
        -
        ->>> [CLI] bundle deployment unbind payments
        -
        ->>> musterr [CLI] bundle deployment bind payments [UUID][1] --auto-approve
        -Error: domain with an id '[UUID][1]' is not found
        -
        -=== After unbind the domain is no longer part of the bundle, so destroy leaves it alone
        -
        ->>> [CLI] bundle destroy --auto-approve
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bind-domain/default
        -
        -Destroy: 0 deleted
        -
        ->>> [CLI] domains get-domain domains/[UUID][0]
        -{
        -  "tag_key": "Payments",
        -  "subtitle": "Payment processing data"
        -}
        +Exit code: 1

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/deployment/bind/page/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/deployment/bind/page/output.txt
        +++ /tmp/TestAcceptbundledeploymentbindpageDMS=694563778/002/output.txt
        @@ -1,69 +1,24 @@
         
         === Create the domain and the page outside the bundle
        +Warning: unknown field: domain
        +  at variables.payments_domain.lookup
        +  in databricks.yml:7:7
         
        ->>> [CLI] bundle deployment bind chargeback [UUID] --auto-approve
        -Successfully bound page with an id '[UUID]'
        -Run 'bundle deploy' to deploy changes to your workspace
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:10:3
         
        ->>> [CLI] bundle summary
        -Name: test-bind-page
        -Target: default
        -Workspace:
        -  User: [USERNAME]
        -  Path: /Workspace/Users/[USERNAME]/.bundle/test-bind-page/default
        -Resources:
        -  Pages:
        -    chargeback:
        -      Name: Chargeback
        -      URL:  [DATABRICKS_URL]/discover/pages/[UUID]?w=[WORKSPACE_ID]
         
        -=== The body of the bound page differs from the config, so the deploy updates it in place
        +>>> [CLI] bundle deployment bind chargeback [UUID] --auto-approve
        +Warning: unknown field: domain
        +  at variables.payments_domain.lookup
        +  in databricks.yml:7:7
         
        ->>> [CLI] bundle plan
        -update pages.chargeback
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:10:3
         
        -Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
        +Error: failed to resolve , err: no valid lookup fields provided
         
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bind-page/default/files...
        -Updated pages.chargeback
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
         
        ->>> print_requests.py //knowledge
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/knowledge/pages/[UUID]",
        -  "q": {
        -    "update_mask": "display_name,body,synonyms,description"
        -  },
        -  "body": {
        -    "body": "A reversal of a card payment.",
        -    "description": "",
        -    "display_name": "Chargeback",
        -    "synonyms": []
        -  }
        -}
        -
        -=== The page keeps the state it had: the config does not set one
        -
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID]
        -{
        -  "display_name": "Chargeback",
        -  "body": "A reversal of a card payment.",
        -  "state": "PUBLISHED"
        -}
        -
        -=== After unbind the page is no longer part of the bundle, so destroy leaves it alone
        -
        ->>> [CLI] bundle deployment unbind chargeback
        -
        ->>> [CLI] bundle destroy --auto-approve
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bind-page/default
        -
        -Destroy: 0 deleted
        -
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID]
        -{
        -  "display_name": "Chargeback"
        -}
        +Exit code: 1

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/python/domains-support/DMS=/PYDAB_VERSION=current: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "\n>>> uv run [UV_ARGS] -q [CLI] bundle validate --output json\n{\n  \"experimental\": {\n    \"python\": {\n      \"mutators\": [\n        \"mutators:update_domain\"\n      ],\n      \"resources\": [\n        \"resources:load_resources\"\n      ]\n    }\n  },\n  \"resources\": {\n    \"domains\": {\n      \"my_domain_1\": {\n        \"subtitle\": \"Payment processing data (updated)\",\n        \"tag_key\": \"Payments\"\n      },\n      \"my_domain_2\": {\n        \"draft\": true,\n        \"icon\": {\n          \"color\": \"#C83243\",\n          \"name\": \"SHIELD_CHECKERED\"\n        },\n        \"parent_domain_id\": \"${resources.domains.my_domain_1.id}\",\n        \"subtitle\": \"Fraud detection (updated)\",\n        \"tag_key\": \"Payments/Fraud\"\n      }\n    }\n  }\n}\n"
        	            	actual  : "\n>>> uv run [UV_ARGS] -q [CLI] bundle validate --output json\nWarning: unknown field: domains\n  at resources\n  in databricks.yml:13:3\n\nError: unknown field: domains\n  at resources\n  in __generated_by_python__.yml:1:339\n\n{\n  \"experimental\": {\n    \"python\": {\n      \"mutators\": [\n        \"mutators:update_domain\"\n      ],\n      \"resources\": [\n        \"resources:load_resources\"\n      ]\n    }\n  },\n  \"resources\": {}\n}\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,2 +2,10 @@
        	            	 >>> uv run [UV_ARGS] -q [CLI] bundle validate --output json
        	            	+Warning: unknown field: domains
        	            	+  at resources
        	            	+  in databricks.yml:13:3
        	            	+
        	            	+Error: unknown field: domains
        	            	+  at resources
        	            	+  in __generated_by_python__.yml:1:339
        	            	+
        	            	 {
        	            	@@ -13,21 +21,6 @@
        	            	   },
        	            	-  "resources": {
        	            	-    "domains": {
        	            	-      "my_domain_1": {
        	            	-        "subtitle": "Payment processing data (updated)",
        	            	-        "tag_key": "Payments"
        	            	-      },
        	            	-      "my_domain_2": {
        	            	-        "draft": true,
        	            	-        "icon": {
        	            	-          "color": "#C83243",
        	            	-          "name": "SHIELD_CHECKERED"
        	            	-        },
        	            	-        "parent_domain_id": "${resources.domains.my_domain_1.id}",
        	            	-        "subtitle": "Fraud detection (updated)",
        	            	-        "tag_key": "Payments/Fraud"
        	            	-      }
        	            	-    }
        	            	-  }
        	            	+  "resources": {}
        	            	 }
        	            	 
        	            	+Exit code: 1
        	            	+
        	Test:       	TestAccept/bundle/python/domains-support/DMS=/PYDAB_VERSION=current
        	Messages:   	bundle/python/domains-support/output.txt vs /tmp/TestAcceptbundlepythondomains-supportDMS=PYDAB_VERSION=curr78087022/002/output.txt

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/python/domains-support/DMS=true/PYDAB_VERSION=current: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:704
        	Error:      	Not equal: 
        	            	expected: "\n>>> uv run [UV_ARGS] -q [CLI] bundle validate --output json\n{\n  \"experimental\": {\n    \"python\": {\n      \"mutators\": [\n        \"mutators:update_domain\"\n      ],\n      \"resources\": [\n        \"resources:load_resources\"\n      ]\n    }\n  },\n  \"resources\": {\n    \"domains\": {\n      \"my_domain_1\": {\n        \"subtitle\": \"Payment processing data (updated)\",\n        \"tag_key\": \"Payments\"\n      },\n      \"my_domain_2\": {\n        \"draft\": true,\n        \"icon\": {\n          \"color\": \"#C83243\",\n          \"name\": \"SHIELD_CHECKERED\"\n        },\n        \"parent_domain_id\": \"${resources.domains.my_domain_1.id}\",\n        \"subtitle\": \"Fraud detection (updated)\",\n        \"tag_key\": \"Payments/Fraud\"\n      }\n    }\n  }\n}\n"
        	            	actual  : "\n>>> uv run [UV_ARGS] -q [CLI] bundle validate --output json\nWarning: unknown field: domains\n  at resources\n  in databricks.yml:13:3\n\nError: unknown field: domains\n  at resources\n  in __generated_by_python__.yml:1:339\n\n{\n  \"experimental\": {\n    \"python\": {\n      \"mutators\": [\n        \"mutators:update_domain\"\n      ],\n      \"resources\": [\n        \"resources:load_resources\"\n      ]\n    }\n  },\n  \"resources\": {}\n}\n\nExit code: 1\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -2,2 +2,10 @@
        	            	 >>> uv run [UV_ARGS] -q [CLI] bundle validate --output json
        	            	+Warning: unknown field: domains
        	            	+  at resources
        	            	+  in databricks.yml:13:3
        	            	+
        	            	+Error: unknown field: domains
        	            	+  at resources
        	            	+  in __generated_by_python__.yml:1:339
        	            	+
        	            	 {
        	            	@@ -13,21 +21,6 @@
        	            	   },
        	            	-  "resources": {
        	            	-    "domains": {
        	            	-      "my_domain_1": {
        	            	-        "subtitle": "Payment processing data (updated)",
        	            	-        "tag_key": "Payments"
        	            	-      },
        	            	-      "my_domain_2": {
        	            	-        "draft": true,
        	            	-        "icon": {
        	            	-          "color": "#C83243",
        	            	-          "name": "SHIELD_CHECKERED"
        	            	-        },
        	            	-        "parent_domain_id": "${resources.domains.my_domain_1.id}",
        	            	-        "subtitle": "Fraud detection (updated)",
        	            	-        "tag_key": "Payments/Fraud"
        	            	-      }
        	            	-    }
        	            	-  }
        	            	+  "resources": {}
        	            	 }
        	            	 
        	            	+Exit code: 1
        	            	+
        	Test:       	TestAccept/bundle/python/domains-support/DMS=true/PYDAB_VERSION=current
        	Messages:   	bundle/python/domains-support/output.txt vs /tmp/TestAcceptbundlepythondomains-supportDMS=truePYDAB_VERSION=788347082/002/output.txt

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/resources/domains/basic/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/domains/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcesdomainsbasicDMS=1532818924/002/output.txt
        @@ -1,210 +1,44 @@
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Created domains.fraud
        -Created domains.payments
         Files: 1 uploaded, 0 deleted
        -Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 0 unchanged
         
         >>> print_requests.py //domains
        -{
        -  "method": "POST",
        -  "path": "/api/2.0/domains",
        -  "body": {
        -    "description": "Everything about payments.",
        -    "icon": {
        -      "color": "#1B5E20",
        -      "name": "BANK"
        -    },
        -    "subtitle": "Payment processing data",
        -    "tag_key": "Payments"
        -  }
        -}
        -{
        -  "method": "POST",
        -  "path": "/api/2.0/domains",
        -  "body": {
        -    "parent_domain_id": "[UUID][0]",
        -    "subtitle": "Fraud detection",
        -    "tag_key": "Payments/Fraud"
        -  }
        -}
         
         === Summary shows the domain ID
         
         >>> [CLI] bundle summary
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
        +
         Name: test-bundle
         Target: default
         Workspace:
           User: [USERNAME]
           Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
         Resources:
        -  Domains:
        -    fraud:
        -      Name: Payments/Fraud
        -      URL:  [DATABRICKS_URL]/discover/manage/domains/[UUID][1]?w=[WORKSPACE_ID]
        -    payments:
        -      Name: Payments
        -      URL:  [DATABRICKS_URL]/discover/manage/domains/[UUID][0]?w=[WORKSPACE_ID]
         
         === Verify deployment
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        ->>> [CLI] domains get-domain domains/[UUID][0]
        -{
        -  "name": "domains/[UUID][0]",
        -  "tag_key": "Payments",
        -  "subtitle": "Payment processing data",
        -  "icon": {
        -    "color": "#1B5E20",
        -    "name": "BANK"
        -  },
        -  "effective_draft": false
        -}
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        ->>> [CLI] domains get-domain domains/[UUID][1]
        -{
        -  "name": "domains/[UUID][1]",
        -  "tag_key": "Payments/Fraud",
        -  "parent_domain_id": "[UUID][0]"
        -}
         
        -=== A second plan has no changes
        +>>> [CLI] domains get-domain domains/null
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
        +Error: Domain not found: null
         
        -=== Update the subtitle (should update in place, and leave draft alone)
        -
        ->>> update_file.py databricks.yml Payment processing data Payments data
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated domains.payments
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        -
        ->>> print_requests.py //domains
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/domains/[UUID][0]",
        -  "q": {
        -    "update_mask": "subtitle,description,icon,technical_owner_ids,business_owner_ids"
        -  },
        -  "body": {
        -    "description": "Everything about payments.",
        -    "icon": {
        -      "color": "#1B5E20",
        -      "name": "BANK"
        -    },
        -    "subtitle": "Payments data",
        -    "tag_key": "Payments"
        -  }
        -}
        -
        -=== Mark the domain as a draft
        -
        ->>> update_file.py databricks.yml description: Everything about payments. draft: true
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated domains.payments
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        -
        ->>> print_requests.py //domains
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/domains/[UUID][0]",
        -  "q": {
        -    "update_mask": "subtitle,description,icon,technical_owner_ids,business_owner_ids,draft"
        -  },
        -  "body": {
        -    "draft": true,
        -    "icon": {
        -      "color": "#1B5E20",
        -      "name": "BANK"
        -    },
        -    "subtitle": "Payments data",
        -    "tag_key": "Payments"
        -  }
        -}
        -
        ->>> [CLI] domains get-domain domains/[UUID][0]
        -{
        -  "subtitle": "Payments data",
        -  "description": "",
        -  "effective_draft": true
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
        -
        -=== Publish the domain again (an explicit false is written)
        -
        ->>> update_file.py databricks.yml draft: true draft: false
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated domains.payments
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        -
        ->>> print_requests.py //domains
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/domains/[UUID][0]",
        -  "q": {
        -    "update_mask": "subtitle,description,icon,technical_owner_ids,business_owner_ids,draft"
        -  },
        -  "body": {
        -    "draft": false,
        -    "icon": {
        -      "color": "#1B5E20",
        -      "name": "BANK"
        -    },
        -    "subtitle": "Payments data",
        -    "tag_key": "Payments"
        -  }
        -}
        -
        ->>> [CLI] domains get-domain domains/[UUID][0]
        -{
        -  "effective_draft": false
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
... (35 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/resources/domains/destroy-with-pages/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/domains/destroy-with-pages/output.txt
        +++ /tmp/TestAcceptbundleresourcesdomainsdestroy-with-pagesDMS=2981032642/002/output.txt
        @@ -1,84 +1,34 @@
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Created domains.payments
        -Created pages.chargeback
         Files: 1 uploaded, 0 deleted
        -Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 0 unchanged
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        -=== Add a page to the domain outside of the bundle
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
         
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][0]
        -{
        -  "display_name": "Refund",
        -  "state": "DRAFT"
        -}
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        -=== The page of the bundle is deleted before its domain. The API refuses to delete a domain that still has a page, and the destroy stops with that error
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
         
        ->>> musterr [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.domains.payments
        -  delete resources.pages.chargeback
         
        -This action will result in the deletion of the following domains.
        -Deleting a domain also deletes its subdomains. The governed tag of a domain and the tags
        -on assets are kept:
        -  delete resources.domains.payments
        +=== Add a page to the domain outside of the bundle
        +Error: Domain not found: null
         
        -This action will result in the deletion of the following pages.
        -A deleted page cannot be restored:
        -  delete resources.pages.chargeback
        -
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
        -
        -Error: cannot delete resources.domains.payments: deleting id=[UUID][1]: Cannot delete a domain that has pages. Delete the pages first or set force to true. (400 BAD_REQUEST)
        -
        -Endpoint: DELETE [DATABRICKS_URL]/api/2.0/domains/[UUID][1]?
        -HTTP Status: 400 Bad Request
        -API error_code: BAD_REQUEST
        -API message: Cannot delete a domain that has pages. Delete the pages first or set force to true.
        -
        -
        ->>> print_requests.py //knowledge //domains
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.0/knowledge/pages/[UUID][2]"
        -}
        -{
        -  "method": "DELETE",
        -  "path": "/api/2.0/domains/[UUID][1]"
        -}
        -
        -=== The domain and the page that is not part of the bundle are still there; the page of the bundle is gone
        -
        ->>> [CLI] domains get-domain domains/[UUID][1]
        -{
        -  "tag_key": "Payments"
        -}
        -
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][0]
        -{
        -  "display_name": "Refund"
        -}
        -
        ->>> musterr [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -Error: Knowledge page with id '[UUID][2]' does not exist in account: [UUID][3]
        -
        -=== Once the other page is deleted, the destroy goes through
        -
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.domains.payments
        -
        -This action will result in the deletion of the following domains.
        -Deleting a domain also deletes its subdomains. The governed tag of a domain and the tags
        -on assets are kept:
        -  delete resources.domains.payments
        -
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
        -
        -Destroy: 1 deleted
        -
        ->>> musterr [CLI] domains get-domain domains/[UUID][1]
        -Error: Domain not found: [UUID][1]
        +Exit code: 1

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/resources/pages/basic/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/pages/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcespagesbasicDMS=2576363962/002/output.txt
        @@ -1,187 +1,48 @@
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Created domains.payments
        -Created pages.chargeback
         Files: 1 uploaded, 0 deleted
        -Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 0 unchanged
         
         >>> print_requests.py //knowledge
        -{
        -  "method": "POST",
        -  "path": "/api/2.0/knowledge/pages",
        -  "q": {
        -    "request_id": "[UUID][0]"
        -  },
        -  "body": {
        -    "body": "# Chargeback\n\nA reversal of a card payment, initiated by the cardholder's bank.",
        -    "description": "A reversal of a card payment.",
        -    "display_name": "Chargeback",
        -    "domain": "domains/[UUID][1]",
        -    "synonyms": [
        -      "dispute",
        -      "reversal"
        -    ]
        -  }
        -}
         
         === Summary shows the page ID
         
         >>> [CLI] bundle summary
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
        +
         Name: test-bundle
         Target: default
         Workspace:
           User: [USERNAME]
           Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
         Resources:
        -  Domains:
        -    payments:
        -      Name: Payments
        -      URL:  [DATABRICKS_URL]/discover/manage/domains/[UUID][1]?w=[WORKSPACE_ID]
        -  Pages:
        -    chargeback:
        -      Name: Chargeback
        -      URL:  [DATABRICKS_URL]/discover/pages/[UUID][2]?w=[WORKSPACE_ID]
         
         === Verify deployment (a page is a draft unless the config says otherwise)
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -{
        -  "name": "pages/[UUID][2]",
        -  "display_name": "Chargeback",
        -  "description": "A reversal of a card payment.",
        -  "synonyms": [
        -    "dispute",
        -    "reversal"
        -  ],
        -  "state": "DRAFT",
        -  "owner_ids": [
        -    "[USERID]"
        -  ],
        -  "body": "# Chargeback\n\nA reversal of a card payment, initiated by the cardholder's bank."
        -}
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
         
        -=== A second plan has no changes
         
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
        +>>> [CLI] api get /api/2.0/knowledge/pages/null
        +Error: Knowledge page with id 'null' does not exist in account: [UUID]
         
        -=== Update the body and the description (should update in place, and leave the state alone)
        -
        ->>> update_file.py databricks.yml initiated by the cardholder's bank started by the bank of the cardholder
        -
        ->>> update_file.py databricks.yml description: A reversal of a card payment. description: A payment that was reversed.
        -
        ->>> [CLI] bundle plan
        -update pages.chargeback
        -
        -Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated pages.chargeback
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        -
        ->>> print_requests.py //knowledge
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/knowledge/pages/[UUID][2]",
        -  "q": {
        -    "update_mask": "display_name,body,synonyms,description"
        -  },
        -  "body": {
        -    "body": "# Chargeback\n\nA reversal of a card payment, started by the bank of the cardholder.",
        -    "description": "A payment that was reversed.",
        -    "display_name": "Chargeback",
        -    "synonyms": [
        -      "dispute",
        -      "reversal"
        -    ]
        -  }
        -}
        -
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -{
        -  "description": "A payment that was reversed.",
        -  "state": "DRAFT",
        -  "body": "# Chargeback\n\nA reversal of a card payment, started by the bank of the cardholder."
        -}
        -
        -=== Publish the page
        -
        ->>> update_file.py databricks.yml display_name: Chargeback display_name: Chargeback
        -      state: PUBLISHED
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated pages.chargeback
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        -
        ->>> print_requests.py //knowledge
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/knowledge/pages/[UUID][2]",
        -  "q": {
        -    "update_mask": "display_name,body,synonyms,description,state"
        -  },
        -  "body": {
        -    "body": "# Chargeback\n\nA reversal of a card payment, started by the bank of the cardholder.",
        -    "description": "A payment that was reversed.",
        -    "display_name": "Chargeback",
        -    "state": "PUBLISHED",
        -    "synonyms": [
        -      "dispute",
        -      "reversal"
        -    ]
        -  }
        -}
        -
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -{
        -  "state": "PUBLISHED"
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
        -
        -=== A change made outside of the bundle shows up in the plan
        -
        ->>> [CLI] api patch /api/2.0/knowledge/pages/[UUID][2]?update_mask=body --json {"body": "edited in the UI"}
        -{
        -  "body": "edited in the UI"
        -}
        -
        ->>> [CLI] bundle plan
        -update pages.chargeback
        -
        -Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged
        -
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.domains.payments
        -  delete resources.pages.chargeback
        -
        -This action will result in the deletion of the following domains.
        -Deleting a domain also deletes its subdomains. The governed tag of a domain and the tags
        -on assets are kept:
        -  delete resources.domains.payments
        -
        -This action will result in the deletion of the following pages.
... (19 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- bundle/resources/pages/basic/output.txt
        +++ /tmp/TestAcceptbundleresourcespagesbasicDMS=55198141/002/output.txt
        @@ -1,187 +1,48 @@
         
         >>> [CLI] bundle deploy
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Created domains.payments
        -Created pages.chargeback
         Files: 1 uploaded, 0 deleted
        -Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 0 unchanged
         
         >>> print_requests.py //knowledge
        -{
        -  "method": "POST",
        -  "path": "/api/2.0/knowledge/pages",
        -  "q": {
        -    "request_id": "[UUID][0]"
        -  },
        -  "body": {
        -    "body": "# Chargeback\n\nA reversal of a card payment, initiated by the cardholder's bank.",
        -    "description": "A reversal of a card payment.",
        -    "display_name": "Chargeback",
        -    "domain": "domains/[UUID][1]",
        -    "synonyms": [
        -      "dispute",
        -      "reversal"
        -    ]
        -  }
        -}
         
         === Summary shows the page ID
         
         >>> [CLI] bundle summary
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
        +
         Name: test-bundle
         Target: default
         Workspace:
           User: [USERNAME]
           Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
         Resources:
        -  Domains:
        -    payments:
        -      Name: Payments
        -      URL:  [DATABRICKS_URL]/discover/manage/domains/[UUID][1]?w=[WORKSPACE_ID]
        -  Pages:
        -    chargeback:
        -      Name: Chargeback
        -      URL:  [DATABRICKS_URL]/discover/pages/[UUID][2]?w=[WORKSPACE_ID]
         
         === Verify deployment (a page is a draft unless the config says otherwise)
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:5:3
         
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -{
        -  "name": "pages/[UUID][2]",
        -  "display_name": "Chargeback",
        -  "description": "A reversal of a card payment.",
        -  "synonyms": [
        -    "dispute",
        -    "reversal"
        -  ],
        -  "state": "DRAFT",
        -  "owner_ids": [
        -    "[USERID]"
        -  ],
        -  "body": "# Chargeback\n\nA reversal of a card payment, initiated by the cardholder's bank."
        -}
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:9:3
         
        -=== A second plan has no changes
         
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
        +>>> [CLI] api get /api/2.0/knowledge/pages/null
        +Error: Knowledge page with id 'null' does not exist in account: [UUID]
         
        -=== Update the body and the description (should update in place, and leave the state alone)
        -
        ->>> update_file.py databricks.yml initiated by the cardholder's bank started by the bank of the cardholder
        -
        ->>> update_file.py databricks.yml description: A reversal of a card payment. description: A payment that was reversed.
        -
        ->>> [CLI] bundle plan
        -update pages.chargeback
        -
        -Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated pages.chargeback
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        -
        ->>> print_requests.py //knowledge
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/knowledge/pages/[UUID][2]",
        -  "q": {
        -    "update_mask": "display_name,body,synonyms,description"
        -  },
        -  "body": {
        -    "body": "# Chargeback\n\nA reversal of a card payment, started by the bank of the cardholder.",
        -    "description": "A payment that was reversed.",
        -    "display_name": "Chargeback",
        -    "synonyms": [
        -      "dispute",
        -      "reversal"
        -    ]
        -  }
        -}
        -
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -{
        -  "description": "A payment that was reversed.",
        -  "state": "DRAFT",
        -  "body": "# Chargeback\n\nA reversal of a card payment, started by the bank of the cardholder."
        -}
        -
        -=== Publish the page
        -
        ->>> update_file.py databricks.yml display_name: Chargeback display_name: Chargeback
        -      state: PUBLISHED
        -
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
        -Updated pages.chargeback
        -Files: 1 uploaded, 0 deleted
        -Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
        -
        ->>> print_requests.py //knowledge
        -{
        -  "method": "PATCH",
        -  "path": "/api/2.0/knowledge/pages/[UUID][2]",
        -  "q": {
        -    "update_mask": "display_name,body,synonyms,description,state"
        -  },
        -  "body": {
        -    "body": "# Chargeback\n\nA reversal of a card payment, started by the bank of the cardholder.",
        -    "description": "A payment that was reversed.",
        -    "display_name": "Chargeback",
        -    "state": "PUBLISHED",
        -    "synonyms": [
        -      "dispute",
        -      "reversal"
        -    ]
        -  }
        -}
        -
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -{
        -  "state": "PUBLISHED"
        -}
        -
        ->>> [CLI] bundle plan
        -Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
        -
        -=== A change made outside of the bundle shows up in the plan
        -
        ->>> [CLI] api patch /api/2.0/knowledge/pages/[UUID][2]?update_mask=body --json {"body": "edited in the UI"}
        -{
        -  "body": "edited in the UI"
        -}
        -
        ->>> [CLI] bundle plan
        -update pages.chargeback
        -
        -Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged
        -
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.domains.payments
        -  delete resources.pages.chargeback
        -
        -This action will result in the deletion of the following domains.
        -Deleting a domain also deletes its subdomains. The governed tag of a domain and the tags
        -on assets are kept:
        -  delete resources.domains.payments
        -
        -This action will result in the deletion of the following pages.
... (17 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)
TestAccept/bundle/resources/pages/examples/domain-with-glossary/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/pages/examples/domain-with-glossary/output.txt
        +++ /tmp/TestAcceptbundleresourcespagesexamplesdomain-with-glossary3746584454/002/output.txt
        @@ -1,86 +1,88 @@
         
         >>> [CLI] bundle validate
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:9:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
        +
         Name: payments_domain
         Target: default
         Workspace:
           User: [USERNAME]
           Path: /Workspace/Users/[USERNAME]/.bundle/payments_domain/default
         
        -Validation OK!
        +Found 2 warnings
         
         >>> [CLI] bundle plan
        -create domains.fraud
        -create domains.payments
        -create pages.false_positive
        -create pages.settlement
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:9:3
         
        -Plan: 4 to add, 0 to change, 0 to delete, 0 unchanged
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
         
        +Plan: 0 to add, 0 to change, 0 to delete, 0 unchanged
        +
         >>> [CLI] bundle deploy
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:9:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
        +
         Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/payments_domain/default/files...
        -Created domains.fraud
        -Created domains.payments
        -Created pages.false_positive
        -Created pages.settlement
         Files: 2 uploaded, 0 deleted
        -Resources: 4 created, 0 changed, 0 deleted, 0 unchanged
        +Resources: 0 created, 0 changed, 0 deleted, 0 unchanged
         
         >>> [CLI] bundle summary
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:9:3
        +
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
        +
         Name: payments_domain
         Target: default
         Workspace:
           User: [USERNAME]
           Path: /Workspace/Users/[USERNAME]/.bundle/payments_domain/default
         Resources:
        -  Domains:
        -    fraud:
        -      Name: Payments/Fraud
        -      URL:  [DATABRICKS_URL]/discover/manage/domains/[UUID][0]?w=[WORKSPACE_ID]
        -    payments:
        -      Name: Payments
        -      URL:  [DATABRICKS_URL]/discover/manage/domains/[UUID][1]?w=[WORKSPACE_ID]
        -  Pages:
        -    false_positive:
        -      Name: False positive
        -      URL:  [DATABRICKS_URL]/discover/pages/[UUID][2]?w=[WORKSPACE_ID]
        -    settlement:
        -      Name: Settlement
        -      URL:  [DATABRICKS_URL]/discover/pages/[UUID][3]?w=[WORKSPACE_ID]
         
         === Each page is in the domain it references
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:9:3
         
        ->>> [CLI] domains get-domain domains/[UUID][0]
        -{
        -  "name": "domains/[UUID][0]",
        -  "tag_key": "Payments/Fraud",
        -  "parent_domain_id": "[UUID][1]"
        -}
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
         
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][2]
        -{
        -  "display_name": "False positive",
        -  "domain": "domains/[UUID][0]",
        -  "state": "PUBLISHED"
        -}
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:9:3
         
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.domains.fraud
        -  delete resources.domains.payments
        -  delete resources.pages.false_positive
        -  delete resources.pages.settlement
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
         
        -This action will result in the deletion of the following domains.
        -Deleting a domain also deletes its subdomains. The governed tag of a domain and the tags
        -on assets are kept:
        -  delete resources.domains.fraud
        -  delete resources.domains.payments
         
        -This action will result in the deletion of the following pages.
        -A deleted page cannot be restored:
        -  delete resources.pages.false_positive
        -  delete resources.pages.settlement
        +>>> [CLI] domains get-domain domains/null
        +Warning: unknown field: domains
        +  at resources
        +  in databricks.yml:9:3
         
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/payments_domain/default
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
         
        -Destroy: 4 deleted
        +Error: Domain not found: null
        +
        +Exit code: 1

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/resources/pages/examples/draft-in-dev-published-in-prod/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/pages/examples/draft-in-dev-published-in-prod/output.txt
        +++ /tmp/TestAcceptbundleresourcespagesexamplesdraft-in-dev-publishe3578586899/002/output.txt
        @@ -1,54 +1,26 @@
         
         === The domain is owned by another team and exists before the bundle is deployed
        +Warning: unknown field: domain
        +  at variables.payments_domain.lookup
        +  in databricks.yml:13:7
         
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
        +
        +
         === In development the page is a draft, and its title carries the name of the developer
         
         >>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/payments_glossary/dev/files...
        -Created pages.chargeback
        -Files: 2 uploaded, 0 deleted
        -Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
        +Warning: unknown field: domain
        +  at variables.payments_domain.lookup
        +  in databricks.yml:13:7
         
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][0]
        -{
        -  "display_name": "[dev [USERNAME]] Chargeback",
        -  "state": "DRAFT"
        -}
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:29:3
         
        -=== In production the page is published
        +Error: failed to resolve , err: no valid lookup fields provided
         
        ->>> [CLI] bundle deploy -t prod
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/payments_glossary/prod/files...
        -Created pages.chargeback
        -Files: 2 uploaded, 0 deleted
        -Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
         
        ->>> [CLI] api get /api/2.0/knowledge/pages/[UUID][1]
        -{
        -  "display_name": "Chargeback",
        -  "state": "PUBLISHED"
        -}
        -
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.pages.chargeback
        -
        -This action will result in the deletion of the following pages.
        -A deleted page cannot be restored:
        -  delete resources.pages.chargeback
        -
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/payments_glossary/dev
        -
        -Destroy: 1 deleted
        -
        ->>> [CLI] bundle destroy -t prod --auto-approve
        -The following resources will be deleted:
        -  delete resources.pages.chargeback
        -
        -This action will result in the deletion of the following pages.
        -A deleted page cannot be restored:
        -  delete resources.pages.chargeback
        -
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/payments_glossary/prod
        -
        -Destroy: 1 deleted
        +Exit code: 1

latest (v1.28.0): same output as main (9a14ad6)

TestAccept/bundle/resources/pages/examples/glossary-in-shared-domain/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌

main (9a14ad6):

acceptance_test.go:1402: Diff:
        --- bundle/resources/pages/examples/glossary-in-shared-domain/output.txt
        +++ /tmp/TestAcceptbundleresourcespagesexamplesglossary-in-shared-do1821082599/002/output.txt
        @@ -1,62 +1,31 @@
         
         === The domain is owned by another team and exists before the bundle is deployed
        +Warning: unknown field: domain
        +  at variables.payments_domain.lookup
        +  in databricks.yml:13:7
         
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:16:3
        +
        +
         >>> [CLI] bundle validate
        -Name: payments_glossary
        -Target: default
        -Workspace:
        -  User: [USERNAME]
        -  Path: /Workspace/Users/[USERNAME]/.bundle/payments_glossary/default
        +Warning: unknown field: domain
        +  at variables.payments_domain.lookup
        +  in databricks.yml:13:7
         
        -Validation OK!
        +Warning: unknown field: pages
        +  at resources
        +  in databricks.yml:16:3
         
        ->>> [CLI] bundle deploy
        -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/payments_glossary/default/files...
        -Created pages.chargeback
        -Created pages.refund
        -Files: 3 uploaded, 0 deleted
        -Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
        +Error: failed to resolve , err: no valid lookup fields provided
         
        ->>> [CLI] bundle summary
         Name: payments_glossary
         Target: default
         Workspace:
           User: [USERNAME]
           Path: /Workspace/Users/[USERNAME]/.bundle/payments_glossary/default
        -Resources:
        -  Pages:
        -    chargeback:
        -      Name: Chargeback
        -      URL:  [DATABRICKS_URL]/discover/pages/[UUID][0]?w=[WORKSPACE_ID]
        -    refund:
        -      Name: Refund
        -      URL:  [DATABRICKS_URL]/discover/pages/[UUID][1]?w=[WORKSPACE_ID]
         
        -=== The pages are published in the domain
        -{
        -  "display_name": "Chargeback",
        -  "synonyms": [
        -    "dispute",
        -    "reversal"
        -  ],
        -  "state": "PUBLISHED"
        -}
        -{
        -  "display_name": "Refund",
        -  "synonyms": null,
        -  "state": "PUBLISHED"
        -}
        +Found 1 error and 2 warnings
         
        ->>> [CLI] bundle destroy --auto-approve
        -The following resources will be deleted:
        -  delete resources.pages.chargeback
        -  delete resources.pages.refund
        -
        -This action will result in the deletion of the following pages.
        -A deleted page cannot be restored:
        -  delete resources.pages.chargeback
        -  delete resources.pages.refund
        -
        -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/payments_glossary/default
        -
        -Destroy: 2 deleted
        +Exit code: 1

latest (v1.28.0): same output as main (9a14ad6)

3 more failure details omitted, see the full report in the run.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: beb739d

Run: 46394140717

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 173 38 2:26
💚​ aws-windows-latest-4core-16gb 1 173 38 3:04
💚​ azure linux-2core-8gb 1 172 38 2:19
💚​ azure-windows-latest-4core-16gb 1 172 38 3:10
💚​ gcp linux-2core-8gb 1 173 38 2:24
💚​ gcp-windows-latest-4core-16gb 1 173 38 3:20
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:17 gcp-windows-latest-4core-16gb TestAccept
3:08 azure-windows-latest-4core-16gb TestAccept
3:02 aws-windows-latest-4core-16gb TestAccept

Bundles can now manage Unity Catalog Discover domains and pages, so a team
can keep its business vocabulary in git, review changes to it and deploy it
with `bundle deploy`.

- `domains`: a domain groups data and AI assets on the Discover page by
  business area. It is built on an existing governed tag and can be nested
  under a parent domain.
- `pages`: a page documents a business term or concept in a domain. Its
  Markdown body is set inline with `body` or read from a file in the
  repository with `file_path`.
- `domain` lookup variable: resolves the governed tag key of a domain to the
  ID of the domain, for a bundle that adds pages to a domain it does not own.

The Pages API is not part of the SDK yet, so the CLI calls its REST API
directly.

Co-authored-by: Isaac <no-reply@databricks.com>
@pietern
pietern force-pushed the pietern/bundle-domains-pages branch from 62e090d to beb739d Compare November 30, 2026 09:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues PyDABs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants