Page MenuHomePhabricator

D13686.diff
No OneTemporary

D13686.diff

diff --git a/src/applications/drydock/controller/DrydockBlueprintViewController.php b/src/applications/drydock/controller/DrydockBlueprintViewController.php
--- a/src/applications/drydock/controller/DrydockBlueprintViewController.php
+++ b/src/applications/drydock/controller/DrydockBlueprintViewController.php
@@ -29,6 +29,12 @@
$resources = id(new DrydockResourceQuery())
->withBlueprintPHIDs(array($blueprint->getPHID()))
+ ->withStatuses(array(
+ DrydockResourceStatus::STATUS_ALLOCATING,
+ DrydockResourceStatus::STATUS_PENDING,
+ DrydockResourceStatus::STATUS_OPEN,
+ DrydockResourceStatus::STATUS_CLOSING,
+ ))
->setViewer($viewer)
->execute();
diff --git a/src/applications/drydock/controller/DrydockResourceViewController.php b/src/applications/drydock/controller/DrydockResourceViewController.php
--- a/src/applications/drydock/controller/DrydockResourceViewController.php
+++ b/src/applications/drydock/controller/DrydockResourceViewController.php
@@ -28,6 +28,11 @@
$leases = id(new DrydockLeaseQuery())
->setViewer($viewer)
->withResourceIDs(array($resource->getID()))
+ ->withStatuses(array(
+ DrydockLeaseStatus::STATUS_ACQUIRING,
+ DrydockLeaseStatus::STATUS_ACTIVE,
+ DrydockLeaseStatus::STATUS_PENDING,
+ ))
->execute();
$lease_list = id(new DrydockLeaseListView())

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 2:59 AM (2 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6999971
Default Alt Text
D13686.diff (1 KB)

Event Timeline