Differential D9928 Diff 23828 src/applications/differential/conduit/ConduitAPI_differential_query_Method.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/ConduitAPI_differential_query_Method.php
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | foreach ($revisions as $revision) { | ||||
'lineCount' => $revision->getLineCount(), | 'lineCount' => $revision->getLineCount(), | ||||
'activeDiffPHID' => $diff->getPHID(), | 'activeDiffPHID' => $diff->getPHID(), | ||||
'diffs' => $revision->getDiffIDs(), | 'diffs' => $revision->getDiffIDs(), | ||||
'commits' => $revision->getCommitPHIDs(), | 'commits' => $revision->getCommitPHIDs(), | ||||
'reviewers' => array_values($revision->getReviewers()), | 'reviewers' => array_values($revision->getReviewers()), | ||||
'ccs' => array_values($revision->getCCPHIDs()), | 'ccs' => array_values($revision->getCCPHIDs()), | ||||
'hashes' => $revision->getHashes(), | 'hashes' => $revision->getHashes(), | ||||
'auxiliary' => idx($field_data, $phid, array()), | 'auxiliary' => idx($field_data, $phid, array()), | ||||
'arcanistProjectPHID' => $diff->getArcanistProjectPHID() | 'arcanistProjectPHID' => $diff->getArcanistProjectPHID(), | ||||
'repositoryPHID' => $diff->getRepositoryPHID(), | |||||
); | ); | ||||
// TODO: This is a hacky way to put permissions on this field until we | // TODO: This is a hacky way to put permissions on this field until we | ||||
// have first-class support, see T838. | // have first-class support, see T838. | ||||
if ($revision->getAuthorPHID() == $request->getUser()->getPHID()) { | if ($revision->getAuthorPHID() == $request->getUser()->getPHID()) { | ||||
$result['sourcePath'] = $diff->getSourcePath(); | $result['sourcePath'] = $diff->getSourcePath(); | ||||
} | } | ||||
$results[] = $result; | $results[] = $result; | ||||
} | } | ||||
return $results; | return $results; | ||||
} | } | ||||
} | } |