Skip to content

fix(dashboard): ensure panelMap and variables default to empty JSON object#79

Open
noqcks wants to merge 2 commits into
SigNoz:mainfrom
noqcks:fix/dashboard-panelmap-empty
Open

fix(dashboard): ensure panelMap and variables default to empty JSON object#79
noqcks wants to merge 2 commits into
SigNoz:mainfrom
noqcks:fix/dashboard-panelmap-empty

Conversation

@noqcks

@noqcks noqcks commented Mar 10, 2026

Copy link
Copy Markdown

Fixes

  • Ensure panelMap and variables default to empty JSON object {} instead of empty string, preventing perpetual Terraform plan
    diffs on dashboards

fixes #44

noqcks added 2 commits March 10, 2026 14:25
Remove omitempty from PanelMap JSON tag and return "{}" instead of ""
when panel map is empty, preventing inconsistent state in Terraform.
Apply the same empty-string fix to VariablesToTerraform() to prevent
inconsistent Terraform state when variables is nil.
@noqcks noqcks requested a review from a team as a code owner March 10, 2026 18:28
@noqcks noqcks changed the title Fix/dashboard panelmap empty fix(dashboard): ensure panelMap and variables default to empty JSON object Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

handle panel_map attribute correctly

1 participant