Page MenuHomePhabricator

Add authorPHID to Dashboard Panels
ClosedPublic

Authored by chad on Dec 13 2016, 2:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 26, 9:07 AM
Unknown Object (File)
Fri, Jan 24, 6:29 PM
Unknown Object (File)
Fri, Jan 24, 6:29 PM
Unknown Object (File)
Fri, Jan 24, 6:29 PM
Unknown Object (File)
Fri, Jan 24, 6:29 PM
Unknown Object (File)
Fri, Jan 24, 6:29 PM
Unknown Object (File)
Thu, Jan 23, 8:28 AM
Unknown Object (File)
Wed, Jan 22, 12:58 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
Branch
panel-author (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 14875
Build 19476: Run Core Tests
Build 19475: arc lint + arc unit

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.