Skip to content

Commit 8714da2

Browse files
authored
Rearranged job summary dashboard columns and make job_name clickable (#3311)
## Changes Rearranged job summary widget dashboard columns and make column name clickable ### Linked issues Resolves #3261 ### Functionality - [x] modified dashboard widget ### Tests - [x] manually tested - [x] verified on labs environment (screenshot attached)
1 parent 6b60ebc commit 8714da2

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

src/databricks/labs/ucx/queries/assessment/main/30_3_job_details.sql

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
/* --title 'Incompatible Jobs' --width 6 */
1+
/*
2+
--title 'Jobs Details'
3+
--width 6
4+
--overrides '{"spec":{
5+
"encodings":{
6+
"columns": [
7+
{"fieldName": "job_name", "booleanValues": ["false", "true"], "linkUrlTemplate": "/jobs/{{ job_id }}", "linkTextTemplate": "{{ @ }}", "linkTitleTemplate": "{{ @ }}", "linkOpenInNewTab": true, "type": "string", "displayAs": "link", "title": "job_name"},
8+
{"fieldName": "creator", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "creator"},
9+
{"fieldName": "problem", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "problem"}
10+
]},
11+
"invisibleColumns": [
12+
{"name": "job_id", "booleanValues": ["false", "true"], "type": "integer", "displayAs": "number", "title": "job_id"}
13+
] }}'
14+
*/
215
SELECT
3-
EXPLODE(FROM_JSON(failures, 'array<string>')) AS finding,
4-
job_id,
516
job_name,
6-
creator
17+
job_id,
18+
creator,
19+
EXPLODE(
20+
CASE
21+
WHEN failures IS NULL OR failures = '[]' THEN ARRAY(NULL)
22+
ELSE FROM_JSON(failures, 'array<string>')
23+
END
24+
) AS problem
725
FROM inventory.jobs
826
WHERE
927
NOT job_name LIKE '[UCX]%'
1028
ORDER BY
11-
job_id DESC
29+
job_id DESC

0 commit comments

Comments
 (0)