Repository navigation
Conversation
Regression test report ✅Commit: Selected 20 changed tests (limit=20, 6 not selected) 27 tests: regression=13 unreleased=0 coverage=14 failing=0
TestAccept/bundle/deployment/bind/domain/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌main (9a14ad6): latest (v1.28.0): same output as main (9a14ad6) TestAccept/bundle/deployment/bind/page/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌main (9a14ad6): 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): 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): latest (v1.28.0): same output as main (9a14ad6) TestAccept/bundle/resources/domains/basic/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌main (9a14ad6): 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): latest (v1.28.0): same output as main (9a14ad6) TestAccept/bundle/resources/pages/basic/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌main (9a14ad6): latest (v1.28.0): TestAccept/bundle/resources/pages/examples/domain-with-glossary/DMS=: branch ✅ | main (9a14ad6) ❌ | latest (v1.28.0) ❌main (9a14ad6): 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): 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): latest (v1.28.0): same output as main (9a14ad6) 3 more failure details omitted, see the full report in the run. |
✅ Integration test reportCommit: beb739d
Top 3 slowest tests (at least 2 minutes):
|
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>
62e090d to
beb739d
Compare
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 withbodyor from a file in the repository withfile_path.domainlookup 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.How the resources work together
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 isdomains/${var.<lookup variable>}, or the ID written out.parent_domain_id: ${resources.domains.<key>.id}.file_pathis 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 bothbodyandfile_pathis an error.[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 planreports 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.statechanges. Editing a published page updates it in place and keeps it published. Whenstateis not set, a new page is a draft and the bundle never changes the state afterwards. The same holds fordrafton a domain.bundle deployment bindandunbindwork for both resources. The ID is the one in the URL of the domain or page.domainsis available indatabricks-bundles.pagesis not yet, because Python models are only generated for resources at Public Preview or later and pages are in Beta.Requirements and limits
bundle planthat immediately follows a deploy can report a change that is already applied.bundle destroystops 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
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/bindfor both resources, the invariant suite (no drift after deploy, idempotent delete and destroy) and PyDABs support for domains.bundle/resources/pages/examples/domain-with-glossaryonce before this merges.This pull request and its description were written by Isaac.