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
Unknown Object (File)
Apr 15 2026, 12:28 PM
Unknown Object (File)
Apr 15 2026, 9:57 AM
Unknown Object (File)
Apr 7 2026, 4:32 PM
Unknown Object (File)
Mar 1 2026, 4:13 PM
Unknown Object (File)
Feb 28 2026, 1:10 AM
Unknown Object (File)
Jan 24 2026, 1:54 AM
Unknown Object (File)
Jan 16 2026, 9:25 PM
Unknown Object (File)
Jan 16 2026, 9:25 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