Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize assessment dashboard to increase readability #738

Merged
merged 4 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- viz type=table, name=Object Type Readiness, columns=object_type,readiness
-- widget title=Readiness, row=1, col=0, size_x=1, size_y=8
-- widget title=Readiness, row=1, col=0, size_x=2, size_y=8
WITH raw AS (
SELECT object_type, object_id, IF(failures == '[]', 1, 0) AS ready FROM $inventory.objects
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- viz type=table, name=Assessment Summary, search_by=failure, columns=failure,count
-- widget title=Assessment Summary, row=1, col=1, size_x=2, size_y=8
-- widget title=Assessment Summary, row=1, col=2, size_x=4, size_y=8
WITH raw AS (
SELECT EXPLODE(FROM_JSON(failures, 'array<string>')) AS failure FROM $inventory.objects WHERE failures <> '[]'
)
SELECT failure, COUNT(*) AS count FROM raw GROUP BY failure
ORDER BY count DESC, failure DESC
SELECT failure as `item`, COUNT(*) AS count FROM raw GROUP BY failure
ORDER BY count DESC, failure DESC
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- viz type=table, name=Table Types, search_by=name, columns=name,type,format,storage,is_delta,location
-- widget title=Table Types, row=1, col=3, size_x=3, size_y=8
-- widget title=Table Types, row=4, col=0, size_x=6, size_y=8
SELECT CONCAT(tables.`database`, '.', tables.name) AS name,
object_type AS type,
table_format AS format,
Expand Down
Loading