1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 09:20:58 +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:
epriestley 2014-04-20 11:51:02 -07:00
parent 2e5065feb5
commit f5cc5c122a
11 changed files with 13 additions and 13 deletions

View file

@ -2540,12 +2540,12 @@ phutil_register_library_map(array(
'ReleephProductEditor' => 'applications/releeph/editor/ReleephProductEditor.php',
'ReleephProductHistoryController' => 'applications/releeph/controller/project/ReleephProductHistoryController.php',
'ReleephProductListController' => 'applications/releeph/controller/project/ReleephProductListController.php',
'ReleephProductQuery' => 'applications/releeph/query/ReleephProductQuery.php',
'ReleephProductSearchEngine' => 'applications/releeph/query/ReleephProductSearchEngine.php',
'ReleephProductTransaction' => 'applications/releeph/storage/ReleephProductTransaction.php',
'ReleephProductTransactionQuery' => 'applications/releeph/query/ReleephProductTransactionQuery.php',
'ReleephProductViewController' => 'applications/releeph/controller/project/ReleephProductViewController.php',
'ReleephProject' => 'applications/releeph/storage/ReleephProject.php',
'ReleephProjectQuery' => 'applications/releeph/query/ReleephProjectQuery.php',
'ReleephReasonFieldSpecification' => 'applications/releeph/field/specification/ReleephReasonFieldSpecification.php',
'ReleephRequest' => 'applications/releeph/storage/ReleephRequest.php',
'ReleephRequestActionController' => 'applications/releeph/controller/request/ReleephRequestActionController.php',
@ -5540,6 +5540,7 @@ phutil_register_library_map(array(
0 => 'ReleephController',
1 => 'PhabricatorApplicationSearchResultsControllerInterface',
),
'ReleephProductQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'ReleephProductSearchEngine' => 'PhabricatorApplicationSearchEngine',
'ReleephProductTransaction' => 'PhabricatorApplicationTransaction',
'ReleephProductTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
@ -5553,7 +5554,6 @@ phutil_register_library_map(array(
0 => 'ReleephDAO',
1 => 'PhabricatorPolicyInterface',
),
'ReleephProjectQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'ReleephReasonFieldSpecification' => 'ReleephFieldSpecification',
'ReleephRequest' =>
array(

View file

@ -24,7 +24,7 @@ final class ConduitAPI_releeph_getbranches_Method
protected function execute(ConduitAPIRequest $request) {
$results = array();
$projects = id(new ReleephProjectQuery())
$projects = id(new ReleephProductQuery())
->setViewer($request->getUser())
->withActive(1)
->execute();

View file

@ -12,7 +12,7 @@ final class ReleephBranchCreateController extends ReleephProductController {
$request = $this->getRequest();
$viewer = $request->getUser();
$product = id(new ReleephProjectQuery())
$product = id(new ReleephProductQuery())
->setViewer($viewer)
->withIDs(array($this->productID))
->requireCapabilities(

View file

@ -14,7 +14,7 @@ final class ReleephProductActionController extends ReleephProductController {
$request = $this->getRequest();
$viewer = $request->getUser();
$product = id(new ReleephProjectQuery())
$product = id(new ReleephProductQuery())
->withIDs(array($this->id))
->requireCapabilities(
array(

View file

@ -12,7 +12,7 @@ final class ReleephProductEditController extends ReleephProductController {
$request = $this->getRequest();
$viewer = $request->getUser();
$product = id(new ReleephProjectQuery())
$product = id(new ReleephProductQuery())
->setViewer($viewer)
->withIDs(array($this->productID))
->needArcanistProjects(true)

View file

@ -16,7 +16,7 @@ final class ReleephProductHistoryController extends ReleephProductController {
$request = $this->getRequest();
$viewer = $request->getUser();
$product = id(new ReleephProjectQuery())
$product = id(new ReleephProductQuery())
->setViewer($viewer)
->withIDs(array($this->id))
->executeOne();

View file

@ -19,7 +19,7 @@ final class ReleephProductViewController extends ReleephProductController
$request = $this->getRequest();
$viewer = $request->getUser();
$product = id(new ReleephProjectQuery())
$product = id(new ReleephProductQuery())
->setViewer($viewer)
->withIDs(array($this->productID))
->executeOne();

View file

@ -20,7 +20,7 @@ final class ReleephPHIDTypeProduct extends PhabricatorPHIDType {
PhabricatorObjectQuery $query,
array $phids) {
return id(new ReleephProjectQuery())
return id(new ReleephProductQuery())
->withPHIDs($phids);
}

View file

@ -56,7 +56,7 @@ final class ReleephBranchQuery
public function willFilterPage(array $branches) {
$project_ids = mpull($branches, 'getReleephProjectID');
$projects = id(new ReleephProjectQuery())
$projects = id(new ReleephProductQuery())
->withIDs($project_ids)
->setViewer($this->getViewer())
->execute();

View file

@ -1,6 +1,6 @@
<?php
final class ReleephProjectQuery
final class ReleephProductQuery
extends PhabricatorCursorPagedPolicyAwareQuery {
private $active;

View file

@ -12,8 +12,8 @@ final class ReleephProductSearchEngine
}
public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) {
$query = id(new ReleephProjectQuery())
->setOrder(ReleephProjectQuery::ORDER_NAME)
$query = id(new ReleephProductQuery())
->setOrder(ReleephProductQuery::ORDER_NAME)
->needArcanistProjects(true);
$active = $saved->getParameter('active');