Page MenuHomePhabricator

On panel pages, show where panels are used
ClosedPublic

Authored by epriestley on Apr 11 2019, 7:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 7:02 PM
Unknown Object (File)
Tue, Dec 17, 1:29 PM
Unknown Object (File)
Thu, Dec 12, 10:47 PM
Unknown Object (File)
Fri, Dec 6, 11:18 AM
Unknown Object (File)
Tue, Nov 26, 3:49 PM
Unknown Object (File)
Tue, Nov 26, 7:17 AM
Unknown Object (File)
Tue, Nov 26, 6:18 AM
Unknown Object (File)
Tue, Nov 26, 6:18 AM
Subscribers
None

Details

Summary

Depends on D20398. Ref T13272. Fixes T6018. Previously, panels showed "used on dashboards: x, y", but this did not include cases where a panel was used by another container panel (today, a tab panel).

Do edge indexing when a dashboard or panel is saved, then pull the edges on the Panel page so we can provide a full list of uses.

Test Plan

Screen Shot 2019-04-11 at 11.54.17 AM.png (317×1 px, 38 KB)

Diff Detail

Repository
rP Phabricator
Branch
panel4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22551
Build 30883: Run Core Tests
Build 30882: arc lint + arc unit

Event Timeline

amckinley added inline comments.
src/applications/dashboard/interface/PhabricatorDashboardPanelContainerInterface.php
3

Was this supposed to get an interface implementation template? I guess it's only ever going to have the two implementors in this diff...

src/applications/dashboard/query/PhabricatorDashboardPanelQuery.php
105

Intentional? At least in my DB, the table looks like local_dashboard.dashboard_panel.

This revision is now accepted and ready to land.Apr 11 2019, 9:54 PM
src/applications/dashboard/query/PhabricatorDashboardPanelQuery.php
105

We SELECT * FROM dashboard_panel AS <this alias> in query construction, so it can be anything, as long as the rest of the query uses the same string.

It's mostly so when we join we can disambiguate between various id, phid, dateCreated, etc., columns.

I was initially adding a JOIN here but didn't need it, but kept the alias change since it's more consistent with other queries.

src/applications/dashboard/query/PhabricatorDashboardPanelQuery.php
105

Ahhh that makes more sense.

src/applications/dashboard/interface/PhabricatorDashboardPanelContainerInterface.php
3

(And, yeah, this one was "we probably only ever have two of these, I hope".)

This revision was automatically updated to reflect the committed changes.