mirror of
https://github.com/grafana/grafana.git
synced 2026-08-10 05:08:16 -05:00
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>