Skip to content

Block deletion of git-backed default branch namespaces#1945

Merged
shangyian merged 3 commits intoDataJunction:mainfrom
shangyian:block-default-branch-deletion
Apr 1, 2026
Merged

Block deletion of git-backed default branch namespaces#1945
shangyian merged 3 commits intoDataJunction:mainfrom
shangyian:block-default-branch-deletion

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

Summary

This change rejects both soft-delete and hard-delete with a 422 when the target namespace is the default branch of a git-backed namespace.

It also fixes a bug in resolve_git_info_from_map where is_default_branch incorrectly defaulted to True when either branch or default_branch was unset.

Test Plan

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit f81d0d7
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69cd6737be2913000801211f

@shangyian shangyian marked this pull request as ready for review April 1, 2026 19:15
@shangyian shangyian merged commit 10c7f43 into DataJunction:main Apr 1, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant