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
Unknown Object (File)
Thu, Aug 29, 3:19 AM
Unknown Object (File)
Wed, Aug 28, 10:02 PM
Unknown Object (File)
Sun, Aug 25, 9:14 AM
Unknown Object (File)
Fri, Aug 23, 4:36 PM
Unknown Object (File)
Sun, Aug 11, 3:44 PM
Unknown Object (File)
Aug 7 2024, 11:13 PM
Unknown Object (File)
Aug 7 2024, 11:44 AM
Unknown Object (File)
Jul 29 2024, 8:52 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
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).