1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 16:00:59 +01:00

Expose "parent task" and "subtask" relationships to "edge.search"

Summary: Ref T12337. This just fills out a couple more task relationships.

Test Plan: Viewed the edges in the Conduit console, queried for them.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12337

Differential Revision: https://secure.phabricator.com/D17465
This commit is contained in:
epriestley 2017-03-04 15:17:03 -08:00
parent 19ecd0be65
commit 8e26916f7f
2 changed files with 24 additions and 0 deletions

View file

@ -11,6 +11,18 @@ final class ManiphestTaskDependedOnByTaskEdgeType extends PhabricatorEdgeType {
return true;
}
public function getConduitKey() {
return 'task.parent';
}
public function getConduitName() {
return pht('Parent Task');
}
public function getConduitDescription() {
return pht('The source object has the destination object as a parent.');
}
public function getTransactionAddString(
$actor,
$add_count,

View file

@ -16,6 +16,18 @@ final class ManiphestTaskDependsOnTaskEdgeType extends PhabricatorEdgeType {
return true;
}
public function getConduitKey() {
return 'task.subtask';
}
public function getConduitName() {
return pht('Subtask');
}
public function getConduitDescription() {
return pht('The source object has the destination object as a subtask.');
}
public function getTransactionAddString(
$actor,
$add_count,