mirror of
https://github.com/apache/superset.git
synced 2026-07-18 20:55:47 +00:00
The Dashboard Properties modal seeds a separate refreshFrequency state from the Refresh dropdown and, on save, unconditionally overwrote json_metadata.refresh_frequency with it, so a value typed directly into the Advanced JSON editor was clobbered by the (stale) dropdown value and reset to 0. This mirrors how color_scheme is already handled: the JSON editor value now takes precedence on save, and a dropdown change syncs back into the JSON so the two sources can't diverge. Also hardens DashboardDAO.set_dash_metadata so metadata fields absent from the incoming payload are preserved instead of reset to their defaults (the pattern dosu flagged on the issue), preventing partial updates from wiping unrelated fields. Fixes #42116 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>