From 2963ac0985a7753426c21cf2f3a0f11a3bd3b1f0 Mon Sep 17 00:00:00 2001 From: Forge Date: Fri, 24 Jul 2026 16:58:37 +0000 Subject: [PATCH] [AISOS-2282] Fix Type panel to display actual ticket_type value Changed the Grafana Forge Issue Detail dashboard Type panel (panel-2) to display the actual ticket_type value from Langfuse trace metadata instead of incorrectly converting it to a binary Bug/Feature mapping. Changes: - SQL query: Use nullIf(metadata['ticket_type'], '') for direct value extraction instead of if(..., 1, 0) binary conversion - fieldConfig: Remove value mappings (0=Bug, 1=Feature) so the panel displays the raw string value (Task, Bug, Feature, Epic, etc.) The nullIf pattern matches existing dashboard conventions. The minimal fieldConfig pattern matches panel-3 (Total Traces) in the same file. Closes: AISOS-2282 --- .../grafana/dashboards/forge-issue-detail.json | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/devtools/grafana/dashboards/forge-issue-detail.json b/devtools/grafana/dashboards/forge-issue-detail.json index 3bb09e9f..31bb68db 100644 --- a/devtools/grafana/dashboards/forge-issue-detail.json +++ b/devtools/grafana/dashboards/forge-issue-detail.json @@ -464,7 +464,7 @@ }, "spec": { "format": "table", - "rawSql": "SELECT any(if(metadata['ticket_type'] = 'Feature', 1, 0)) as value FROM traces FINAL WHERE session_id = '${jira_issue}'" + "rawSql": "SELECT any(nullIf(metadata['ticket_type'], '')) as value FROM traces FINAL WHERE session_id = '${jira_issue}'" } }, "refId": "A", @@ -490,21 +490,7 @@ "textMode": "value" }, "fieldConfig": { - "defaults": { - "mappings": [ - { - "type": "value", - "options": { - "0": { - "text": "Bug" - }, - "1": { - "text": "Feature" - } - } - } - ] - }, + "defaults": {}, "overrides": [] } }