@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+11 -2
+11 -2
src/applications/differential/controller/DifferentialDiffViewController.php
··· 83 83 $top_panel = $action_panel; 84 84 } 85 85 86 - 86 + $arc_unit = id(new DifferentialDiffProperty())->loadOneWhere( 87 + 'diffID = %d and name = %s', 88 + $this->id, 89 + 'arc:unit'); 90 + if ($arc_unit) { 91 + $test_data = array($arc_unit->getName() => $arc_unit->getData()); 92 + } else { 93 + $test_data = array(); 94 + } 87 95 88 96 $changesets = $diff->loadChangesets(); 89 97 $changesets = msort($changesets, 'getSortKey'); 90 98 91 99 $table_of_contents = id(new DifferentialDiffTableOfContentsView()) 92 100 ->setChangesets($changesets) 93 - ->setVisibleChangesets($changesets); 101 + ->setVisibleChangesets($changesets) 102 + ->setUnitTestData($test_data); 94 103 95 104 $refs = array(); 96 105 foreach ($changesets as $changeset) {