Skip to content

Commit 8e26916

Browse files
author
epriestley
committedMar 4, 2017
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
1 parent 19ecd0b commit 8e26916

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎src/applications/maniphest/edge/ManiphestTaskDependedOnByTaskEdgeType.php

+12
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ public function shouldWriteInverseTransactions() {
1111
return true;
1212
}
1313

14+
public function getConduitKey() {
15+
return 'task.parent';
16+
}
17+
18+
public function getConduitName() {
19+
return pht('Parent Task');
20+
}
21+
22+
public function getConduitDescription() {
23+
return pht('The source object has the destination object as a parent.');
24+
}
25+
1426
public function getTransactionAddString(
1527
$actor,
1628
$add_count,

‎src/applications/maniphest/edge/ManiphestTaskDependsOnTaskEdgeType.php

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ public function shouldPreventCycles() {
1616
return true;
1717
}
1818

19+
public function getConduitKey() {
20+
return 'task.subtask';
21+
}
22+
23+
public function getConduitName() {
24+
return pht('Subtask');
25+
}
26+
27+
public function getConduitDescription() {
28+
return pht('The source object has the destination object as a subtask.');
29+
}
30+
1931
public function getTransactionAddString(
2032
$actor,
2133
$add_count,

0 commit comments

Comments
 (0)
Failed to load comments.