Page MenuHomePhabricator

Add authorPHID to Dashboard Panels
ClosedPublic

Authored by chad on Dec 13 2016, 2:59 AM.
Tags
None
Referenced Files
F13166624: D17036.diff
Tue, May 7, 6:17 AM
Unknown Object (File)
Fri, May 3, 3:58 AM
Unknown Object (File)
Mon, Apr 29, 4:08 PM
Unknown Object (File)
Wed, Apr 24, 11:55 PM
Unknown Object (File)
Fri, Apr 19, 5:51 PM
Unknown Object (File)
Tue, Apr 16, 10:38 PM
Unknown Object (File)
Fri, Apr 12, 10:22 PM
Unknown Object (File)
Fri, Apr 12, 6:52 PM
Subscribers

Details

Summary

Adds authorPHID to panels so we can default to the panels you made.

Test Plan

Run upgrade, visit manage panels, see my panels. Create a new panel. Edit a panel.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Add authorPHID to Dashboard Panels.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Dec 13 2016, 11:49 AM
epriestley edited edge metadata.

Oh, actually, I think there's a missing workflow. Does this work?

  • Edit someone else's dashboard.
  • Choose "make a copy".
  • You should become the author of all the copied panels, but I think you won't.
src/applications/dashboard/storage/PhabricatorDashboardPanel.php
38–41

Oh, this probably needs to take a user and reset the authorPHID.

This revision now requires changes to proceed.Dec 13 2016, 12:12 PM
chad edited edge metadata.
  • pass user in when copying panel
  • fix query variable for searching dashboards
chad edited edge metadata.
  • fix var name
src/applications/dashboard/storage/PhabricatorDashboardPanel.php
41

Should be $user->getPHID()?

epriestley edited edge metadata.
This revision is now accepted and ready to land.Dec 13 2016, 6:06 PM
This revision was automatically updated to reflect the committed changes.