Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14395352
D17140.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17140.diff
View Options
diff --git a/src/applications/differential/customfield/DifferentialUnitField.php b/src/applications/differential/customfield/DifferentialUnitField.php
--- a/src/applications/differential/customfield/DifferentialUnitField.php
+++ b/src/applications/differential/customfield/DifferentialUnitField.php
@@ -32,9 +32,31 @@
}
public function getWarningsForDetailView() {
- $status = $this->getObject()->getActiveDiff()->getUnitStatus();
-
$warnings = array();
+
+ $viewer = $this->getViewer();
+ $diff = $this->getObject()->getActiveDiff();
+
+ $buildable = id(new HarbormasterBuildableQuery())
+ ->setViewer($viewer)
+ ->withBuildablePHIDs(array($diff->getPHID()))
+ ->withManualBuildables(false)
+ ->executeOne();
+ if ($buildable) {
+ switch ($buildable->getBuildableStatus()) {
+ case HarbormasterBuildable::STATUS_BUILDING:
+ $warnings[] = pht(
+ 'These changes have not finished building yet and may have build '.
+ 'failures.');
+ break;
+ case HarbormasterBuildable::STATUS_FAILED:
+ $warnings[] = pht(
+ 'These changes have failed to build.');
+ break;
+ }
+ }
+
+ $status = $this->getObject()->getActiveDiff()->getUnitStatus();
if ($status < DifferentialUnitStatus::UNIT_WARN) {
// Don't show any warnings.
} else if ($status == DifferentialUnitStatus::UNIT_AUTO_SKIP) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 4:13 AM (13 h, 53 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6920564
Default Alt Text
D17140.diff (1 KB)
Attached To
Mode
D17140: Show an info view warning for ongoing or failed builds in Differential
Attached
Detach File
Event Timeline
Log In to Comment