Skip to content

feat: gdg upgrade to work with Grafana 13 edited dashboards #586

Description

@HelenaLvH

Is your feature request related to a problem? Please describe.

Upgraded to Grafana 13.1 0 using gdg 0.9.3 and I cannot import dashboards touched by Grafana 13 using gdg.
Flow:
Export using gdg from dev host=>git
git=> prod host
Import using gdg

This gives me tag a tag error for all dashboards edited by Grafana 13

Id":3461768331415552,"folderId":0,"folderUid":"fdrbeg3pdczk0a","description":"","path":"","removed":false}
2026-07-09 09:19:23 WRN v2/filters.go:96 unable to read obj value err="no valid title found" filter=TagsFilter
2026-07-09 09:19:23 WRN api/dashboards.go:536 validation failed, skipping file=/data/appv/svc/grafana/cicd-vfmu-grafana-provisioning-components/gdg/org_isc-sps-vfmu/dashboards/VFMU/vfmu-incident-management.json err="dashboard fails to pass tag filter: tagFilter: []"

Describe alternatives you've considered

As a workaround I run a script to add the missing tag before I run the gdg import

#!/bin/bash
# tag_change_all.sh - add missing "tags": [] to all dashboard JSONs and list changed files

BASE=/data/appv/svc/grafana/xx/gdg/org_isc-xx/dashboards

changed=0
checked=0

echo "Scanning: $BASE"
echo "--- changed files ---"

while IFS= read -r -d '' file; do
    checked=$((checked+1))
    if [ "$(jq 'has("tags")' "$file")" = "false" ]; then
        if jq '. + {tags: []}' "$file" > "$file.tmp" && mv "$file.tmp" "$file"; then
            echo "${file#$BASE/}"
            changed=$((changed+1))
        else
            echo "ERROR: failed to update $file" >&2
            rm -f "$file.tmp"
        fi
    fi
done < <(find "$BASE" -name '*.json' -print0)

echo "---------------------"
echo "Checked: $checked files, changed: $changed"

Additional context
Related to (#422)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions