-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Seed and freshness works with click #6651
Conversation
core/dbt/cli/main.py
Outdated
@@ -436,10 +444,21 @@ def source(ctx, **kwargs): | |||
@p.threads | |||
@p.vars | |||
@requires.preflight | |||
@requires.profile | |||
@requires.project | |||
def freshness(ctx, **kwargs): | |||
"""Snapshots the current freshness of the project's sources""" |
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.
[Not needed for this PR] Let's definitely remove the word "snapshots" from this help text, when we get to DX review (#6546). We renamed this command for a reason, to disambiguate it from dbt snapshot
.
snapshot_freshness = copy(cli.commands["source"].commands["freshness"]) # type: ignore | ||
snapshot_freshness.hidden = True | ||
cli.commands["source"].add_command(snapshot_freshness, "snapshot-freshness") # type: ignore |
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.
Like we just talked about in standup, if you could add comments above this and ls
to explain what we're doing that would be very helpful!
More tests pass with @MichelleArk 's change in, only test fail for source is related to flags, doing that as separate. The tests fail for freshness is due to |
Resolves #5553
Resolves #5555
Adding seed and freshness together since we need seed to in functional test setup to run freshness test.
Here's the test passing after this change. And I included changes at #6650 to get away with serialization error.
The failed tests are gonna be resolved by @MichelleArk 's change at #5549 with the updated parameters.