3 final class DrydockRepositoryOperationStatusController
4 extends DrydockRepositoryOperationController
{
6 public function shouldAllowPublic() {
10 public function handleRequest(AphrontRequest
$request) {
11 $viewer = $request->getViewer();
12 $id = $request->getURIData('id');
14 $operation = id(new DrydockRepositoryOperationQuery())
19 return new Aphront404Response();
22 $id = $operation->getID();
24 $status_view = id(new DrydockRepositoryOperationStatusView())
26 ->setOperation($operation);
28 if ($request->isAjax()) {
30 'markup' => $status_view->renderUnderwayState(),
31 'isUnderway' => $operation->isUnderway(),
34 return id(new AphrontAjaxResponse())
35 ->setContent($payload);
38 $title = pht('Repository Operation %d', $id);
40 $crumbs = $this->buildApplicationCrumbs();
41 $crumbs->addTextCrumb(
43 $this->getApplicationURI('operation/'));
44 $crumbs->addTextCrumb($title);
46 return $this->newPage()
47 ->setTitle(pht('Status'))
49 ->appendChild($status_view);