mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 19:52:44 +01:00
5a2213ef82
Summary: Depends on D19150. Ref T13088. Allow clients to retrieve information about build logs, including log data, over the API. (To fetch log data, take the `filePHID` to `file.search`, then issue a normal GET against the URI. Use a `Content-Range` header to get part of the log.) Test Plan: Ran `harbormaster.log.search`, got sensible-looking results. Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13088 Differential Revision: https://secure.phabricator.com/D19151
18 lines
388 B
PHP
18 lines
388 B
PHP
<?php
|
|
|
|
final class HarbormasterBuildLogSearchConduitAPIMethod
|
|
extends PhabricatorSearchEngineAPIMethod {
|
|
|
|
public function getAPIMethodName() {
|
|
return 'harbormaster.log.search';
|
|
}
|
|
|
|
public function newSearchEngine() {
|
|
return new HarbormasterBuildLogSearchEngine();
|
|
}
|
|
|
|
public function getMethodSummary() {
|
|
return pht('Find out information about build logs.');
|
|
}
|
|
|
|
}
|