Skip to content

Commit ed964a6

Browse files
authored
Add links to compute summary widget (#3952)
## Changes Add links to compute summary widgets ### Linked issues Resolves #3260 ### Tests - [x] manually tested ![image](https://github.com/user-attachments/assets/8ecb04e1-e64e-48e9-8c29-20971ca94c38)
1 parent 75b291f commit ed964a6

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed
Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
/* --title 'Incompatible clusters' --width 3 --height 6 */
1+
/*
2+
--title 'Incompatible clusters'
3+
--width 3
4+
--height 6
5+
--overrides '{"spec":{
6+
"encodings":{
7+
"columns": [
8+
{"fieldName": "cluster_id", "booleanValues": ["false", "true"], "linkUrlTemplate": "/compute/clusters/{{ @ }}", "linkTextTemplate": "{{ @ }}", "linkTitleTemplate": "{{ @ }}", "linkOpenInNewTab": true, "type": "string", "displayAs": "link", "title": "cluster_id"},
9+
{"fieldName": "cluster_name", "booleanValues": ["false", "true"], "linkUrlTemplate": "/compute/clusters/{{ cluster_id }}", "linkTextTemplate": "{{ @ }}", "linkTitleTemplate": "{{ @ }}", "linkOpenInNewTab": true, "type": "string", "displayAs": "link", "title": "cluster_name"},
10+
{"fieldName": "finding", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "finding"},
11+
{"fieldName": "creator", "booleanValues": ["false", "true"], "type": "string", "displayAs": "string", "title": "creator"}
12+
]}
13+
}}'
14+
*/
215
SELECT
3-
EXPLODE(FROM_JSON(failures, 'array<string>')) AS finding,
416
cluster_id,
517
cluster_name,
18+
EXPLODE(FROM_JSON(failures, 'array<string>')) AS finding,
619
creator
720
FROM inventory.clusters
821
WHERE
922
NOT STARTSWITH(cluster_name, 'job-')
1023
ORDER BY
11-
cluster_id DESC
24+
cluster_id DESC

0 commit comments

Comments
 (0)