Differential D21481 Diff 51128 src/applications/differential/controller/DifferentialRevisionViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialRevisionViewController.php
Show First 20 Lines • Show All 504 Lines • ▼ Show 20 Lines | $tab_group->addTab( | ||||
->appendChild($local_table)); | ->appendChild($local_table)); | ||||
$stack_graph = id(new DifferentialRevisionGraph()) | $stack_graph = id(new DifferentialRevisionGraph()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setSeedPHID($revision->getPHID()) | ->setSeedPHID($revision->getPHID()) | ||||
->setLoadEntireGraph(true) | ->setLoadEntireGraph(true) | ||||
->loadGraph(); | ->loadGraph(); | ||||
if (!$stack_graph->isEmpty()) { | if (!$stack_graph->isEmpty()) { | ||||
// See PHI1900. The graph UI element now tries to figure out the correct | |||||
// height automatically, but currently can't in this case because the | |||||
// element is not visible when the page loads. Set an explicit height. | |||||
$stack_graph->setHeight(34); | |||||
$stack_table = $stack_graph->newGraphTable(); | $stack_table = $stack_graph->newGraphTable(); | ||||
$parent_type = DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST; | $parent_type = DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST; | ||||
$reachable = $stack_graph->getReachableObjects($parent_type); | $reachable = $stack_graph->getReachableObjects($parent_type); | ||||
foreach ($reachable as $key => $reachable_revision) { | foreach ($reachable as $key => $reachable_revision) { | ||||
if ($reachable_revision->isClosed()) { | if ($reachable_revision->isClosed()) { | ||||
unset($reachable[$key]); | unset($reachable[$key]); | ||||
▲ Show 20 Lines • Show All 933 Lines • Show Last 20 Lines |