Page MenuHomePhabricator

Move Dashboard and Panel edit history out of the way
ClosedPublic

Authored by lpriestley on May 24 2014, 4:18 PM.
Tags
None
Referenced Files
F14027046: D9280.id.diff
Fri, Nov 8, 4:56 AM
F13987071: D9280.id22044.diff
Mon, Oct 21, 7:18 AM
F13986361: D9280.id22040.diff
Mon, Oct 21, 2:20 AM
F13981659: D9280.diff
Sat, Oct 19, 6:14 PM
F13980503: D9280.id22044.diff
Sat, Oct 19, 11:07 AM
F13977925: D9280.id22044.diff
Fri, Oct 18, 8:38 PM
F13977890: D9280.id22045.diff
Fri, Oct 18, 8:30 PM
F13977709: D9280.id22040.diff
Fri, Oct 18, 7:41 PM
Subscribers

Details

Summary

Fixes T5170, Create new page for dashboard history

Test Plan

Open dashboard, manage dashboard, click on "View History". Dashboard history should appear. Panel history should appear on panel view page under panel.

Diff Detail

Repository
rP Phabricator
Branch
dashboardhistorypage
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 690
Build 690: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

lpriestley retitled this revision from to Move Dashboard and Panel edit history out of the way.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
epriestley edited edge metadata.

Couple of minor tweaks, looks great otherwise.

I particularly enjoy the delicate sophistication added to the timelines by the addition of the end caps. They really bring the page together.

src/applications/dashboard/controller/PhabricatorDashboardHistoryController.php
23

We don't need panels in this controller, right?

Removing this (so we don't load data we don't need) will make the page load a little faster.

61–62

(This is my fault from earlier, but we don't actually use this, and can just remove these lines.)

src/applications/dashboard/controller/PhabricatorDashboardManageController.php
117–118

I think you can just remove these, users don't need edit permission to view history.

This revision now requires changes to proceed.May 24 2014, 4:21 PM
src/applications/dashboard/controller/PhabricatorDashboardHistoryController.php
61–62

Can you clarify why this isn't needed?

lpriestley edited edge metadata.

Addressing code review

src/applications/dashboard/controller/PhabricatorDashboardHistoryController.php
61–62

The variable $engine is never used, so constructing this object has no effect.

Older versions of the rendering code required you to construct an engine and pass it to the TransactionView. However, at some point it became clear that almost all of these engines were just boilerplate, so we removed the requirement. If you don't pass an engine in, TransactionView will just make on on its own.

When I wrote the original Dashboard controller, I presumably copy/pasted this chunk of code from some older code which still builds an engine. I think I removed the unnecessary setEngine($engine) call but neglected to remove the construction of the $engine variable.

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 24 2014, 7:29 PM
epriestley updated this revision to Diff 22045.

Closed by commit rP7de4e80907c7 (authored by @lpriestley, committed by @epriestley).