-
Notifications
You must be signed in to change notification settings - Fork 55
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
Improve the output of the databricks bundle init
command
#795
Conversation
a4d7ad9
to
def37e9
Compare
databricks bundle init
command
Co-authored-by: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com>
… tune-template-output
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.
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?
Remove snake_case comment
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.
LGTM with some minor comments. Approving to unblock.
Let's keep the cobra.MaximumNArgs(1)
unless there's a good reason not to.
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: