Skip to content

[CT-2322] [Feature] Side-by-side diff when an enforced model contract fails #7209

@dbeatty10

Description

@dbeatty10

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

See this Loom starting at 12:50 for context of this feature proposal:
https://www.loom.com/share/f436e5e336e4433695dc63d53ee72fcf?t=770

Two things:

  • Update "Contracts are enabled for this model." to "This model has an enforced contract."
  • Do a side-by-side diff rather than a stacked listing of column names

Where a preflight check fails for a model contract, could the output look more like this?

image

Right now, the output looks like this:

image snip...
image

Describe alternatives you've considered

Sometimes the status quo is the way to go ...
... and sometimes it isn't 😉

Who will this benefit?

This will benefit folks that:

  • are using enforced model contracts
  • there is a mismatch in the contract leading to a preflight failure
  • have a model with tons of columns (or even just a few!)

Are you interested in contributing this feature?

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood_first_issueStraightforward + self-contained changes, good for new contributors!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions