mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Delete differential.updatetaskrevisionassoc
Summary: Used only by Facebook. Test Plan: Moved to Facebook repo and verified it still works. Reviewers: nh, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4515
This commit is contained in:
parent
ca34580123
commit
6c44e704b5
2 changed files with 0 additions and 67 deletions
|
@ -136,7 +136,6 @@ phutil_register_library_map(array(
|
|||
'ConduitAPI_differential_query_Method' => 'applications/differential/conduit/ConduitAPI_differential_query_Method.php',
|
||||
'ConduitAPI_differential_setdiffproperty_Method' => 'applications/differential/conduit/ConduitAPI_differential_setdiffproperty_Method.php',
|
||||
'ConduitAPI_differential_updaterevision_Method' => 'applications/differential/conduit/ConduitAPI_differential_updaterevision_Method.php',
|
||||
'ConduitAPI_differential_updatetaskrevisionassoc_Method' => 'applications/differential/conduit/ConduitAPI_differential_updatetaskrevisionassoc_Method.php',
|
||||
'ConduitAPI_differential_updateunitresults_Method' => 'applications/differential/conduit/ConduitAPI_differential_updateunitresults_Method.php',
|
||||
'ConduitAPI_diffusion_findsymbols_Method' => 'applications/diffusion/conduit/ConduitAPI_diffusion_findsymbols_Method.php',
|
||||
'ConduitAPI_diffusion_getcommits_Method' => 'applications/diffusion/conduit/ConduitAPI_diffusion_getcommits_Method.php',
|
||||
|
@ -1566,7 +1565,6 @@ phutil_register_library_map(array(
|
|||
'ConduitAPI_differential_query_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_differential_setdiffproperty_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_differential_updaterevision_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_differential_updatetaskrevisionassoc_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_differential_updateunitresults_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_diffusion_findsymbols_Method' => 'ConduitAPIMethod',
|
||||
'ConduitAPI_diffusion_getcommits_Method' => 'ConduitAPIMethod',
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @group conduit
|
||||
*/
|
||||
final class ConduitAPI_differential_updatetaskrevisionassoc_Method
|
||||
extends ConduitAPIMethod {
|
||||
|
||||
public function getMethodStatus() {
|
||||
return self::METHOD_STATUS_DEPRECATED;
|
||||
}
|
||||
|
||||
public function getMethodStatusDescription() {
|
||||
return "This method should not really exist. Pretend it doesn't.";
|
||||
}
|
||||
|
||||
public function getMethodDescription() {
|
||||
return "Given a task together with its original and new associated ".
|
||||
"revisions, update the revisions for their attached_tasks.";
|
||||
}
|
||||
|
||||
public function defineParamTypes() {
|
||||
return array(
|
||||
'task_phid' => 'required nonempty string',
|
||||
'orig_rev_phids' => 'required list<string>',
|
||||
'new_rev_phids' => 'required list<string>',
|
||||
);
|
||||
}
|
||||
|
||||
public function defineReturnType() {
|
||||
return 'void';
|
||||
}
|
||||
|
||||
public function defineErrorTypes() {
|
||||
return array(
|
||||
'ERR_NO_TASKATTACHER_DEFINED' => 'No task attacher defined.',
|
||||
);
|
||||
}
|
||||
|
||||
protected function execute(ConduitAPIRequest $request) {
|
||||
$task_phid = $request->getValue('task_phid');
|
||||
$orig_rev_phids = $request->getValue('orig_rev_phids');
|
||||
if (empty($orig_rev_phids)) {
|
||||
$orig_rev_phids = array();
|
||||
}
|
||||
|
||||
$new_rev_phids = $request->getValue('new_rev_phids');
|
||||
if (empty($new_rev_phids)) {
|
||||
$new_rev_phids = array();
|
||||
}
|
||||
|
||||
try {
|
||||
$task_attacher = PhabricatorEnv::newObjectFromConfig(
|
||||
'differential.attach-task-class');
|
||||
$task_attacher->updateTaskRevisionAssoc(
|
||||
$task_phid,
|
||||
$orig_rev_phids,
|
||||
$new_rev_phids);
|
||||
} catch (ReflectionException $ex) {
|
||||
throw new ConduitException('ERR_NO_TASKATTACHER_DEFINED');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in a new issue