Page MenuHomePhabricator

Update "add panel" and "remove panel" Dashboard flows to the new panel storage format
ClosedPublic

Authored by epriestley on Apr 12 2019, 6:29 PM.
Tags
None
Referenced Files
F19937822: D20408.diff
Mon, Apr 13, 8:03 PM
F19881563: D20408.id48715.diff
Wed, Mar 18, 11:49 PM
F19863407: D20408.id48697.diff
Mar 14 2026, 11:21 AM
F19810923: D20408.id48715.diff
Mar 3 2026, 9:52 PM
F19797397: D20408.id.diff
Feb 27 2026, 7:16 PM
F19615712: D20408.diff
Feb 4 2026, 1:05 AM
F19543166: D20408.diff
Jan 22 2026, 3:39 PM
F19067821: D20408.id.diff
Nov 30 2025, 10:55 AM
Subscribers
None

Details

Summary

Depends on D20407. Ref T13272. This updates the "add panel" (which has two flavors: "add existing" and "create new") and "remove panel" flows to work with the new duplicate-friendly storage format.

  • We now modify panels by "panelKey", not by panel PHID, so one dashboard may have multiple copies of the same panel and we can still figure out what's going on.
  • We now work with "contextPHID", not "dashboardID", to make some flows with tab panels (or other nested panels in the future) easier.

The only major remaining flow is the Javascript "move panels around with drag-and-drop" flow.

Test Plan
  • Added panels to a dashboard with "Create New Panel".
  • Added panels to a dashboard with "Add Existing Panel".
  • Removed panels from a dashboard.
  • Added and removed duplicate panels, got a correctly-functioning dashboard that didn't care about duplicates.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable