| @@ 620-629 (lines=10) @@ | ||
| 617 | * A list of past deployments. |
|
| 618 | * @return ArrayList |
|
| 619 | */ |
|
| 620 | public function DeployHistory() { |
|
| 621 | return $this->Deployments() |
|
| 622 | ->where('"SHA" IS NOT NULL') |
|
| 623 | ->filter('State', [ |
|
| 624 | DNDeployment::STATE_COMPLETED, |
|
| 625 | DNDeployment::STATE_FAILED, |
|
| 626 | DNDeployment::STATE_INVALID |
|
| 627 | ]) |
|
| 628 | ->sort('LastEdited DESC'); |
|
| 629 | } |
|
| 630 | ||
| 631 | /** |
|
| 632 | * A list of upcoming or current deployments. |
|
| @@ 635-644 (lines=10) @@ | ||
| 632 | * A list of upcoming or current deployments. |
|
| 633 | * @return ArrayList |
|
| 634 | */ |
|
| 635 | public function UpcomingDeployments() { |
|
| 636 | return $this->Deployments() |
|
| 637 | ->where('"SHA" IS NOT NULL') |
|
| 638 | ->filter('State', [ |
|
| 639 | DNDeployment::STATE_NEW, |
|
| 640 | DNDeployment::STATE_SUBMITTED, |
|
| 641 | DNDeployment::STATE_ABORTING |
|
| 642 | ]) |
|
| 643 | ->sort('LastEdited DESC'); |
|
| 644 | } |
|
| 645 | ||
| 646 | /** |
|
| 647 | * @param string $sha |
|