Page MenuHomePhabricator

Fix an issue where editing a dashboard panel from a dashboard could duplicate the panel
ClosedPublic

Authored by epriestley on Apr 25 2019, 5:38 PM.
Tags
None
Referenced Files
F19082980: D20473.id48864.diff
Dec 2 2025, 12:28 PM
F18985097: D20473.id48845.diff
Nov 17 2025, 12:53 PM
F18917679: D20473.diff
Nov 9 2025, 9:55 AM
F18837267: D20473.id48864.diff
Oct 27 2025, 4:45 AM
F18837266: D20473.id48845.diff
Oct 27 2025, 4:45 AM
F18837265: D20473.id.diff
Oct 27 2025, 4:45 AM
F18834182: D20473.diff
Oct 26 2025, 7:05 AM
F18828947: D20473.id48845.diff
Oct 24 2025, 6:55 PM
Subscribers
None

Details

Summary

Depends on D20472. Ref T13272. Currently, when you edit a panel from a dashboard, we try to add the panel to the dashboard. This always works since dashboards no longer enforce panel uniqueness, and you can end up with duplicate panels.

Instead, only add panels if we're creating them.

Test Plan
  • Edited an existing panel, no duplication.
  • Created a new panel, saw it added to the dashboard.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable