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
F15452932: D20473.id48845.diff
Sat, Mar 29, 8:13 AM
F15447932: D20473.diff
Fri, Mar 28, 2:27 AM
F15443416: D20473.id48864.diff
Thu, Mar 27, 4:16 AM
F15435758: D20473.id.diff
Tue, Mar 25, 10:03 AM
F15431426: D20473.diff
Mon, Mar 24, 12:16 PM
Unknown Object (File)
Feb 20 2025, 4:04 AM
Unknown Object (File)
Feb 14 2025, 10:52 PM
Unknown Object (File)
Feb 14 2025, 10:52 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