Skip to content
Merged
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/cmds-workspace.go.tmpl
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@

package workspace

{{$excludes := list "command-execution" "statement-execution" "dbfs" "dbsql-permissions"}}
{{$excludes := list "command-execution" "statement-execution" "dbfs" "dbsql-permissions" "account-access-control-proxy" }}

import (
"github.com/databricks/cli/cmd/root"
Expand Down
3 changes: 2 additions & 1 deletion .codegen/service.go.tmpl
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,8 @@ import (
"github.com/spf13/cobra"
)

{{- $excludes := list "command-execution" "statement-execution" "dbfs" "dbsql-permissions" -}}
{{ $excludes := list "command-execution" "statement-execution" "dbfs" "dbsql-permissions" "account-access-control-proxy" }}

{{if not (in $excludes .KebabName) }}
{{template "service" .}}
{{else}}
Expand Down
2 changes: 1 addition & 1 deletion bundle/config/mutator/translate_paths.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -105,7 +105,7 @@ func (m *translatePaths) translateFilePath(literal, localPath, remotePath string
return remotePath, nil
}

func (m *translatePaths) translateJobTask(dir string, b *bundle.Bundle, task *jobs.JobTaskSettings) error {
func (m *translatePaths) translateJobTask(dir string, b *bundle.Bundle, task *jobs.Task) error {
var err error

if task.NotebookTask != nil {
Expand Down
12 changes: 6 additions & 6 deletions bundle/config/mutator/translate_paths_test.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -54,7 +54,7 @@ func TestTranslatePathsSkippedWithGitSource(t *testing.T) {
GitTag: "sometag",
GitUrl: "https://github.com/someuser/somerepo",
},
Tasks: []jobs.JobTaskSettings{
Tasks: []jobs.Task{
{
NotebookTask: &jobs.NotebookTask{
NotebookPath: "my_job_notebook.py",
Expand DownExpand Up@@ -117,7 +117,7 @@ func TestTranslatePaths(t *testing.T) {
ConfigFilePath: filepath.Join(dir, "resource.yml"),
},
JobSettings: &jobs.JobSettings{
Tasks: []jobs.JobTaskSettings{
Tasks: []jobs.Task{
{
NotebookTask: &jobs.NotebookTask{
NotebookPath: "./my_job_notebook.py",
Expand DownExpand Up@@ -251,7 +251,7 @@ func TestTranslatePathsInSubdirectories(t *testing.T) {
ConfigFilePath: filepath.Join(dir, "job/resource.yml"),
},
JobSettings: &jobs.JobSettings{
Tasks: []jobs.JobTaskSettings{
Tasks: []jobs.Task{
{
SparkPythonTask: &jobs.SparkPythonTask{
PythonFile: "./my_python_file.py",
Expand DownExpand Up@@ -314,7 +314,7 @@ func TestTranslatePathsOutsideBundleRoot(t *testing.T) {
ConfigFilePath: filepath.Join(dir, "../resource.yml"),
},
JobSettings: &jobs.JobSettings{
Tasks: []jobs.JobTaskSettings{
Tasks: []jobs.Task{
{
SparkPythonTask: &jobs.SparkPythonTask{
PythonFile: "./my_python_file.py",
Expand DownExpand Up@@ -345,7 +345,7 @@ func TestJobNotebookDoesNotExistError(t *testing.T) {
ConfigFilePath: filepath.Join(dir, "fake.yml"),
},
JobSettings: &jobs.JobSettings{
Tasks: []jobs.JobTaskSettings{
Tasks: []jobs.Task{
{
NotebookTask: &jobs.NotebookTask{
NotebookPath: "./doesnt_exist.py",
Expand DownExpand Up@@ -376,7 +376,7 @@ func TestJobFileDoesNotExistError(t *testing.T) {
ConfigFilePath: filepath.Join(dir, "fake.yml"),
},
JobSettings: &jobs.JobSettings{
Tasks: []jobs.JobTaskSettings{
Tasks: []jobs.Task{
{
SparkPythonTask: &jobs.SparkPythonTask{
PythonFile: "./doesnt_exist.py",
Expand Down
6 changes: 3 additions & 3 deletions bundle/deploy/terraform/convert_test.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,13 +20,13 @@ func TestConvertJob(t *testing.T) {
JobClusters: []jobs.JobCluster{
{
JobClusterKey: "key",
NewCluster: &compute.BaseClusterInfo{
NewCluster: &compute.ClusterSpec{
SparkVersion: "10.4.x-scala2.12",
},
},
},
GitSource: &jobs.GitSource{
GitProvider: jobs.GitSourceGitProviderGithub,
GitProvider: jobs.GitProviderGithub,
GitUrl: "https://github.com/foo/bar",
},
},
Expand DownExpand Up@@ -78,7 +78,7 @@ func TestConvertJobTaskLibraries(t *testing.T) {
var src = resources.Job{
JobSettings: &jobs.JobSettings{
Name: "my job",
Tasks: []jobs.JobTaskSettings{
Tasks: []jobs.Task{
{
TaskKey: "key",
Libraries: []compute.Library{
Expand Down
7 changes: 6 additions & 1 deletion cmd/account/billable-usage/billable-usage.go

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

2 changes: 2 additions & 0 deletions cmd/account/groups/groups.go

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

108 changes: 108 additions & 0 deletions cmd/account/settings/settings.go

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

2 changes: 1 addition & 1 deletion cmd/auth/login.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -66,7 +66,7 @@ var loginCmd = &cobra.Command{

promptSpinner := cmdio.Spinner(ctx)
promptSpinner <- "Loading list of clusters to select from"
names, err := w.Clusters.ClusterInfoClusterNameToClusterIdMap(ctx, compute.ListClustersRequest{})
names, err := w.Clusters.ClusterDetailsClusterNameToClusterIdMap(ctx, compute.ListClustersRequest{})
close(promptSpinner)
if err != nil {
return fmt.Errorf("failed to load clusters list. Original error: %w", err)
Expand Down
Loading