Describe the issue
I am unable to edit a dashboard and sync it with the local version in the asset bundles src directory with the --watch switch.
Configuration
bundle:
name: my_dashboard
include:
- resources/*.yml
variables:
warehouse_id:
type: string
targets:
dev: ...
And the resource YAML looks like
resources:
dashboards:
my_dashboard:
display_name: "My Dashboard"
warehouse_id: 123456abcd
file_path: ../src/my_dashboard.lvdash.json
Steps to reproduce the behavior
Running databricks bundle generate dashboard --existing-path /Workspace/Users/me/my_dashboard.lvdash.json --watch throws: Error: if any flags in the group [watch existing-path] are set none of the others can be; [existing-path watch] were all set
Running the databricks bundle generate dashboard --resource my_dashboard --watch throws Error: dashboard resource "my_dashboard" has no file path defined
Expected Behavior
Databricks continuously syncs the dashboard to the json file in src
Actual Behavior
Error messages that prevent syncing
OS and CLI version
Databricks CLI v0.254.0
MacOS Sequoia 15.5
Is this a regression?
Did not check
Debug Logs
09:54:39 Debug: GET /api/2.0/workspace/get-status?path=/Workspace/Users/me/.bundle/my_dashboard/dev/state/terraform.tfstate&return_export_info=true
< HTTP/2.0 200 OK
< {
< "created_at": 1749141585399,
< "modified_at": 1749143548117,
< "object_id": 2903197012399550,
< "object_type": "FILE",
< "path": "/Workspace/Users/me/.bundle/my_dashboard/dev/state/terr... (13 more bytes)",
< "resource_id": "2903197012399550"
< } pid=61910 mutator=terraform:state-pull sdk=true
09:54:39 Debug: GET /api/2.0/workspace-files/Workspace/Users/me/.bundle/my_dashboard/dev/state/terraform.tfstate
< HTTP/2.0 200 OK
< <Streaming response> pid=61910 mutator=terraform:state-pull sdk=true
09:54:39 Debug: Apply pid=61910 mutator=terraform.Load
Error: dashboard resource "my_dashboard" has no file path defined
09:54:39 Debug: failed execution pid=61910 exit_code=1
09:54:39 Debug: no telemetry logs to upload pid=61910
This is probably a bug becuase looking at the tfstate file in the Databricks Workspace files shows that the file path is set to null, and the state actually contains the serialized dashboard
Describe the issue
I am unable to edit a dashboard and sync it with the local version in the asset bundles
srcdirectory with the--watchswitch.Configuration
And the resource YAML looks like
Steps to reproduce the behavior
Running
databricks bundle generate dashboard --existing-path /Workspace/Users/me/my_dashboard.lvdash.json --watchthrows:Error: if any flags in the group [watch existing-path] are set none of the others can be; [existing-path watch] were all setRunning the
databricks bundle generate dashboard --resource my_dashboard --watchthrowsError: dashboard resource "my_dashboard" has no file path definedExpected Behavior
Databricks continuously syncs the dashboard to the json file in
srcActual Behavior
Error messages that prevent syncing
OS and CLI version
Databricks CLI v0.254.0
MacOS Sequoia 15.5
Is this a regression?
Did not check
Debug Logs
This is probably a bug becuase looking at the tfstate file in the Databricks Workspace files shows that the file path is set to null, and the state actually contains the serialized dashboard