Page MenuHomePhabricator

Add authorPHID to Dashboard Panels
ClosedPublic

Authored by chad on Dec 13 2016, 2:59 AM.
Tags
None
Referenced Files
F14715315: D17036.id40982.diff
Fri, Jan 17, 5:58 PM
F14712560: D17036.id40986.diff
Fri, Jan 17, 3:52 PM
Unknown Object (File)
Wed, Jan 15, 2:58 PM
Unknown Object (File)
Tue, Jan 14, 8:36 PM
Unknown Object (File)
Sat, Jan 4, 9:46 PM
Unknown Object (File)
Tue, Dec 31, 9:00 PM
Unknown Object (File)
Tue, Dec 24, 4:47 PM
Unknown Object (File)
Dec 17 2024, 9:05 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.