-
Notifications
You must be signed in to change notification settings - Fork 195
postgres: Support purge_on_delete on postgres_branches
#5801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
524d811
Bump databricks-sdk-go from v0.147.0 to v0.152.0
pietern de6d36c
Merge remote-tracking branch 'origin/main' into bump-sdk
pietern b3fa0b9
direct: Fix deploy bug when a postgres field is set to its zero value
pietern 6affc99
postgres: Support purge_on_delete on postgres_branches
pietern 40ac9d4
Merge commit 'b3fa0b96d' into postgres-branch-purge-delete
pietern 377df21
Bump Terraform provider to v1.120.0
pietern cf3b273
Add changelog entry
pietern cd5732f
Add NEXT_CHANGELOG entry for SDK bump
pietern ab358b3
Revert uv.lock changes
pietern 1f9e1f4
Merge branch 'bump-sdk' into bump-tf-1.120.0
pietern 4e22dd4
Update generated TF map
pietern 428e50e
Merge commit '4e22dd4e3' into postgres-branch-purge-delete
pietern 2e2e1ac
terraform_dabs_map: regenerate after tf-bump merge
pietern a4308f8
acc: run postgres_branches purge_on_delete on both engines
pietern acb90f7
postgres_branch: align DoUpdate mask comment with postgres_project
pietern 237f8c8
Merge remote-tracking branch 'origin/main' into postgres-branch-purge…
pietern aecad5b
Update changelog PR number to #5801
pietern a9b7545
Merge remote-tracking branch 'origin/main' into postgres-branch-purge…
pietern ed1c81a
Merge remote-tracking branch 'origin/main' into postgres-branch-purge…
pietern 6988f94
Merge branch 'main' into postgres-branch-purge-delete
pietern 456f9ce
Merge branch 'main' into postgres-branch-purge-delete
pietern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
acceptance/bundle/resources/postgres_branches/purge_on_delete/databricks.yml.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| bundle: | ||
| name: deploy-postgres-branch-purge-$UNIQUE_NAME | ||
|
|
||
| sync: | ||
| paths: [] | ||
|
|
||
| # A project with two branches side by side so the recorded destroy requests | ||
| # make the purge_on_delete contrast obvious: | ||
| # - hard_delete: purge_on_delete: true -> DELETE …?purge=true | ||
| # - soft_delete: field omitted (default) -> DELETE … (no purge query) | ||
| resources: | ||
| postgres_projects: | ||
| my_project: | ||
| project_id: test-pg-proj-$UNIQUE_NAME | ||
| display_name: "Test Project for Branch purge_on_delete" | ||
| pg_version: 16 | ||
|
|
||
| postgres_branches: | ||
| hard_delete: | ||
| parent: ${resources.postgres_projects.my_project.id} | ||
| branch_id: test-pg-branch-hard-$UNIQUE_NAME | ||
| no_expiry: true | ||
| purge_on_delete: true | ||
|
|
||
| soft_delete: | ||
| parent: ${resources.postgres_projects.my_project.id} | ||
| branch_id: test-pg-branch-soft-$UNIQUE_NAME | ||
| no_expiry: true |
18 changes: 18 additions & 0 deletions
18
acceptance/bundle/resources/postgres_branches/purge_on_delete/out.destroy.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| The following resources will be deleted: | ||
| delete resources.postgres_branches.hard_delete | ||
| delete resources.postgres_branches.soft_delete | ||
| delete resources.postgres_projects.my_project | ||
|
|
||
| This action will result in the deletion of the following Lakebase projects along with | ||
| all their branches, databases, and endpoints. All data stored in them will be permanently lost: | ||
| delete resources.postgres_projects.my_project | ||
|
|
||
| This action will result in the deletion of the following Lakebase branches. | ||
| All data stored in them will be permanently lost: | ||
| delete resources.postgres_branches.hard_delete | ||
| delete resources.postgres_branches.soft_delete | ||
|
|
||
| All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-purge-[UNIQUE_NAME]/default | ||
|
|
||
| Deleting files... | ||
| Destroy complete! |
45 changes: 45 additions & 0 deletions
45
...ptance/bundle/resources/postgres_branches/purge_on_delete/out.requests.deploy.direct.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-hard-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-soft-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "POST", | ||
| "path": "/api/2.0/postgres/projects", | ||
| "q": { | ||
| "project_id": "test-pg-proj-[UNIQUE_NAME]" | ||
| }, | ||
| "body": { | ||
| "spec": { | ||
| "display_name": "Test Project for Branch purge_on_delete", | ||
| "pg_version": 16 | ||
| } | ||
| } | ||
| } | ||
| { | ||
| "method": "POST", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches", | ||
| "q": { | ||
| "branch_id": "test-pg-branch-hard-[UNIQUE_NAME]" | ||
| }, | ||
| "body": { | ||
| "spec": { | ||
| "no_expiry": true | ||
| } | ||
| } | ||
| } | ||
| { | ||
| "method": "POST", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches", | ||
| "q": { | ||
| "branch_id": "test-pg-branch-soft-[UNIQUE_NAME]" | ||
| }, | ||
| "body": { | ||
| "spec": { | ||
| "no_expiry": true | ||
| } | ||
| } | ||
| } |
47 changes: 47 additions & 0 deletions
47
...nce/bundle/resources/postgres_branches/purge_on_delete/out.requests.deploy.terraform.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-hard-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-soft-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "POST", | ||
| "path": "/api/2.0/postgres/projects", | ||
| "q": { | ||
| "project_id": "test-pg-proj-[UNIQUE_NAME]" | ||
| }, | ||
| "body": { | ||
| "spec": { | ||
| "display_name": "Test Project for Branch purge_on_delete", | ||
| "pg_version": 16 | ||
| } | ||
| } | ||
| } | ||
| { | ||
| "method": "POST", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches", | ||
| "q": { | ||
| "branch_id": "test-pg-branch-hard-[UNIQUE_NAME]" | ||
| }, | ||
| "body": { | ||
| "parent": "projects/test-pg-proj-[UNIQUE_NAME]", | ||
| "spec": { | ||
| "no_expiry": true | ||
| } | ||
| } | ||
| } | ||
| { | ||
| "method": "POST", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches", | ||
| "q": { | ||
| "branch_id": "test-pg-branch-soft-[UNIQUE_NAME]" | ||
| }, | ||
| "body": { | ||
| "parent": "projects/test-pg-proj-[UNIQUE_NAME]", | ||
| "spec": { | ||
| "no_expiry": true | ||
| } | ||
| } | ||
| } |
27 changes: 27 additions & 0 deletions
27
acceptance/bundle/resources/postgres_branches/purge_on_delete/out.requests.destroy.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "method": "DELETE", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "DELETE", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-hard-[UNIQUE_NAME]", | ||
| "q": { | ||
| "purge": "true" | ||
| } | ||
| } | ||
| { | ||
| "method": "DELETE", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-soft-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-hard-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-soft-[UNIQUE_NAME]" | ||
| } |
6 changes: 6 additions & 0 deletions
6
acceptance/bundle/resources/postgres_branches/purge_on_delete/out.test.toml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
acceptance/bundle/resources/postgres_branches/purge_on_delete/output.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
|
|
||
| >>> [CLI] bundle validate | ||
| Name: deploy-postgres-branch-purge-[UNIQUE_NAME] | ||
| Target: default | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-purge-[UNIQUE_NAME]/default | ||
|
|
||
| Validation OK! | ||
|
|
||
| >>> [CLI] bundle deploy | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-postgres-branch-purge-[UNIQUE_NAME]/default/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
|
|
||
| >>> [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]", | ||
| "parent": "projects/test-pg-proj-[UNIQUE_NAME]", | ||
| "status": { | ||
| "branch_id": "test-pg-branch-hard-[UNIQUE_NAME]", | ||
| "current_state": "READY", | ||
| "default": false, | ||
| "is_protected": false, | ||
| "source_branch": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production", | ||
| "source_branch_lsn": "[LSN]", | ||
| "source_branch_time": "[TIMESTAMP]", | ||
| "state_change_time": "[TIMESTAMP]" | ||
| }, | ||
| "uid": "[BRANCH_UID]" | ||
| } | ||
|
|
||
| >>> [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]", | ||
| "parent": "projects/test-pg-proj-[UNIQUE_NAME]", | ||
| "status": { | ||
| "branch_id": "test-pg-branch-soft-[UNIQUE_NAME]", | ||
| "current_state": "READY", | ||
| "default": false, | ||
| "is_protected": false, | ||
| "source_branch": "projects/test-pg-proj-[UNIQUE_NAME]/branches/production", | ||
| "source_branch_lsn": "[LSN]", | ||
| "source_branch_time": "[TIMESTAMP]", | ||
| "state_change_time": "[TIMESTAMP]" | ||
| }, | ||
| "uid": "[BRANCH_UID]" | ||
| } | ||
|
|
||
| >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --sort --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ | ||
|
|
||
| === bundle destroy | ||
| >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --sort --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ |
35 changes: 35 additions & 0 deletions
35
acceptance/bundle/resources/postgres_branches/purge_on_delete/script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| envsubst < databricks.yml.tmpl > databricks.yml | ||
|
|
||
| project_name="projects/test-pg-proj-${UNIQUE_NAME}" | ||
| hard_branch="${project_name}/branches/test-pg-branch-hard-${UNIQUE_NAME}" | ||
| soft_branch="${project_name}/branches/test-pg-branch-soft-${UNIQUE_NAME}" | ||
|
|
||
| cleanup() { | ||
| # Belt-and-braces in case bundle destroy was skipped or partially failed. | ||
| # The soft-delete case leaves a record in the trash; --purge clears it. | ||
| $CLI postgres delete-branch --purge "${hard_branch}" 2>>LOG.delete-branch || true | ||
| $CLI postgres delete-branch --purge "${soft_branch}" 2>>LOG.delete-branch || true | ||
| $CLI postgres delete-project --purge "${project_name}" 2>>LOG.delete-project || true | ||
| rm -f out.requests.txt | ||
| } | ||
| trap cleanup EXIT | ||
|
|
||
| trace $CLI bundle validate | ||
|
|
||
| rm -f out.requests.txt | ||
| trace $CLI bundle deploy | ||
|
|
||
| trace $CLI postgres get-branch "${hard_branch}" | jq 'del(.create_time, .update_time, .status.logical_size_bytes)' | ||
| trace $CLI postgres get-branch "${soft_branch}" | jq 'del(.create_time, .update_time, .status.logical_size_bytes)' | ||
|
|
||
| # Deploy requests are split per-engine: Terraform sends "parent" in the branch | ||
| # create body, the direct engine sends it only as a query parameter. | ||
| trace print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --sort --get '//postgres' '^//workspace-files/' '^//workspace/' '^//telemetry-ext' '^//operations/' > out.requests.deploy.$DATABRICKS_BUNDLE_ENGINE.json | ||
|
|
||
| # bundle destroy should send ?purge=true on the hard_delete branch and no | ||
| # purge query on the soft_delete branch. Both DELETEs land in the recorded | ||
| # requests so the contrast is visible in the diff. | ||
| title "bundle destroy" | ||
| $CLI bundle destroy --auto-approve > out.destroy.txt 2>&1 || true | ||
|
|
||
| trace print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --sort --get '//postgres' '^//workspace-files/' '^//workspace/' '^//telemetry-ext' '^//operations/' > out.requests.destroy.json |
23 changes: 23 additions & 0 deletions
23
...ptance/bundle/resources/postgres_branches/purge_on_delete_transitions/databricks.yml.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| bundle: | ||
| name: pg-branch-purge-transitions-$UNIQUE_NAME | ||
|
|
||
| sync: | ||
| paths: [] | ||
|
|
||
| # Walks purge_on_delete through unset -> true -> false -> unset, deploying | ||
| # at each step and inspecting the persisted state so reviewers can see that | ||
| # state tracks the user's latest intent. The final destroy is a soft delete | ||
| # (state has purge_on_delete unset), recorded for regression coverage. | ||
| resources: | ||
| postgres_projects: | ||
| proj: | ||
| project_id: test-pg-proj-$UNIQUE_NAME | ||
| display_name: "Transitions test" | ||
| pg_version: 16 | ||
|
|
||
| postgres_branches: | ||
| branch: | ||
| parent: ${resources.postgres_projects.proj.id} | ||
| branch_id: test-pg-branch-$UNIQUE_NAME | ||
| no_expiry: true | ||
| # PURGE_ON_DELETE |
16 changes: 16 additions & 0 deletions
16
acceptance/bundle/resources/postgres_branches/purge_on_delete_transitions/out.destroy.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| The following resources will be deleted: | ||
| delete resources.postgres_branches.branch | ||
| delete resources.postgres_projects.proj | ||
|
|
||
| This action will result in the deletion of the following Lakebase projects along with | ||
| all their branches, databases, and endpoints. All data stored in them will be permanently lost: | ||
| delete resources.postgres_projects.proj | ||
|
|
||
| This action will result in the deletion of the following Lakebase branches. | ||
| All data stored in them will be permanently lost: | ||
| delete resources.postgres_branches.branch | ||
|
|
||
| All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/pg-branch-purge-transitions-[UNIQUE_NAME]/default | ||
|
|
||
| Deleting files... | ||
| Destroy complete! |
16 changes: 16 additions & 0 deletions
16
.../bundle/resources/postgres_branches/purge_on_delete_transitions/out.requests.destroy.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "method": "DELETE", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "DELETE", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]" | ||
| } | ||
| { | ||
| "method": "GET", | ||
| "path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/test-pg-branch-[UNIQUE_NAME]" | ||
| } |
6 changes: 6 additions & 0 deletions
6
acceptance/bundle/resources/postgres_branches/purge_on_delete_transitions/out.test.toml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
acceptance/bundle/resources/postgres_branches/purge_on_delete_transitions/output.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
|
|
||
| === Step 1: deploy with purge_on_delete unset | ||
| >>> [CLI] bundle deploy | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-branch-purge-transitions-[UNIQUE_NAME]/default/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
|
|
||
| >>> get_purge | ||
| (unset) | ||
|
|
||
| === Step 2: set purge_on_delete: true | ||
| >>> [CLI] bundle deploy | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-branch-purge-transitions-[UNIQUE_NAME]/default/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
|
|
||
| >>> get_purge | ||
| json.state.resources.postgres_branches.branch.state.purge_on_delete = true; | ||
|
|
||
| === Step 3: flip to purge_on_delete: false | ||
| >>> [CLI] bundle deploy | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-branch-purge-transitions-[UNIQUE_NAME]/default/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
|
|
||
| >>> get_purge | ||
| json.state.resources.postgres_branches.branch.state.purge_on_delete = false; | ||
|
|
||
| === Step 4: remove the line again | ||
| >>> [CLI] bundle deploy | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/pg-branch-purge-transitions-[UNIQUE_NAME]/default/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
|
|
||
| >>> get_purge | ||
| json.state.resources.postgres_branches.branch.state.purge_on_delete = false; | ||
|
|
||
| === bundle destroy (branch DELETE must be a plain DELETE, no ?purge=true) | ||
| >>> print_requests.py --del-body project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id --sort --get //postgres ^//workspace-files/ ^//workspace/ ^//telemetry-ext ^//operations/ | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does it remain in state after removing, when before adding it was not present?