Skip to content

feat: dbts impact — pre-merge blast-radius check #9

Description

@luiul

Summary

Before merging, show what live models would be affected if the current branch's changes were promoted. Frames the "did I cover everything in my PR?" question.

Why

Currently approximated by running dbts plan +foo+ --target live per changed model. A purpose-built command makes it a one-liner and the output is framed as "downstream impact" rather than "build set".

Sketch

  • Same git-diff input as run-changed: changed model files → model names.
  • Forward to dbts plan +<model1> +<model2> ... --target live.
  • Output: list of downstream models grouped by directory, count of affected nodes, and a footer with "X models in N directories would re-run".
  • Optionally fold in cost (reuse --cost).

Where it'd live

  • Thin wrapper around plan.run — most logic already exists.
  • Could share the changed-models helper with run-changed.

Effort

Small.

Tier

Tier 1 — recommended.

Related

  • Pairs with dbts run-changed. Together they form the inner loop for "what should I rebuild?" and outer loop for "what does my PR risk?".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions