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
Unknown Object (File)
Fri, Nov 8, 3:18 AM
Unknown Object (File)
Oct 16 2024, 4:07 AM
Unknown Object (File)
Oct 12 2024, 1:48 AM
Unknown Object (File)
Oct 9 2024, 12:05 PM
Unknown Object (File)
Oct 2 2024, 1:43 PM
Unknown Object (File)
Oct 1 2024, 5:37 PM
Unknown Object (File)
Oct 1 2024, 4:11 AM
Unknown Object (File)
Sep 30 2024, 6:09 PM
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
Branch
panel10
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22568
Build 30910: Run Core Tests
Build 30909: arc lint + arc unit