databricks-cli/cmd/labs/project
Serge Smertin deb7e67ad5
Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128)
## Changes

There's a lot of end-user friction for projects that require
account-level commands. This is mainly related to the fact that, as of
January 2024, workspace administrators do not necessarily have access to
call account-level APIs. Ongoing discussions exist on how to implement
this on a platform level best.

A temporary workaround is creating a dummy ~/.databrickscfg profile with
the `account_id` field, though it doesn't remove the end-user friction.
Hence, we don't require an account profile during installation (anymore)
and just prompt it when the context requires it. This also means that we
always prompt for account-level commands unless users specify a
`--profile` flag.

## Tests
- `go run main.go labs install ucx`, don't see an account profile prompt
- `go run main.go labs ucx sync-workspace-info`, to see a profile prompt
and have a valid auth passed
- `go run main.go labs ucx sync-workspace-info --debug --profile
profile-name` to get a concrete profile passed
2024-01-22 17:35:13 +00:00
..
testdata Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
command_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
entrypoint.go Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128) 2024-01-22 17:35:13 +00:00
fetcher.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
helpers.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
init_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installed.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
installed_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installer.go Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128) 2024-01-22 17:35:13 +00:00
installer_test.go Stub out Python virtual environment installation for `labs` commands (#1057) 2023-12-11 16:30:19 +00:00
login.go Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128) 2024-01-22 17:35:13 +00:00
project.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
project_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
proxy.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
schema.json Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00