databricks-sdk-go
databricks-sdk-go copied to clipboard
lakeview publish --embed-credentials default option configured to true whereas should be false
Describe the issue
the databricks lakeview publish command has a flag --embed-credentials which is a boolean flag. So if the --embed-credentials is present then it should be True or else False. Although in the current version, if we do not specify the --embed-credentials, by default the dashboard is published with embed-credentials true. So there is no way to specify it as false with the current cli command
Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
-
Run
databricks lakeview publish <Dashboard ID> --warehouse id <warehouse_id>The reports gets published with embedded credentials -
Run
databricks lakeview publish <Dashboard ID> --warehouse id <warehouse_id> --embed-credentialsThe reports gets published with embedded credentials -
Run
databricks lakeview publish <Dashboard ID> --warehouse id <warehouse_id> --embed-credentials falsedoes not work since --embed-credentials is a boolean flag
Expected Behavior
The command without the --embed-credentials flag should publish the dashboard with in "Don't embeded Credentials' mode: databricks lakeview publish <Dashboard ID> --warehouse id <warehouse_id>
Actual Behavior
-
Run
databricks lakeview publish <Dashboard ID> --warehouse id <warehouse_id>The reports gets published with embedded credentials -
Run
databricks lakeview publish <Dashboard ID> --warehouse id <warehouse_id> --embed-credentialsThe reports gets published with embedded credentials
No option to publish without embedded credentials mode
OS and CLI version
Windows, v0.218.1
Is this a regression?
Did this work in a previous version of the CLI? If so, which versions did you try? Not tried in a previous version
Debug Logs
Nothing much in debug logs as there is no error.