Page MenuHomePhabricator

Add authorPHID to Dashboard Panels
ClosedPublic

Authored by chad on Dec 13 2016, 2:59 AM.
Tags
None
Referenced Files
F14013719: D17036.id.diff
Sat, Nov 2, 10:54 AM
F14013718: D17036.id40982.diff
Sat, Nov 2, 10:54 AM
F14013717: D17036.id40987.diff
Sat, Nov 2, 10:54 AM
F14013716: D17036.id40986.diff
Sat, Nov 2, 10:53 AM
F14013715: D17036.id40990.diff
Sat, Nov 2, 10:53 AM
F14013714: D17036.id40981.diff
Sat, Nov 2, 10:53 AM
F14013713: D17036.id40988.diff
Sat, Nov 2, 10:53 AM
F14010668: D17036.diff
Thu, Oct 31, 11:34 AM
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.