Files
grafana/public/app/plugins
Paul MarbachandClaude Opus 4.8 08512853d2 Panels: Stop persisting default values for new graph panel options (#129116)
Newly added timeseries/graph panel options were declared with an explicit
`defaultValue` in their options-builder entries. PanelPlugin collects every
builder `defaultValue` into `plugin.defaults`, and `getPanelOptionsWithDefaults`
merges those into the saved panel options. As a result, opening and saving any
dashboard with graph panels (without making changes) wrote these fields into
every panel's JSON, producing noisy diffs:

  - legend.enableFacetedFilter
  - legend.overflow
  - annotations.multiLane
  - annotations.clustering

Remove the `defaultValue` from these builder entries so the options are only
serialized when a user actually sets them. Runtime behavior is unchanged: all
consumers already fall back to the previous defaults when the value is
undefined (faceted filter off, ellipsis overflow, multi-lane off, clustering
disabled).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-27 14:55:56 -04:00
..