Uh oh!
There was an error while loading. Please reload this page.
Improve the output of the databricks bundle init command - #795
Conversation
a4d7ad9 to
def37e9Comparedatabricks bundle init commandUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com>
… tune-template-output
pietern
left a comment
There was a problem hiding this comment.
Nice work, LGTM!
@mingyu89@vladimirk-db Once this is merged and released, you could consider adding a message to the MLops stack template. Nice to have a call to action after initialization.
@shreyas-goenka Can you do the final approval?
Uh oh!
There was an error while loading. Please reload this page.
Remove snake_case comment
shreyas-goenka
left a comment
There was a problem hiding this comment.
LGTM with some minor comments. Approving to unblock.
Let's keep the cobra.MaximumNArgs(1) unless there's a good reason not to.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lennartkats-db
commented
Oct 17, 2023
I'll followup, needed to prioritize some roadmap/serverless work. |
CLI: * Fix rendering of streaming response ([#876](#876)). * Rename MLOps Stack to MLOps Stacks ([#881](#881)). * Support Python wheels larger than 10MB ([#879](#879)). * Improve the output of the `databricks bundle init` command ([#795](#795)). Bundles: * **FILL THIS IN MANUALLY BY MOVING RELEVANT ITEMS FROM ABOVE LIST** Internal: * **FILL THIS IN MANUALLY BY MOVING RELEVANT ITEMS FROM ABOVE LIST**
## Changes This PR removes validation for default value against the regex pattern specified in a JSON schema at schema load time. This is required because #795 introduces parameterising the default value as a Go text template impling that the default value now does not necessarily have to match the pattern at schema load time. This will also unblock: databricks/mlops-stacks#108 Note, this does not remove runtime validation for input parameters right before template initialization, which happens here: https://github.com/databricks/cli/blob/fb32e78c9b9fb000ce898b8a60b0b47920f487d3/libs/template/materialize.go#L76 ## Tests Changes to existing test.
Improve the output of help, prompts, and so on for `databricks bundle init` and the default template. Among other things, this PR adds support for a new `welcome_message` property that lets a template print a custom message on success: ``` $ databricks bundle init Template to use [default-python]: Unique name for this project [my_project]: lennart_project Include a stub (sample) notebook in 'lennart_project/src': yes Include a stub (sample) Delta Live Tables pipeline in 'lennart_project/src': yes Include a stub (sample) Python package in 'lennart_project/src': yes ✨ Your new project has been created in the 'lennart_project' directory! Please refer to the README.md of your project for further instructions on getting started. Or read the documentation on Databricks Asset Bundles at https://docs.databricks.com/dev-tools/bundles/index.html. ``` --------- Co-authored-by: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com>
## Changes This PR removes validation for default value against the regex pattern specified in a JSON schema at schema load time. This is required because #795 introduces parameterising the default value as a Go text template impling that the default value now does not necessarily have to match the pattern at schema load time. This will also unblock: databricks/mlops-stacks#108 Note, this does not remove runtime validation for input parameters right before template initialization, which happens here: https://github.com/databricks/cli/blob/57416e110abb67d68fd41aebd4e02d5197584b20/libs/template/materialize.go#L76 ## Tests Changes to existing test.
Improve the output of help, prompts, and so on for
databricks bundle initand the default template.Among other things, this PR adds support for a new
welcome_messageproperty that lets a template print a custom message on success: