mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Rename ReleephProjectQuery to ReleephProductQuery
Summary: Ref T3549. Test Plan: grep/lint Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T3549 Differential Revision: https://secure.phabricator.com/D8815
This commit is contained in:
parent
2e5065feb5
commit
f5cc5c122a
11 changed files with 13 additions and 13 deletions
|
@ -2540,12 +2540,12 @@ phutil_register_library_map(array(
|
||||||
'ReleephProductEditor' => 'applications/releeph/editor/ReleephProductEditor.php',
|
'ReleephProductEditor' => 'applications/releeph/editor/ReleephProductEditor.php',
|
||||||
'ReleephProductHistoryController' => 'applications/releeph/controller/project/ReleephProductHistoryController.php',
|
'ReleephProductHistoryController' => 'applications/releeph/controller/project/ReleephProductHistoryController.php',
|
||||||
'ReleephProductListController' => 'applications/releeph/controller/project/ReleephProductListController.php',
|
'ReleephProductListController' => 'applications/releeph/controller/project/ReleephProductListController.php',
|
||||||
|
'ReleephProductQuery' => 'applications/releeph/query/ReleephProductQuery.php',
|
||||||
'ReleephProductSearchEngine' => 'applications/releeph/query/ReleephProductSearchEngine.php',
|
'ReleephProductSearchEngine' => 'applications/releeph/query/ReleephProductSearchEngine.php',
|
||||||
'ReleephProductTransaction' => 'applications/releeph/storage/ReleephProductTransaction.php',
|
'ReleephProductTransaction' => 'applications/releeph/storage/ReleephProductTransaction.php',
|
||||||
'ReleephProductTransactionQuery' => 'applications/releeph/query/ReleephProductTransactionQuery.php',
|
'ReleephProductTransactionQuery' => 'applications/releeph/query/ReleephProductTransactionQuery.php',
|
||||||
'ReleephProductViewController' => 'applications/releeph/controller/project/ReleephProductViewController.php',
|
'ReleephProductViewController' => 'applications/releeph/controller/project/ReleephProductViewController.php',
|
||||||
'ReleephProject' => 'applications/releeph/storage/ReleephProject.php',
|
'ReleephProject' => 'applications/releeph/storage/ReleephProject.php',
|
||||||
'ReleephProjectQuery' => 'applications/releeph/query/ReleephProjectQuery.php',
|
|
||||||
'ReleephReasonFieldSpecification' => 'applications/releeph/field/specification/ReleephReasonFieldSpecification.php',
|
'ReleephReasonFieldSpecification' => 'applications/releeph/field/specification/ReleephReasonFieldSpecification.php',
|
||||||
'ReleephRequest' => 'applications/releeph/storage/ReleephRequest.php',
|
'ReleephRequest' => 'applications/releeph/storage/ReleephRequest.php',
|
||||||
'ReleephRequestActionController' => 'applications/releeph/controller/request/ReleephRequestActionController.php',
|
'ReleephRequestActionController' => 'applications/releeph/controller/request/ReleephRequestActionController.php',
|
||||||
|
@ -5540,6 +5540,7 @@ phutil_register_library_map(array(
|
||||||
0 => 'ReleephController',
|
0 => 'ReleephController',
|
||||||
1 => 'PhabricatorApplicationSearchResultsControllerInterface',
|
1 => 'PhabricatorApplicationSearchResultsControllerInterface',
|
||||||
),
|
),
|
||||||
|
'ReleephProductQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
|
||||||
'ReleephProductSearchEngine' => 'PhabricatorApplicationSearchEngine',
|
'ReleephProductSearchEngine' => 'PhabricatorApplicationSearchEngine',
|
||||||
'ReleephProductTransaction' => 'PhabricatorApplicationTransaction',
|
'ReleephProductTransaction' => 'PhabricatorApplicationTransaction',
|
||||||
'ReleephProductTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
|
'ReleephProductTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
|
||||||
|
@ -5553,7 +5554,6 @@ phutil_register_library_map(array(
|
||||||
0 => 'ReleephDAO',
|
0 => 'ReleephDAO',
|
||||||
1 => 'PhabricatorPolicyInterface',
|
1 => 'PhabricatorPolicyInterface',
|
||||||
),
|
),
|
||||||
'ReleephProjectQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
|
|
||||||
'ReleephReasonFieldSpecification' => 'ReleephFieldSpecification',
|
'ReleephReasonFieldSpecification' => 'ReleephFieldSpecification',
|
||||||
'ReleephRequest' =>
|
'ReleephRequest' =>
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -24,7 +24,7 @@ final class ConduitAPI_releeph_getbranches_Method
|
||||||
protected function execute(ConduitAPIRequest $request) {
|
protected function execute(ConduitAPIRequest $request) {
|
||||||
$results = array();
|
$results = array();
|
||||||
|
|
||||||
$projects = id(new ReleephProjectQuery())
|
$projects = id(new ReleephProductQuery())
|
||||||
->setViewer($request->getUser())
|
->setViewer($request->getUser())
|
||||||
->withActive(1)
|
->withActive(1)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
|
@ -12,7 +12,7 @@ final class ReleephBranchCreateController extends ReleephProductController {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
$product = id(new ReleephProjectQuery())
|
$product = id(new ReleephProductQuery())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withIDs(array($this->productID))
|
->withIDs(array($this->productID))
|
||||||
->requireCapabilities(
|
->requireCapabilities(
|
||||||
|
|
|
@ -14,7 +14,7 @@ final class ReleephProductActionController extends ReleephProductController {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
$product = id(new ReleephProjectQuery())
|
$product = id(new ReleephProductQuery())
|
||||||
->withIDs(array($this->id))
|
->withIDs(array($this->id))
|
||||||
->requireCapabilities(
|
->requireCapabilities(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -12,7 +12,7 @@ final class ReleephProductEditController extends ReleephProductController {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
$product = id(new ReleephProjectQuery())
|
$product = id(new ReleephProductQuery())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withIDs(array($this->productID))
|
->withIDs(array($this->productID))
|
||||||
->needArcanistProjects(true)
|
->needArcanistProjects(true)
|
||||||
|
|
|
@ -16,7 +16,7 @@ final class ReleephProductHistoryController extends ReleephProductController {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
$product = id(new ReleephProjectQuery())
|
$product = id(new ReleephProductQuery())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withIDs(array($this->id))
|
->withIDs(array($this->id))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
|
|
|
@ -19,7 +19,7 @@ final class ReleephProductViewController extends ReleephProductController
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
$product = id(new ReleephProjectQuery())
|
$product = id(new ReleephProductQuery())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withIDs(array($this->productID))
|
->withIDs(array($this->productID))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
|
|
|
@ -20,7 +20,7 @@ final class ReleephPHIDTypeProduct extends PhabricatorPHIDType {
|
||||||
PhabricatorObjectQuery $query,
|
PhabricatorObjectQuery $query,
|
||||||
array $phids) {
|
array $phids) {
|
||||||
|
|
||||||
return id(new ReleephProjectQuery())
|
return id(new ReleephProductQuery())
|
||||||
->withPHIDs($phids);
|
->withPHIDs($phids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ final class ReleephBranchQuery
|
||||||
public function willFilterPage(array $branches) {
|
public function willFilterPage(array $branches) {
|
||||||
$project_ids = mpull($branches, 'getReleephProjectID');
|
$project_ids = mpull($branches, 'getReleephProjectID');
|
||||||
|
|
||||||
$projects = id(new ReleephProjectQuery())
|
$projects = id(new ReleephProductQuery())
|
||||||
->withIDs($project_ids)
|
->withIDs($project_ids)
|
||||||
->setViewer($this->getViewer())
|
->setViewer($this->getViewer())
|
||||||
->execute();
|
->execute();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class ReleephProjectQuery
|
final class ReleephProductQuery
|
||||||
extends PhabricatorCursorPagedPolicyAwareQuery {
|
extends PhabricatorCursorPagedPolicyAwareQuery {
|
||||||
|
|
||||||
private $active;
|
private $active;
|
|
@ -12,8 +12,8 @@ final class ReleephProductSearchEngine
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) {
|
public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) {
|
||||||
$query = id(new ReleephProjectQuery())
|
$query = id(new ReleephProductQuery())
|
||||||
->setOrder(ReleephProjectQuery::ORDER_NAME)
|
->setOrder(ReleephProductQuery::ORDER_NAME)
|
||||||
->needArcanistProjects(true);
|
->needArcanistProjects(true);
|
||||||
|
|
||||||
$active = $saved->getParameter('active');
|
$active = $saved->getParameter('active');
|
||||||
|
|
Loading…
Reference in a new issue