Skip to content

Commit 06c666c

Browse files
authored
Reorganize assessment dashboard to increase readability (#738)
Closes #734 <img width="1673" alt="image" src="https://github.com/databrickslabs/ucx/assets/1122251/42e8eba8-9a89-4a20-958d-1209f51e542d">
1 parent ef937c4 commit 06c666c

File tree

8 files changed

+5
-5
lines changed

8 files changed

+5
-5
lines changed

src/databricks/labs/ucx/queries/assessment/main/01_0_object_readiness.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- viz type=table, name=Object Type Readiness, columns=object_type,readiness
2-
-- widget title=Readiness, row=1, col=0, size_x=1, size_y=8
2+
-- widget title=Readiness, row=1, col=0, size_x=2, size_y=8
33
WITH raw AS (
44
SELECT object_type, object_id, IF(failures == '[]', 1, 0) AS ready FROM $inventory.objects
55
)
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- viz type=table, name=Assessment Summary, search_by=failure, columns=failure,count
2-
-- widget title=Assessment Summary, row=1, col=1, size_x=2, size_y=8
2+
-- widget title=Assessment Summary, row=1, col=2, size_x=4, size_y=8
33
WITH raw AS (
44
SELECT EXPLODE(FROM_JSON(failures, 'array<string>')) AS failure FROM $inventory.objects WHERE failures <> '[]'
55
)
6-
SELECT failure, COUNT(*) AS count FROM raw GROUP BY failure
7-
ORDER BY count DESC, failure DESC
6+
SELECT failure as `item`, COUNT(*) AS count FROM raw GROUP BY failure
7+
ORDER BY count DESC, failure DESC

src/databricks/labs/ucx/queries/assessment/main/01_3_all_tables.sql renamed to src/databricks/labs/ucx/queries/assessment/main/03_0_all_tables.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- viz type=table, name=Table Types, search_by=name, columns=name,type,format,storage,is_delta,location
2-
-- widget title=Table Types, row=1, col=3, size_x=3, size_y=8
2+
-- widget title=Table Types, row=4, col=0, size_x=6, size_y=8
33
SELECT CONCAT(tables.`database`, '.', tables.name) AS name,
44
object_type AS type,
55
table_format AS format,

0 commit comments

Comments
 (0)