mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
add arc unit data to table of contents in diff view
Summary: title Test Plan: viewed a diff and verified nothing barfed. Reviewers: vrana, epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2026 Differential Revision: https://secure.phabricator.com/D3906
This commit is contained in:
parent
c5e64166da
commit
fabf36a819
1 changed files with 11 additions and 2 deletions
|
@ -83,14 +83,23 @@ final class DifferentialDiffViewController extends DifferentialController {
|
|||
$top_panel = $action_panel;
|
||||
}
|
||||
|
||||
|
||||
$arc_unit = id(new DifferentialDiffProperty())->loadOneWhere(
|
||||
'diffID = %d and name = %s',
|
||||
$this->id,
|
||||
'arc:unit');
|
||||
if ($arc_unit) {
|
||||
$test_data = array($arc_unit->getName() => $arc_unit->getData());
|
||||
} else {
|
||||
$test_data = array();
|
||||
}
|
||||
|
||||
$changesets = $diff->loadChangesets();
|
||||
$changesets = msort($changesets, 'getSortKey');
|
||||
|
||||
$table_of_contents = id(new DifferentialDiffTableOfContentsView())
|
||||
->setChangesets($changesets)
|
||||
->setVisibleChangesets($changesets);
|
||||
->setVisibleChangesets($changesets)
|
||||
->setUnitTestData($test_data);
|
||||
|
||||
$refs = array();
|
||||
foreach ($changesets as $changeset) {
|
||||
|
|
Loading…
Reference in a new issue