Added Always First Functionality#173
Added Always First Functionality#173CaptCorpMURICA wants to merge 20 commits intoSnowflake-Labs:masterfrom
Conversation
Added tests to ensure always first files are executed properly including: executing multiple files, executing no files when option is False, expected error handling, and file execution order.
Added the ability to execute specific files first in the execution order as well as an option to turn off processing of these files altogether. This functionality is best used when rebuilding the QA or STG clones during the CI/CD process.
Added documentation around Always First functionality from Issue 164
Changed from AF to F
Added Always First parameter to tests
Duplicate apply_change_script was identified in the Always First processing block. It was not needed and removed.
|
Is there an update on when this will be reviewed? |
|
@CaptCorpMURICA Will discuss this next week and get back to you. Thank you for your contribution and your patience while we catchup on open items and PRs. |
|
Any discussion on when this might make it into a release? Thank you |
I just welcomed my first child, so I haven't had the ability to implement the requested changes. I'll try to get it wrapped up in the next month or so. |
Congratulations !! Let me know if I can help (with this PR, you are on your own with the baby LOL!) |
|
Any update on this one? |
|
It'd be great to add into the README file along with the other prefix file name section |
|
Can we bump this? I would need this functionality in production already. |
|
Wondering if the CLI enhancement and release 4.3.0 will help address the requirement here. We don't want to introduce new file types just yet. Can someone atleast rebase the changes to 4.3.0 and lets see how much of a change will this feature be ? |
|
This functionality could be acheived by running schemachange twice and segementing the First scripts in a seperate directory and use the existing always run prefix. Then running again on the primary directory. maybe we can add an example of this structure instead as a CI tooling example? |
This pull request resolves #164.
F__*.sqlwhich is processed before all other file types.Falsebut can be enabled with the configuration-afor--always-first. This ensures that these files can be selectively executed depending on the environment.