Skip to content

Commit

Permalink
dashboard example
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Sep 4, 2024
1 parent 3461c66 commit cc3bcf9
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tmp/dashboard-dab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Iterating


```
databricks lakeview get 01ef69c6a1b61c85a97505155d58015e --output json | jq -r .serialized_dashboard | jq -S . > dashboard.lvdash.json
```
34 changes: 34 additions & 0 deletions tmp/dashboard-dab/dashboard.lvdash.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
36 changes: 36 additions & 0 deletions tmp/dashboard-dab/databricks.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cc3bcf9

Please sign in to comment.