1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-10 23:01:04 +01:00

Provide a default "loadPage()" implementation on "CursorPagedPolicyAwareQuery"

Summary: Ref T13682. Many subclasses of "CursorPagedPolicyAwareQuery" have the same implementation of "loadPage()", and this is a sensible default behavior.

Test Plan: Examined changes to verify that all removed methods have the same behavior.

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13682

Differential Revision: https://secure.phabricator.com/D21838
This commit is contained in:
epriestley 2022-05-24 10:03:23 -07:00
parent 5493f028dc
commit 8e703c8c35
112 changed files with 20 additions and 442 deletions

View file

@ -44,10 +44,6 @@ final class AlmanacBindingQuery
return new AlmanacBinding(); return new AlmanacBinding();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $bindings) { protected function willFilterPage(array $bindings) {
$service_phids = mpull($bindings, 'getServicePHID'); $service_phids = mpull($bindings, 'getServicePHID');
$device_phids = mpull($bindings, 'getDevicePHID'); $device_phids = mpull($bindings, 'getDevicePHID');

View file

@ -56,10 +56,6 @@ final class AlmanacDeviceQuery
return new AlmanacDevice(); return new AlmanacDevice();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class AlmanacInterfaceQuery
return new AlmanacInterface(); return new AlmanacInterface();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $interfaces) { protected function willFilterPage(array $interfaces) {
$network_phids = mpull($interfaces, 'getNetworkPHID'); $network_phids = mpull($interfaces, 'getNetworkPHID');
$device_phids = mpull($interfaces, 'getDevicePHID'); $device_phids = mpull($interfaces, 'getDevicePHID');

View file

@ -32,10 +32,6 @@ final class AlmanacNamespaceQuery
return new AlmanacNamespace(); return new AlmanacNamespace();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class AlmanacNetworkQuery
$ngrams); $ngrams);
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -33,10 +33,6 @@ final class AlmanacPropertyQuery
return new AlmanacProperty(); return new AlmanacProperty();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $properties) { protected function willFilterPage(array $properties) {
$object_phids = mpull($properties, 'getObjectPHID'); $object_phids = mpull($properties, 'getObjectPHID');

View file

@ -69,10 +69,6 @@ final class AlmanacServiceQuery
return new AlmanacService(); return new AlmanacService();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) { protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) {
$joins = parent::buildJoinClauseParts($conn); $joins = parent::buildJoinClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class PhabricatorAuthChallengeQuery
return new PhabricatorAuthChallenge(); return new PhabricatorAuthChallenge();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -44,10 +44,6 @@ final class PhabricatorAuthContactNumberQuery
return new PhabricatorAuthContactNumber(); return new PhabricatorAuthContactNumber();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorAuthFactorConfigQuery
return new PhabricatorAuthFactorConfig(); return new PhabricatorAuthFactorConfig();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorAuthFactorProviderQuery
return new PhabricatorAuthFactorProvider(); return new PhabricatorAuthFactorProvider();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorAuthMessageQuery
return new PhabricatorAuthMessage(); return new PhabricatorAuthMessage();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorAuthPasswordQuery
return new PhabricatorAuthPassword(); return new PhabricatorAuthPassword();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorAuthProviderConfigQuery
return new PhabricatorAuthProviderConfig(); return new PhabricatorAuthProviderConfig();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -47,10 +47,6 @@ final class PhabricatorAuthSSHKeyQuery
return new PhabricatorAuthSSHKey(); return new PhabricatorAuthSSHKey();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $keys) { protected function willFilterPage(array $keys) {
$object_phids = mpull($keys, 'getObjectPHID'); $object_phids = mpull($keys, 'getObjectPHID');

View file

@ -38,10 +38,6 @@ final class PhabricatorAuthSessionQuery
return new PhabricatorAuthSession(); return new PhabricatorAuthSession();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $sessions) { protected function willFilterPage(array $sessions) {
$identity_phids = mpull($sessions, 'getUserPHID'); $identity_phids = mpull($sessions, 'getUserPHID');

View file

@ -44,10 +44,6 @@ final class PhabricatorAuthTemporaryTokenQuery
return new PhabricatorAuthTemporaryToken(); return new PhabricatorAuthTemporaryToken();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorExternalAccountIdentifierQuery
return new PhabricatorExternalAccountIdentifier(); return new PhabricatorExternalAccountIdentifier();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -66,10 +66,6 @@ final class PhabricatorExternalAccountQuery
return new PhabricatorExternalAccount(); return new PhabricatorExternalAccount();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $accounts) { protected function willFilterPage(array $accounts) {
$viewer = $this->getViewer(); $viewer = $this->getViewer();

View file

@ -57,10 +57,6 @@ final class PhabricatorBadgesAwardQuery
return (bool)$this->badgeStatuses; return (bool)$this->badgeStatuses;
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() { public function newResultObject() {
return new PhabricatorBadgesAward(); return new PhabricatorBadgesAward();
} }

View file

@ -34,10 +34,6 @@ final class PhabricatorBadgesQuery
$ngrams); $ngrams);
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function getPrimaryTableAlias() { protected function getPrimaryTableAlias() {
return 'badges'; return 'badges';
} }

View file

@ -38,10 +38,6 @@ final class PhabricatorCalendarExportQuery
return new PhabricatorCalendarExport(); return new PhabricatorCalendarExport();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorCalendarExternalInviteeQuery
return new PhabricatorCalendarExternalInvitee(); return new PhabricatorCalendarExternalInvitee();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorCalendarImportLogQuery
return new PhabricatorCalendarImportLog(); return new PhabricatorCalendarImportLog();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorCalendarImportQuery
return new PhabricatorCalendarImport(); return new PhabricatorCalendarImport();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class PhabricatorConduitLogQuery
return new PhabricatorConduitMethodCallLog(); return new PhabricatorConduitMethodCallLog();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhabricatorConduitTokenQuery
return new PhabricatorConduitToken(); return new PhabricatorConduitToken();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -28,10 +28,6 @@ final class PhabricatorCountdownQuery
return $this; return $this;
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() { public function newResultObject() {
return new PhabricatorCountdown(); return new PhabricatorCountdown();
} }

View file

@ -34,10 +34,6 @@ final class PhabricatorDashboardPanelQuery
return $this; return $this;
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() { public function newResultObject() {
// TODO: If we don't do this, SearchEngine explodes when trying to // TODO: If we don't do this, SearchEngine explodes when trying to
// enumerate custom fields. For now, just give the panel a default panel // enumerate custom fields. For now, just give the panel a default panel

View file

@ -26,10 +26,6 @@ final class PhabricatorDashboardPortalQuery
return new PhabricatorDashboardPortal(); return new PhabricatorDashboardPortal();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -34,10 +34,6 @@ final class PhabricatorDashboardQuery
return $this; return $this;
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() { public function newResultObject() {
return new PhabricatorDashboard(); return new PhabricatorDashboard();
} }

View file

@ -58,10 +58,6 @@ final class DifferentialChangesetQuery
return new DifferentialChangeset(); return new DifferentialChangeset();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $changesets) { protected function willFilterPage(array $changesets) {
// First, attach all the diffs we already have. We can just do this // First, attach all the diffs we already have. We can just do this
// directly without worrying about querying for them. When we don't have // directly without worrying about querying for them. When we don't have

View file

@ -57,10 +57,6 @@ final class DifferentialDiffQuery
return new DifferentialDiff(); return new DifferentialDiff();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $diffs) { protected function willFilterPage(array $diffs) {
$revision_ids = array_filter(mpull($diffs, 'getRevisionID')); $revision_ids = array_filter(mpull($diffs, 'getRevisionID'));

View file

@ -34,10 +34,6 @@ final class DifferentialHunkQuery
return new DifferentialHunk(); return new DifferentialHunk();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $hunks) { protected function willFilterPage(array $hunks) {
$changesets = mpull($this->changesets, null, 'getID'); $changesets = mpull($this->changesets, null, 'getID');
foreach ($hunks as $key => $hunk) { foreach ($hunks as $key => $hunk) {

View file

@ -26,10 +26,6 @@ final class DifferentialViewStateQuery
return new DifferentialViewState(); return new DifferentialViewState();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -56,10 +56,6 @@ final class DiffusionCommitHintQuery
$this->commitMap = array(); $this->commitMap = array();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -20,10 +20,6 @@ final class DoorkeeperExternalObjectQuery
return new DoorkeeperExternalObject(); return new DoorkeeperExternalObject();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -72,10 +72,6 @@ final class DrydockAuthorizationQuery extends DrydockQuery {
return new DrydockAuthorization(); return new DrydockAuthorization();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $authorizations) { protected function willFilterPage(array $authorizations) {
$blueprint_phids = mpull($authorizations, 'getBlueprintPHID'); $blueprint_phids = mpull($authorizations, 'getBlueprintPHID');
if ($blueprint_phids) { if ($blueprint_phids) {

View file

@ -95,10 +95,6 @@ final class DrydockBlueprintQuery extends DrydockQuery {
return 'blueprint'; return 'blueprint';
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willExecute() { protected function willExecute() {
if ($this->identifiers) { if ($this->identifiers) {
$this->identifierMap = array(); $this->identifierMap = array();

View file

@ -25,10 +25,6 @@ final class DrydockCommandQuery extends DrydockQuery {
return new DrydockCommand(); return new DrydockCommand();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $commands) { protected function willFilterPage(array $commands) {
$target_phids = mpull($commands, 'getTargetPHID'); $target_phids = mpull($commands, 'getTargetPHID');

View file

@ -57,10 +57,6 @@ final class DrydockLeaseQuery extends DrydockQuery {
return new DrydockLease(); return new DrydockLease();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $leases) { protected function willFilterPage(array $leases) {
$resource_phids = array_filter(mpull($leases, 'getResourcePHID')); $resource_phids = array_filter(mpull($leases, 'getResourcePHID'));
if ($resource_phids) { if ($resource_phids) {

View file

@ -37,10 +37,6 @@ final class DrydockLogQuery extends DrydockQuery {
return new DrydockLog(); return new DrydockLog();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function didFilterPage(array $logs) { protected function didFilterPage(array $logs) {
$blueprint_phids = array_filter(mpull($logs, 'getBlueprintPHID')); $blueprint_phids = array_filter(mpull($logs, 'getBlueprintPHID'));
if ($blueprint_phids) { if ($blueprint_phids) {

View file

@ -55,10 +55,6 @@ final class DrydockRepositoryOperationQuery extends DrydockQuery {
return new DrydockRepositoryOperation(); return new DrydockRepositoryOperation();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $operations) { protected function willFilterPage(array $operations) {
$implementations = DrydockRepositoryOperationType::getAllOperationTypes(); $implementations = DrydockRepositoryOperationType::getAllOperationTypes();

View file

@ -49,10 +49,6 @@ final class DrydockResourceQuery extends DrydockQuery {
return new DrydockResource(); return new DrydockResource();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $resources) { protected function willFilterPage(array $resources) {
$blueprint_phids = mpull($resources, 'getBlueprintPHID'); $blueprint_phids = mpull($resources, 'getBlueprintPHID');

View file

@ -32,10 +32,6 @@ final class PhabricatorFileAttachmentQuery
return new PhabricatorFileAttachment(); return new PhabricatorFileAttachment();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class FundInitiativeQuery
return new FundInitiative(); return new FundInitiative();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class HarbormasterBuildArtifactQuery
return new HarbormasterBuildArtifact(); return new HarbormasterBuildArtifact();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) { protected function willFilterPage(array $page) {
$build_targets = array(); $build_targets = array();

View file

@ -27,10 +27,6 @@ final class HarbormasterBuildLogQuery
return new HarbormasterBuildLog(); return new HarbormasterBuildLog();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) { protected function willFilterPage(array $page) {
$build_targets = array(); $build_targets = array();

View file

@ -26,10 +26,6 @@ final class HarbormasterBuildMessageQuery
return new HarbormasterBuildMessage(); return new HarbormasterBuildMessage();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) { protected function willFilterPage(array $page) {
$receiver_phids = array_filter(mpull($page, 'getReceiverPHID')); $receiver_phids = array_filter(mpull($page, 'getReceiverPHID'));
if ($receiver_phids) { if ($receiver_phids) {

View file

@ -50,10 +50,6 @@ final class HarbormasterBuildPlanQuery
return new HarbormasterBuildPlan(); return new HarbormasterBuildPlan();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function didFilterPage(array $page) { protected function didFilterPage(array $page) {
if ($this->needBuildSteps) { if ($this->needBuildSteps) {
$plan_phids = mpull($page, 'getPHID'); $plan_phids = mpull($page, 'getPHID');

View file

@ -56,10 +56,6 @@ final class HarbormasterBuildQuery
return new HarbormasterBuild(); return new HarbormasterBuild();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) { protected function willFilterPage(array $page) {
$buildables = array(); $buildables = array();

View file

@ -26,10 +26,6 @@ final class HarbormasterBuildStepQuery
return new HarbormasterBuildStep(); return new HarbormasterBuildStep();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -69,10 +69,6 @@ final class HarbormasterBuildTargetQuery
return new HarbormasterBuildTarget(); return new HarbormasterBuildTarget();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class HarbormasterBuildUnitMessageQuery
return new HarbormasterBuildUnitMessage(); return new HarbormasterBuildUnitMessage();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -63,10 +63,6 @@ final class HarbormasterBuildableQuery
return new HarbormasterBuildable(); return new HarbormasterBuildable();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) { protected function willFilterPage(array $page) {
$buildables = array(); $buildables = array();

View file

@ -86,10 +86,6 @@ final class HeraldRuleQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return new HeraldRule(); return new HeraldRule();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $rules) { protected function willFilterPage(array $rules) {
$rule_ids = mpull($rules, 'getID'); $rule_ids = mpull($rules, 'getID');

View file

@ -26,10 +26,6 @@ final class HeraldWebhookQuery
return new HeraldWebhook(); return new HeraldWebhook();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -29,10 +29,6 @@ final class HeraldWebhookRequestQuery
return new HeraldWebhookRequest(); return new HeraldWebhookRequest();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function withLastRequestEpochBetween($epoch_min, $epoch_max) { public function withLastRequestEpochBetween($epoch_min, $epoch_max) {
$this->lastRequestEpochMin = $epoch_min; $this->lastRequestEpochMin = $epoch_min;
$this->lastRequestEpochMax = $epoch_max; $this->lastRequestEpochMax = $epoch_max;

View file

@ -81,10 +81,6 @@ final class LegalpadDocumentQuery
return new LegalpadDocument(); return new LegalpadDocument();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $documents) { protected function willFilterPage(array $documents) {
if ($this->needDocumentBodies) { if ($this->needDocumentBodies) {
$documents = $this->loadDocumentBodies($documents); $documents = $this->loadDocumentBodies($documents);

View file

@ -100,10 +100,6 @@ final class PhabricatorMacroQuery
return new PhabricatorFileImageMacro(); return new PhabricatorFileImageMacro();
} }
protected function loadPage() {
return $this->loadStandardPage(new PhabricatorFileImageMacro());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -20,10 +20,6 @@ final class PhabricatorMetaMTAMailPropertiesQuery
return new PhabricatorMetaMTAMailProperties(); return new PhabricatorMetaMTAMailProperties();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -36,10 +36,6 @@ final class PhabricatorMetaMTAMailQuery
return $this; return $this;
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class NuanceImportCursorDataQuery
return new NuanceImportCursorData(); return new NuanceImportCursorData();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class NuanceItemCommandQuery
return new NuanceItemCommand(); return new NuanceItemCommand();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -56,10 +56,6 @@ final class NuanceItemQuery
return new NuanceItem(); return new NuanceItem();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $items) { protected function willFilterPage(array $items) {
$viewer = $this->getViewer(); $viewer = $this->getViewer();
$source_phids = mpull($items, 'getSourcePHID'); $source_phids = mpull($items, 'getSourcePHID');

View file

@ -20,10 +20,6 @@ final class NuanceQueueQuery
return new NuanceQueue(); return new NuanceQueue();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -48,10 +48,6 @@ final class NuanceSourceQuery
return 'source'; return 'source';
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $sources) { protected function willFilterPage(array $sources) {
$all_types = NuanceSourceDefinition::getAllDefinitions(); $all_types = NuanceSourceDefinition::getAllDefinitions();

View file

@ -26,10 +26,6 @@ final class PhabricatorOAuthClientAuthorizationQuery
return new PhabricatorOAuthClientAuthorization(); return new PhabricatorOAuthClientAuthorization();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $authorizations) { protected function willFilterPage(array $authorizations) {
$client_phids = mpull($authorizations, 'getClientPHID'); $client_phids = mpull($authorizations, 'getClientPHID');

View file

@ -102,10 +102,6 @@ final class PhabricatorOwnersPackageQuery
$this->controlResults = array(); $this->controlResults = array();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $packages) { protected function willFilterPage(array $packages) {
$package_ids = mpull($packages, 'getID'); $package_ids = mpull($packages, 'getID');

View file

@ -44,10 +44,6 @@ final class PhabricatorPackagesPackageQuery
return new PhabricatorPackagesPackage(); return new PhabricatorPackagesPackage();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -32,10 +32,6 @@ final class PhabricatorPackagesPublisherQuery
return new PhabricatorPackagesPublisher(); return new PhabricatorPackagesPublisher();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -44,10 +44,6 @@ final class PhabricatorPackagesVersionQuery
return new PhabricatorPackagesVersion(); return new PhabricatorPackagesVersion();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -57,10 +57,6 @@ final class PassphraseCredentialQuery
return new PassphraseCredential(); return new PassphraseCredential();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) { protected function willFilterPage(array $page) {
if ($this->needSecrets) { if ($this->needSecrets) {
$secret_ids = mpull($page, 'getSecretID'); $secret_ids = mpull($page, 'getSecretID');

View file

@ -84,10 +84,6 @@ final class PhabricatorPasteQuery
return new PhabricatorPaste(); return new PhabricatorPaste();
} }
protected function loadPage() {
return $this->loadStandardPage(new PhabricatorPaste());
}
protected function didFilterPage(array $pastes) { protected function didFilterPage(array $pastes) {
if ($this->needRawContent) { if ($this->needRawContent) {
$pastes = $this->loadRawContent($pastes); $pastes = $this->loadRawContent($pastes);

View file

@ -58,10 +58,6 @@ final class PhabricatorPeopleLogQuery
return new PhabricatorUserLog(); return new PhabricatorUserLog();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -162,10 +162,6 @@ final class PhabricatorPeopleQuery
return new PhabricatorUser(); return new PhabricatorUser();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function didFilterPage(array $users) { protected function didFilterPage(array $users) {
if ($this->needProfile) { if ($this->needProfile) {
$user_list = mpull($users, null, 'getPHID'); $user_list = mpull($users, null, 'getPHID');

View file

@ -20,10 +20,6 @@ final class PhabricatorPeopleUserEmailQuery
return new PhabricatorUserEmail(); return new PhabricatorUserEmail();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function getPrimaryTableAlias() { protected function getPrimaryTableAlias() {
return 'email'; return 'email';
} }

View file

@ -45,10 +45,6 @@ final class PhameBlogQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return new PhameBlog(); return new PhameBlog();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -50,10 +50,6 @@ final class PhamePostQuery extends PhabricatorCursorPagedPolicyAwareQuery {
return new PhamePost(); return new PhamePost();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $posts) { protected function willFilterPage(array $posts) {
// We require blogs to do visibility checks, so load them unconditionally. // We require blogs to do visibility checks, so load them unconditionally.
$blog_phids = mpull($posts, 'getBlogPHID'); $blog_phids = mpull($posts, 'getBlogPHID');

View file

@ -44,10 +44,6 @@ final class PholioImageQuery
return new PholioImage(); return new PholioImage();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -38,10 +38,6 @@ final class PhortuneAccountEmailQuery
return new PhortuneAccountEmail(); return new PhortuneAccountEmail();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $addresses) { protected function willFilterPage(array $addresses) {
$accounts = id(new PhortuneAccountQuery()) $accounts = id(new PhortuneAccountQuery())
->setViewer($this->getViewer()) ->setViewer($this->getViewer())

View file

@ -46,10 +46,6 @@ final class PhortuneAccountQuery
return new PhortuneAccount(); return new PhortuneAccount();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $accounts) { protected function willFilterPage(array $accounts) {
$query = id(new PhabricatorEdgeQuery()) $query = id(new PhabricatorEdgeQuery())
->withSourcePHIDs(mpull($accounts, 'getPHID')) ->withSourcePHIDs(mpull($accounts, 'getPHID'))

View file

@ -32,10 +32,6 @@ final class PhortuneMerchantQuery
return new PhortuneMerchant(); return new PhortuneMerchant();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $merchants) { protected function willFilterPage(array $merchants) {
$query = id(new PhabricatorEdgeQuery()) $query = id(new PhabricatorEdgeQuery())
->withSourcePHIDs(mpull($merchants, 'getPHID')) ->withSourcePHIDs(mpull($merchants, 'getPHID'))

View file

@ -38,10 +38,6 @@ final class PhortunePaymentMethodQuery
return new PhortunePaymentMethod(); return new PhortunePaymentMethod();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $methods) { protected function willFilterPage(array $methods) {
$accounts = id(new PhortuneAccountQuery()) $accounts = id(new PhortuneAccountQuery())
->setViewer($this->getViewer()) ->setViewer($this->getViewer())

View file

@ -51,10 +51,6 @@ final class PhortuneSubscriptionQuery
return new PhortuneSubscription(); return new PhortuneSubscription();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $subscriptions) { protected function willFilterPage(array $subscriptions) {
$accounts = id(new PhortuneAccountQuery()) $accounts = id(new PhortuneAccountQuery())
->setViewer($this->getViewer()) ->setViewer($this->getViewer())

View file

@ -32,10 +32,6 @@ final class PhrictionContentQuery
return new PhrictionContent(); return new PhrictionContent();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -62,10 +62,6 @@ final class PhrictionDocumentQuery
return $this; return $this;
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
public function newResultObject() { public function newResultObject() {
return new PhrictionDocument(); return new PhrictionDocument();
} }

View file

@ -50,10 +50,6 @@ final class PhabricatorPhurlURLQuery
return $this; return $this;
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -59,10 +59,6 @@ final class PonderAnswerQuery
return new PonderAnswer(); return new PonderAnswer();
} }
protected function loadPage() {
return $this->loadStandardPage(new PonderAnswer());
}
protected function willFilterPage(array $answers) { protected function willFilterPage(array $answers) {
$questions = id(new PonderQuestionQuery()) $questions = id(new PonderQuestionQuery())
->setViewer($this->getViewer()) ->setViewer($this->getViewer())

View file

@ -86,10 +86,6 @@ final class PonderQuestionQuery
return new PonderQuestion(); return new PonderQuestion();
} }
protected function loadPage() {
return $this->loadStandardPage(new PonderQuestion());
}
protected function willFilterPage(array $questions) { protected function willFilterPage(array $questions) {
$phids = mpull($questions, 'getPHID'); $phids = mpull($questions, 'getPHID');

View file

@ -32,10 +32,6 @@ final class PhabricatorProjectColumnPositionQuery
return new PhabricatorProjectColumnPosition(); return new PhabricatorProjectColumnPosition();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = array(); $where = array();

View file

@ -56,10 +56,6 @@ final class PhabricatorProjectColumnQuery
return new PhabricatorProjectColumn(); return new PhabricatorProjectColumn();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $page) { protected function willFilterPage(array $page) {
$projects = array(); $projects = array();

View file

@ -236,10 +236,6 @@ final class PhabricatorProjectQuery
} }
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $projects) { protected function willFilterPage(array $projects) {
$ancestor_paths = array(); $ancestor_paths = array();
foreach ($projects as $project) { foreach ($projects as $project) {

View file

@ -35,10 +35,6 @@ final class PhabricatorProjectTriggerQuery
return new PhabricatorProjectTrigger(); return new PhabricatorProjectTrigger();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -26,10 +26,6 @@ final class PhabricatorRepositoryGitLFSRefQuery
return new PhabricatorRepositoryGitLFSRef(); return new PhabricatorRepositoryGitLFSRef();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -66,10 +66,6 @@ final class PhabricatorRepositoryIdentityQuery
return 'identity'; return 'identity';
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn); $where = parent::buildWhereClauseParts($conn);

View file

@ -40,10 +40,6 @@ final class PhabricatorRepositoryPullEventQuery
return new PhabricatorRepositoryPullEvent(); return new PhabricatorRepositoryPullEvent();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $events) { protected function willFilterPage(array $events) {
// If a pull targets an invalid repository or fails before authenticating, // If a pull targets an invalid repository or fails before authenticating,
// it may not have an associated repository. // it may not have an associated repository.

View file

@ -38,10 +38,6 @@ final class PhabricatorRepositoryPushEventQuery
return new PhabricatorRepositoryPushEvent(); return new PhabricatorRepositoryPushEvent();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $events) { protected function willFilterPage(array $events) {
$repository_phids = mpull($events, 'getRepositoryPHID'); $repository_phids = mpull($events, 'getRepositoryPHID');
$repositories = id(new PhabricatorRepositoryQuery()) $repositories = id(new PhabricatorRepositoryQuery())

View file

@ -64,10 +64,6 @@ final class PhabricatorRepositoryPushLogQuery
return new PhabricatorRepositoryPushLog(); return new PhabricatorRepositoryPushLog();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $logs) { protected function willFilterPage(array $logs) {
$event_phids = mpull($logs, 'getPushEventPHID'); $event_phids = mpull($logs, 'getPushEventPHID');
$events = id(new PhabricatorObjectQuery()) $events = id(new PhabricatorObjectQuery())

View file

@ -50,10 +50,6 @@ final class PhabricatorRepositoryRefCursorQuery
return new PhabricatorRepositoryRefCursor(); return new PhabricatorRepositoryRefCursor();
} }
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function willFilterPage(array $refs) { protected function willFilterPage(array $refs) {
$repository_phids = mpull($refs, 'getRepositoryPHID'); $repository_phids = mpull($refs, 'getRepositoryPHID');

Some files were not shown because too many files have changed in this diff Show more