Skip to content

Create example project during repo initialization. Various improvements to repo validation#42

Merged
izeigerman merged 5 commits intomainfrom
init-example-project-and-validation
Dec 13, 2022
Merged

Create example project during repo initialization. Various improvements to repo validation#42
izeigerman merged 5 commits intomainfrom
init-example-project-and-validation

Conversation

@izeigerman
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread sqlmesh/core/test.py Outdated
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vchan I believe that this condition was wrong previously. Can you please validate this and help me make sure that my reasoning is correct.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise I'm not sure how did this work before.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your reasoning looks correct to me. Good catch.

Comment thread sqlmesh/cli/example_project.py Outdated
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobymao @eakmanrq can you please help make sure that this is a reasonable enough dummy project to initialize the repo with.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to expand this a bit to include two models (1 incremental and 1 full) and have a dependency between the incremental and full. The thinking is to provide two examples with a dependency.

@izeigerman izeigerman force-pushed the init-example-project-and-validation branch from 5bde61e to 5eb4e3f Compare December 13, 2022 02:09
Comment thread sqlmesh/cli/example_project.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg i didn't know you could do this

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I will start using this.

Copy link
Copy Markdown
Contributor

@tobymao tobymao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great

@izeigerman izeigerman force-pushed the init-example-project-and-validation branch from 3aea409 to f5819a4 Compare December 13, 2022 16:30
@izeigerman izeigerman force-pushed the init-example-project-and-validation branch from f5819a4 to a85cb13 Compare December 13, 2022 19:28
@izeigerman izeigerman merged commit 595e81f into main Dec 13, 2022
@izeigerman izeigerman deleted the init-example-project-and-validation branch December 13, 2022 20:42
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.

4 participants