Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2d7aaedaf5d20f82b17cc1de48543b88e609f464
69a174b6c47c5e1039a5f14271440c10e33998ce
20 changes: 17 additions & 3 deletions .github/workflows/tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,31 @@
name: tagging

on:
# Manual dispatch.
workflow_dispatch:
# Enable for automatic tagging
#schedule:
# - cron: '0 0 * * TUE'
# No inputs are required for the manual dispatch.

# Runs at 8:00 UTC on Tuesday, Wednesday, and Thursday. To enable automated
# tagging for a repository, simply add it to the if block of the tag job.
schedule:
- cron: '0 8 * * TUE,WED,THU'

# Ensure that only a single instance of the workflow is running at a time.
concurrency:
group: "tagging"

jobs:
tag:
# Only run the tag job if the trigger is manual (workflow_dispatch) or
# the repository has been approved for automated releases.
#
# To disable release for a repository, simply exclude it from the if
# condition.
if: >-
github.event_name == 'workflow_dispatch' ||
github.repository == 'databricks/databricks-sdk-go' ||
github.repository == 'databricks/databricks-sdk-py' ||
github.repository == 'databricks/databricks-sdk-java'
Copy link
Contributor

Choose a reason for hiding this comment

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

Please revert this. We don't want to auto-release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was generated automatically, will revert

environment: "release-is"
runs-on:
group: databricks-deco-testing-runner-group
Expand Down
2 changes: 1 addition & 1 deletion acceptance/auth/credentials/unified-host/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
}

=== Without workspace_id (should error)
Error: WorkspaceId must be set when using WorkspaceClient with unified host
Error: WorkspaceID must be set when using WorkspaceClient with unified host

Exit code: 1
5 changes: 5 additions & 0 deletions acceptance/bundle/refschema/out.fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ resources.jobs.*.environments []jobs.JobEnvironment ALL
resources.jobs.*.environments[*] jobs.JobEnvironment ALL
resources.jobs.*.environments[*].environment_key string ALL
resources.jobs.*.environments[*].spec *compute.Environment ALL
resources.jobs.*.environments[*].spec.base_environment string ALL
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Highlight: updated manually

Copy link
Contributor

Choose a reason for hiding this comment

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

Was that needed?

You can run make test-update to update test fixtures, including this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there were some test failures, will update it using make test-update command

resources.jobs.*.environments[*].spec.client string ALL
resources.jobs.*.environments[*].spec.dependencies []string ALL
resources.jobs.*.environments[*].spec.dependencies[*] string ALL
Expand Down Expand Up @@ -877,6 +878,8 @@ resources.jobs.*.tasks[*].condition_task.op jobs.ConditionTaskOp ALL
resources.jobs.*.tasks[*].condition_task.right string ALL
resources.jobs.*.tasks[*].dashboard_task *jobs.DashboardTask ALL
resources.jobs.*.tasks[*].dashboard_task.dashboard_id string ALL
resources.jobs.*.tasks[*].dashboard_task.filters map[string]string ALL
resources.jobs.*.tasks[*].dashboard_task.filters.* string ALL
resources.jobs.*.tasks[*].dashboard_task.subscription *jobs.Subscription ALL
resources.jobs.*.tasks[*].dashboard_task.subscription.custom_subject string ALL
resources.jobs.*.tasks[*].dashboard_task.subscription.paused bool ALL
Expand Down Expand Up @@ -939,6 +942,8 @@ resources.jobs.*.tasks[*].for_each_task.task.condition_task.op jobs.ConditionTas
resources.jobs.*.tasks[*].for_each_task.task.condition_task.right string ALL
resources.jobs.*.tasks[*].for_each_task.task.dashboard_task *jobs.DashboardTask ALL
resources.jobs.*.tasks[*].for_each_task.task.dashboard_task.dashboard_id string ALL
resources.jobs.*.tasks[*].for_each_task.task.dashboard_task.filters map[string]string ALL
resources.jobs.*.tasks[*].for_each_task.task.dashboard_task.filters.* string ALL
resources.jobs.*.tasks[*].for_each_task.task.dashboard_task.subscription *jobs.Subscription ALL
resources.jobs.*.tasks[*].for_each_task.task.dashboard_task.subscription.custom_subject string ALL
resources.jobs.*.tasks[*].for_each_task.task.dashboard_task.subscription.paused bool ALL
Expand Down
2 changes: 1 addition & 1 deletion bundle/config/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (w *Workspace) Config() *config.Config {

// Unified host
Experimental_IsUnifiedHost: w.ExperimentalIsUnifiedHost,
WorkspaceId: w.WorkspaceId,
WorkspaceID: w.WorkspaceId,
}

for k := range config.ConfigAttributes {
Expand Down
6 changes: 0 additions & 6 deletions bundle/internal/schema/annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -556,12 +556,6 @@ github.com/databricks/cli/bundle/config/resources.Catalog:
"connection_name":
"description": |-
PLACEHOLDER
"grants":
"description": |-
PLACEHOLDER
"lifecycle":
"description": |-
PLACEHOLDER
"name":
"description": |-
PLACEHOLDER
Expand Down
14 changes: 14 additions & 0 deletions bundle/internal/schema/annotations_openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2120,6 +2120,10 @@ github.com/databricks/databricks-sdk-go/service/compute.Environment:
"description": |-
The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines.
In this minimal environment spec, only pip dependencies are supported.
"base_environment":
"description": |-
The `base_environment` key refers to an `env.yaml` file that specifies an environment version and a collection of dependencies required for the environment setup.
This `env.yaml` file may itself include a `base_environment` reference pointing to another `env_1.yaml` file. However, when used as a base environment, `env_1.yaml` (or further nested references) will not be processed or included in the final environment, meaning that the resolution of `base_environment` references is not recursive.
"client":
"description": |-
Use `environment_version` instead.
Expand Down Expand Up @@ -2876,6 +2880,16 @@ github.com/databricks/databricks-sdk-go/service/jobs.DashboardTask:
"dashboard_id":
"description": |-
The identifier of the dashboard to refresh.
"filters":
"description": |-
Dashboard task parameters. Used to apply dashboard filter values during dashboard task execution. Parameter values get applied to any dashboard filters that have a matching URL identifier as the parameter key.
The parameter value format is dependent on the filter type:
- For text and single-select filters, provide a single value (e.g. `"value"`)
- For date and datetime filters, provide the value in ISO 8601 format (e.g. `"2000-01-01T00:00:00"`)
- For multi-select filters, provide a JSON array of values (e.g. `"[\"value1\",\"value2\"]"`)
- For range and date range filters, provide a JSON object with `start` and `end` (e.g. `"{\"start\":\"1\",\"end\":\"10\"}"`)
"x-databricks-preview": |-
PRIVATE
"subscription":
"description": |-
Optional: subscription configuration for sending the dashboard snapshot.
Expand Down
7 changes: 7 additions & 0 deletions bundle/internal/schema/annotations_openapi_overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ github.com/databricks/cli/bundle/config/resources.AppPermissionLevel:
CAN_MANAGE
- |-
CAN_USE
github.com/databricks/cli/bundle/config/resources.Catalog:
"grants":
"description": |-
PLACEHOLDER
"lifecycle":
"description": |-
PLACEHOLDER
github.com/databricks/cli/bundle/config/resources.Cluster:
"_":
"markdown_description": |-
Expand Down
10 changes: 10 additions & 0 deletions bundle/schema/jsonschema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions bundle/schema/jsonschema_for_docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4018,6 +4018,10 @@
"type": "object",
"description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip dependencies are supported.",
"properties": {
"base_environment": {
"description": "The `base_environment` key refers to an `env.yaml` file that specifies an environment version and a collection of dependencies required for the environment setup.\nThis `env.yaml` file may itself include a `base_environment` reference pointing to another `env_1.yaml` file. However, when used as a base environment, `env_1.yaml` (or further nested references) will not be processed or included in the final environment, meaning that the resolution of `base_environment` references is not recursive.",
"$ref": "#/$defs/string"
},
"client": {
"description": "Use `environment_version` instead.",
"$ref": "#/$defs/string",
Expand Down Expand Up @@ -4802,6 +4806,12 @@
"$ref": "#/$defs/string",
"x-since-version": "v0.248.0"
},
"filters": {
"description": "Dashboard task parameters. Used to apply dashboard filter values during dashboard task execution. Parameter values get applied to any dashboard filters that have a matching URL identifier as the parameter key.\nThe parameter value format is dependent on the filter type:\n- For text and single-select filters, provide a single value (e.g. `\"value\"`)\n- For date and datetime filters, provide the value in ISO 8601 format (e.g. `\"2000-01-01T00:00:00\"`)\n- For multi-select filters, provide a JSON array of values (e.g. `\"[\\\"value1\\\",\\\"value2\\\"]\"`)\n- For range and date range filters, provide a JSON object with `start` and `end` (e.g. `\"{\\\"start\\\":\\\"1\\\",\\\"end\\\":\\\"10\\\"}\"`)",
"$ref": "#/$defs/map/string",
"x-databricks-preview": "PRIVATE",
"doNotSuggest": true
},
"subscription": {
"$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/jobs.Subscription",
"x-since-version": "v0.248.0"
Expand Down
6 changes: 3 additions & 3 deletions cmd/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ depends on the existing profiles you have set in your configuration file
w, err := databricks.NewWorkspaceClient(&databricks.Config{
Host: authArguments.Host,
AccountID: authArguments.AccountID,
WorkspaceId: authArguments.WorkspaceId,
WorkspaceID: authArguments.WorkspaceId,
Experimental_IsUnifiedHost: authArguments.IsUnifiedHost,
Credentials: config.NewTokenSourceStrategy("login-token", authconv.AuthTokenSource(persistentAuth)),
})
Expand Down Expand Up @@ -230,7 +230,7 @@ depends on the existing profiles you have set in your configuration file
Host: authArguments.Host,
AuthType: authTypeDatabricksCLI,
AccountID: authArguments.AccountID,
WorkspaceId: authArguments.WorkspaceId,
WorkspaceID: authArguments.WorkspaceId,
Experimental_IsUnifiedHost: authArguments.IsUnifiedHost,
ClusterID: clusterID,
ConfigFile: os.Getenv("DATABRICKS_CONFIG_FILE"),
Expand Down Expand Up @@ -291,7 +291,7 @@ func setHostAndAccountId(ctx context.Context, existingProfile *profile.Profile,
cfg := &config.Config{
Host: authArguments.Host,
AccountID: authArguments.AccountID,
WorkspaceId: authArguments.WorkspaceId,
WorkspaceID: authArguments.WorkspaceId,
Experimental_IsUnifiedHost: authArguments.IsUnifiedHost,
}

Expand Down
62 changes: 46 additions & 16 deletions cmd/workspace/genie/genie.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cmd/workspace/policies/policies.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions cmd/workspace/warehouses/warehouses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/charmbracelet/bubbletea v1.3.10 // MIT
github.com/charmbracelet/huh v0.8.0
github.com/charmbracelet/lipgloss v1.1.0 // MIT
github.com/databricks/databricks-sdk-go v0.104.0 // Apache 2.0
github.com/databricks/databricks-sdk-go v0.106.0 // Apache 2.0
github.com/fatih/color v1.18.0 // MIT
github.com/google/uuid v1.6.0 // BSD-3-Clause
github.com/gorilla/mux v1.8.1 // BSD 3-Clause
Expand Down
Loading