-
Notifications
You must be signed in to change notification settings - Fork 179
Mark deprecated pipeline fields #2646
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
Changes from 4 commits
75b7155
c79d642
284951e
cf9560d
475d663
f596fa7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -137,6 +137,9 @@ func assignAnnotation(s *jsonschema.Schema, a annotation.Descriptor) { | |
| s.Deprecated = true | ||
| s.DeprecationMessage = a.DeprecationMessage | ||
| } | ||
| if a.Deprecated { | ||
| s.Deprecated = true | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please define what happens if This seems confusing. Alternatively, we can exclusively use the message field for this. cc @ilyakuz-db |
||
| } | ||
|
|
||
| func fillTemplateVariables(s string) string { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ type Descriptor struct { | |
| Enum []any `json:"enum,omitempty"` | ||
| MarkdownExamples string `json:"markdown_examples,omitempty"` | ||
| DeprecationMessage string `json:"deprecation_message,omitempty"` | ||
| Deprecated bool `json:"deprecated,omitempty"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is duplicated in #2652. What's the sequence of merging you're thinking of?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't matter much, because we can rebase one PR on another. This PR is more important, I feel it will take time to review all deprecations introduced in #2652 |
||
| } | ||
|
|
||
| const Placeholder = "PLACEHOLDER" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -230,6 +230,12 @@ github.com/databricks/cli/bundle/config/resources.Pipeline: | |
| "run_as": | ||
| "description": |- | ||
| PLACEHOLDER | ||
| "target": | ||
| # should not be marked as deprecated until its possible to switch | ||
| # existing pipelines to use 'schema' instead | ||
| "deprecated": false | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this set as If not, absence of an entry means it won't be set.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's primarily for the case when parent file gets deprecated annotation from OpenAPI spec |
||
| "trigger": | ||
| "deprecation_message": Use continuous instead | ||
|
kanterov marked this conversation as resolved.
|
||
| github.com/databricks/cli/bundle/config/resources.QualityMonitor: | ||
| "_": | ||
| "markdown_description": |- | ||
|
|
@@ -567,6 +573,9 @@ github.com/databricks/databricks-sdk-go/service/pipelines.PipelineTrigger: | |
| "manual": | ||
| "description": |- | ||
| PLACEHOLDER | ||
| github.com/databricks/databricks-sdk-go/service/pipelines.PipelineLibrary: | ||
| "whl": | ||
| "deprecated": true | ||
| github.com/databricks/databricks-sdk-go/service/serving.ServedEntityInput: | ||
| "entity_version": | ||
| "description": |- | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.