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
F18654520: D20408.diff
Mon, Sep 22, 12:44 PM
F18642566: D20408.id48715.diff
Fri, Sep 19, 12:06 AM
F18635262: D20408.diff
Wed, Sep 17, 12:53 AM
F18621475: D20408.id48715.diff
Mon, Sep 15, 8:29 AM
F18617513: D20408.id48697.diff
Sun, Sep 14, 9:23 PM
F18613403: D20408.id.diff
Sun, Sep 14, 11:09 AM
F18612981: D20408.id48697.diff
Sun, Sep 14, 10:29 AM
F18435419: D20408.id48697.diff
Aug 31 2025, 10:04 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