diff --git a/tmp/dashboard-dab/README.md b/tmp/dashboard-dab/README.md new file mode 100644 index 00000000..572756e8 --- /dev/null +++ b/tmp/dashboard-dab/README.md @@ -0,0 +1,6 @@ +# Iterating + + +``` +databricks lakeview get 01ef69c6a1b61c85a97505155d58015e --output json | jq -r .serialized_dashboard | jq -S . > dashboard.lvdash.json +``` diff --git a/tmp/dashboard-dab/dashboard.lvdash.json b/tmp/dashboard-dab/dashboard.lvdash.json new file mode 100644 index 00000000..ea590b5e --- /dev/null +++ b/tmp/dashboard-dab/dashboard.lvdash.json @@ -0,0 +1,34 @@ +{ + "pages": [ + { + "displayName": "New Page", + "layout": [ + { + "position": { + "height": 2, + "width": 6, + "x": 0, + "y": 0 + }, + "widget": { + "name": "82eb9107", + "textbox_spec": "# hi another new foobar change! if I change this remotely" + } + }, + { + "position": { + "height": 2, + "width": 6, + "x": 0, + "y": 2 + }, + "widget": { + "name": "ffa6de4f", + "textbox_spec": "another widget" + } + } + ], + "name": "fdd21a3c" + } + ] +} diff --git a/tmp/dashboard-dab/databricks.yml b/tmp/dashboard-dab/databricks.yml new file mode 100644 index 00000000..70a6d15c --- /dev/null +++ b/tmp/dashboard-dab/databricks.yml @@ -0,0 +1,36 @@ +bundle: + name: dashboard-eng-work + +workspace: + host: https://e2-dogfood.staging.cloud.databricks.com + +variables: + # 0 - Shared SQL Warehouse (ID: dd43ee29fedd958d) + warehouse_id: + default: dd43ee29fedd958d + +permissions: + - group_name: users + level: CAN_VIEW + +resources: + dashboards: + my_special_dashboard: + # TODO: + # * rename display_name to just "name" + # * remove parent_path, optionally let it be specified as part of "name", + # just like we do for mlflow experiments. + # * default the parent_path to ${workspace.resource_path}. + display_name: "Foobar" + parent_path: ${workspace.file_path} + warehouse_id: ${var.warehouse_id} + definition_path: ./dashboard.lvdash.json + + + # # file_path: ./dashboard.lvdash.json + + # catalog: ${var.default_catalog} + # schema: ${var.default_schema} + + +#https://e2-dogfood.staging.cloud.databricks.com/dashboardsv3/01ef692961381515beac094aa0a82cd5/published?o=6051921418418893