Differential D18396 Diff 44238 src/applications/differential/conduit/DifferentialFindConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialFindConduitAPIMethod.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | protected function execute(ConduitAPIRequest $request) { | ||||
} | } | ||||
$query = id(new DifferentialRevisionQuery()) | $query = id(new DifferentialRevisionQuery()) | ||||
->setViewer($request->getUser()); | ->setViewer($request->getUser()); | ||||
switch ($type) { | switch ($type) { | ||||
case 'open': | case 'open': | ||||
$query | $query | ||||
->withStatus(DifferentialLegacyQuery::STATUS_OPEN) | ->withIsOpen(true) | ||||
->withAuthors($guids); | ->withAuthors($guids); | ||||
break; | break; | ||||
case 'committable': | case 'committable': | ||||
$query | $query | ||||
->withStatus(DifferentialLegacyQuery::STATUS_ACCEPTED) | ->withStatuses(DifferentialRevisionStatus::ACCEPTED) | ||||
->withAuthors($guids); | ->withAuthors($guids); | ||||
break; | break; | ||||
case 'revision-ids': | case 'revision-ids': | ||||
$query | $query | ||||
->withIDs($guids); | ->withIDs($guids); | ||||
break; | break; | ||||
case 'owned': | case 'owned': | ||||
$query->withAuthors($guids); | $query->withAuthors($guids); | ||||
Show All 31 Lines |