Differential D20179 Diff 48188 src/applications/harbormaster/controller/HarbormasterBuildableViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterBuildableViewController.php
Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | private function renderLintAndUnit( | ||||
} | } | ||||
$target_phids = mpull($targets, 'getPHID'); | $target_phids = mpull($targets, 'getPHID'); | ||||
$lint_data = id(new HarbormasterBuildLintMessage())->loadAllWhere( | $lint_data = id(new HarbormasterBuildLintMessage())->loadAllWhere( | ||||
'buildTargetPHID IN (%Ls)', | 'buildTargetPHID IN (%Ls)', | ||||
$target_phids); | $target_phids); | ||||
$unit_data = id(new HarbormasterBuildUnitMessage())->loadAllWhere( | $unit_data = id(new HarbormasterBuildUnitMessageQuery()) | ||||
'buildTargetPHID IN (%Ls)', | ->setViewer($viewer) | ||||
$target_phids); | ->withBuildTargetPHIDs($target_phids) | ||||
->execute(); | |||||
if ($lint_data) { | if ($lint_data) { | ||||
$lint_table = id(new HarbormasterLintPropertyView()) | $lint_table = id(new HarbormasterLintPropertyView()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setLimit(10) | ->setLimit(10) | ||||
->setLintMessages($lint_data); | ->setLintMessages($lint_data); | ||||
$lint_href = $this->getApplicationURI('lint/'.$buildable->getID().'/'); | $lint_href = $this->getApplicationURI('lint/'.$buildable->getID().'/'); | ||||
Show All 33 Lines |