This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch feat#7280
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/feat#7280 by this push:
     new 12e0602ca fix: github bamboo and dashboard url add link
12e0602ca is described below

commit 12e0602cac414335b6991de343b6c2fed3d69dcd
Author: abeizn <[email protected]>
AuthorDate: Wed Apr 17 15:09:27 2024 +0800

    fix: github bamboo and dashboard url add link
---
 .../DORADetails-DeploymentFrequency.json           | 47 +++++++++++++++-------
 ....json => DORADetails-DeploymentFrequency2.json} |  0
 2 files changed, 33 insertions(+), 14 deletions(-)

diff --git a/grafana/dashboards/DORADetails-DeploymentFrequency.json 
b/grafana/dashboards/DORADetails-DeploymentFrequency.json
index b034b2f75..956182406 100644
--- a/grafana/dashboards/DORADetails-DeploymentFrequency.json
+++ b/grafana/dashboards/DORADetails-DeploymentFrequency.json
@@ -18,7 +18,7 @@
   "editable": true,
   "fiscalYearStartMonth": 0,
   "graphTooltip": 0,
-  "id": 4,
+  "id": 7,
   "links": [
     {
       "asDropdown": false,
@@ -87,6 +87,7 @@
             "filterable": true,
             "inspect": true
           },
+          "links": [],
           "mappings": [
             {
               "options": {
@@ -198,6 +199,28 @@
               {
                 "id": "custom.width",
                 "value": 355
+              },
+              {
+                "id": "links",
+                "value": [
+                  {
+                    "targetBlank": true,
+                    "title": "",
+                    "url": "${__data.fields[\"metric_hidden\"]}"
+                  }
+                ]
+              }
+            ]
+          },
+          {
+            "matcher": {
+              "id": "byName",
+              "options": "metric_hidden"
+            },
+            "properties": [
+              {
+                "id": "custom.hidden",
+                "value": true
               }
             ]
           }
@@ -233,7 +256,7 @@
           "metricColumn": "none",
           "queryType": "randomWalk",
           "rawQuery": true,
-          "rawSql": "with _deployment_commit_rank as(\n  SELECT\n  
\tpm.project_name,\n  \tIF(cdc._raw_data_table != '', cdc._raw_data_table, 
cdc.cicd_scope_id) as _raw_data_table,\n  \tcdc.id,\n    cdc.display_title,\n   
 cdc.url,\n  \tcdc.cicd_deployment_id,\n  \tcdc.cicd_scope_id,\n  \tresult,\n  
\tenvironment,\n    finished_date,\n    row_number() over(partition by 
cdc.cicd_deployment_id order by finished_date desc) as 
_deployment_commit_rank\n  FROM cicd_deployment_commits cdc\n  le [...]
+          "rawSql": "with _deployment_commit_rank as(\n  SELECT\n  
\tpm.project_name,\n  \tIF(cdc._raw_data_table != '', cdc._raw_data_table, 
cdc.cicd_scope_id) as _raw_data_table,\n  \tcdc.id,\n    cdc.display_title,\n   
 cdc.url,\n  \tcdc.cicd_deployment_id,\n  \tcdc.cicd_scope_id,\n  \tresult,\n  
\tenvironment,\n    finished_date,\n    row_number() over(partition by 
cdc.cicd_deployment_id order by finished_date desc) as 
_deployment_commit_rank\n  FROM cicd_deployment_commits cdc\n  le [...]
           "refId": "A",
           "select": [
             [
@@ -556,8 +579,7 @@
             "mode": "absolute",
             "steps": [
               {
-                "color": "green",
-                "value": null
+                "color": "green"
               },
               {
                 "color": "red",
@@ -685,8 +707,7 @@
             "mode": "absolute",
             "steps": [
               {
-                "color": "green",
-                "value": null
+                "color": "green"
               },
               {
                 "color": "#EAB839",
@@ -858,8 +879,7 @@
             "mode": "absolute",
             "steps": [
               {
-                "color": "#a6a6a6",
-                "value": null
+                "color": "#a6a6a6"
               }
             ]
           },
@@ -996,8 +1016,7 @@
             "mode": "absolute",
             "steps": [
               {
-                "color": "#a6a6a6",
-                "value": null
+                "color": "#a6a6a6"
               }
             ]
           },
@@ -1134,8 +1153,7 @@
             "mode": "absolute",
             "steps": [
               {
-                "color": "#a6a6a6",
-                "value": null
+                "color": "#a6a6a6"
               }
             ]
           },
@@ -1219,6 +1237,7 @@
       "type": "stat"
     }
   ],
+  "refresh": false,
   "schemaVersion": 39,
   "tags": [
     "DORA"
@@ -1227,7 +1246,7 @@
     "list": [
       {
         "current": {
-          "selected": false,
+          "selected": true,
           "text": [
             "All"
           ],
@@ -1302,6 +1321,6 @@
   "timezone": "",
   "title": "DORA Details - Deployment Frequency",
   "uid": "Deployment-frequency",
-  "version": 3,
+  "version": 4,
   "weekStart": ""
 }
\ No newline at end of file
diff --git a/grafana/dashboards/DORADetails-DeploymentFrequency.json 
b/grafana/dashboards/DORADetails-DeploymentFrequency2.json
similarity index 100%
copy from grafana/dashboards/DORADetails-DeploymentFrequency.json
copy to grafana/dashboards/DORADetails-DeploymentFrequency2.json

Reply via email to