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
F14061422: D9280.id22040.diff
Mon, Nov 18, 6:34 AM
F14061421: D9280.id22044.diff
Mon, Nov 18, 6:34 AM
F14061419: D9280.id22045.diff
Mon, Nov 18, 6:34 AM
F14060217: D9280.id22044.diff
Mon, Nov 18, 12:03 AM
F14052800: D9280.id22044.diff
Fri, Nov 15, 10:58 AM
F14047543: D9280.id22044.diff
Thu, Nov 14, 4:23 AM
F14027046: D9280.id.diff
Fri, Nov 8, 4:56 AM
F13987071: D9280.id22044.diff
Mon, Oct 21, 7:18 AM
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
Lint
Lint Skipped
Unit
Tests Skipped

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).