Skip to content
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

Merged
merged 8 commits into from
Jan 20, 2023

Conversation

ChenyuLInx
Copy link
Contributor

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.
Screenshot 2023-01-18 at 5 35 44 PM
Screenshot 2023-01-18 at 5 34 43 PM

@ChenyuLInx ChenyuLInx added the Skip Changelog Skips GHA to check for changelog file label Jan 19, 2023
@ChenyuLInx ChenyuLInx requested a review from a team as a code owner January 19, 2023 01:44
@ChenyuLInx ChenyuLInx requested a review from iknox-fa January 19, 2023 01:45
@@ -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"""
Copy link
Contributor

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.

Comment on lines +459 to +461
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
Copy link
Contributor

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!

@ChenyuLInx
Copy link
Contributor Author

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 build command not converted.
Screenshot 2023-01-19 at 3 52 03 PM
Screenshot 2023-01-19 at 3 52 15 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-931] dbt source freshness works with click [CT-929] dbt seed works in click
5 participants