Skip to content

Define deploy and destroy approval prompts in one table - #7354

Draft
janniklasrose wants to merge 1 commit into
mainfrom
janniklasrose/approval-groups-table
Draft

janniklasrose wants to merge 1 commit into
mainfrom
janniklasrose/approval-groups-table

Conversation

@janniklasrose

Copy link
Copy Markdown
Member

Changes

bundle deploy and bundle destroy each kept their own list of resource groups that get a data-loss confirmation prompt, with a message per group. Both lists now derive from one table in bundle/phases/approval.go: each entry carries the group, its deploy message, the deploy-only skipChildren flag, and an optional destroy message. Deploy's order and messages are unchanged; destroy's list is the same subsequence as before, including its skipChildren default.

A new test requires a deploy message for every entry and names the groups that have no destroy prompt, with a comment for each. Adding a group to one command only is now a visible choice rather than an omission. No message text changes.

Why

A group added to one list and not the other got a prompt in one command only, and nothing detected it.

Tests

  • go test ./bundle/phases/... -count=1, including the new TestApprovalTableEntries.
  • Acceptance tests whose goldens show the prompts (bundle/destroy, genie_spaces, features/basic, materialization_sets/basic, dms/declined-deploy, vector_search_indexes, postgres_databases) pass without regenerating goldens.

This pull request and its description were written by Isaac.

Deploy and destroy each kept their own list of groups that get a consent prompt, so a group added to one could silently miss the other. Both lists now derive from one table, and a test names the groups that have no destroy prompt.

Co-authored-by: Isaac <no-reply@databricks.com>
@janniklasrose janniklasrose added the new-resource-work Skills, docs and small refactors for onboarding new bundle resources label Nov 4, 2026
@github-actions github-actions Bot added the DABs DABs related issues label Nov 4, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: c4bcedb

Run: 41860767035

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 271 15 6:43
✅​ aws-windows-latest-4core-16gb 273 13 7:21
✅​ azure linux-2core-8gb 270 15 7:15
✅​ azure-windows-latest-4core-16gb 272 13 6:58
✅​ gcp linux-2core-8gb 271 15 6:44
✅​ gcp-windows-latest-4core-16gb 273 13 7:22
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:58 azure-windows-latest-4core-16gb TestAccept
3:34 gcp-windows-latest-4core-16gb TestAccept
3:23 aws-windows-latest-4core-16gb TestAccept

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 new-resource-work Skills, docs and small refactors for onboarding new bundle resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants