Add a basic web UI for intracluster sync logs
Summary: Depends on D19798. Ref T13216. This puts at least a basic UI on top of sync logs.
Test Plan:
Viewed logs from the web UI and exported data. Note that these syncs are somewhat simulated since I my local cluster is somewhat-faked (i.e., not actually multiple machines).
{F5995899}
Reviewers: amckinley
Reviewed By: amckinley
Maniphest Tasks: T13216
Differential Revision: https://secure.phabricator.com/D19799
This commit is contained in:
@@ -370,8 +370,17 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
$action_view->addAction(
|
||||
id(new PhabricatorActionView())
|
||||
->setName(pht('View Push Logs'))
|
||||
->setIcon('fa-list-alt')
|
||||
->setIcon('fa-upload')
|
||||
->setHref($push_uri));
|
||||
|
||||
$pull_uri = $this->getApplicationURI(
|
||||
'synclog/?repositories='.$repository->getPHID());
|
||||
|
||||
$action_view->addAction(
|
||||
id(new PhabricatorActionView())
|
||||
->setName(pht('View Sync Logs'))
|
||||
->setIcon('fa-exchange')
|
||||
->setHref($pull_uri));
|
||||
}
|
||||
|
||||
$pull_uri = $this->getApplicationURI(
|
||||
@@ -380,7 +389,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
$action_view->addAction(
|
||||
id(new PhabricatorActionView())
|
||||
->setName(pht('View Pull Logs'))
|
||||
->setIcon('fa-list-alt')
|
||||
->setIcon('fa-download')
|
||||
->setHref($pull_uri));
|
||||
|
||||
return $action_view;
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
final class DiffusionSyncLogListController
|
||||
extends DiffusionLogController {
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
return id(new DiffusionSyncLogSearchEngine())
|
||||
->setController($this)
|
||||
->buildResponse();
|
||||
}
|
||||
|
||||
protected function buildApplicationCrumbs() {
|
||||
return parent::buildApplicationCrumbs()
|
||||
->addTextCrumb(pht('Sync Logs'), $this->getApplicationURI('synclog/'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user