mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Expose the commit/task/revision relationship edges to "edge.search"
Summary: Fixes T12480. Test Plan: {F4465908} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12480 Differential Revision: https://secure.phabricator.com/D17604
This commit is contained in:
parent
009aff1a23
commit
163e1ec442
6 changed files with 74 additions and 0 deletions
|
@ -12,6 +12,19 @@ final class DifferentialRevisionHasCommitEdgeType extends PhabricatorEdgeType {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function getConduitKey() {
|
||||
return 'revision.commit';
|
||||
}
|
||||
|
||||
public function getConduitName() {
|
||||
return pht('Revision Has Commit');
|
||||
}
|
||||
|
||||
public function getConduitDescription() {
|
||||
return pht(
|
||||
'The source revision is associated with the destination commit.');
|
||||
}
|
||||
|
||||
public function getTransactionAddString(
|
||||
$actor,
|
||||
$add_count,
|
||||
|
|
|
@ -12,6 +12,18 @@ final class DifferentialRevisionHasTaskEdgeType extends PhabricatorEdgeType {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function getConduitKey() {
|
||||
return 'revision.task';
|
||||
}
|
||||
|
||||
public function getConduitName() {
|
||||
return pht('Revision Has Task');
|
||||
}
|
||||
|
||||
public function getConduitDescription() {
|
||||
return pht('The source revision is associated with the destination task.');
|
||||
}
|
||||
|
||||
public function getTransactionAddString(
|
||||
$actor,
|
||||
$add_count,
|
||||
|
|
|
@ -12,4 +12,17 @@ final class DiffusionCommitHasRevisionEdgeType extends PhabricatorEdgeType {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function getConduitKey() {
|
||||
return 'commit.revision';
|
||||
}
|
||||
|
||||
public function getConduitName() {
|
||||
return pht('Commit Has Revision');
|
||||
}
|
||||
|
||||
public function getConduitDescription() {
|
||||
return pht(
|
||||
'The source commit is associated with the destination revision.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,18 @@ final class DiffusionCommitHasTaskEdgeType extends PhabricatorEdgeType {
|
|||
return ManiphestTaskHasCommitEdgeType::EDGECONST;
|
||||
}
|
||||
|
||||
public function getConduitKey() {
|
||||
return 'commit.task';
|
||||
}
|
||||
|
||||
public function getConduitName() {
|
||||
return pht('Commit Has Task');
|
||||
}
|
||||
|
||||
public function getConduitDescription() {
|
||||
return pht('The source commit is associated with the destination task.');
|
||||
}
|
||||
|
||||
public function getTransactionAddString(
|
||||
$actor,
|
||||
$add_count,
|
||||
|
|
|
@ -12,6 +12,18 @@ final class ManiphestTaskHasCommitEdgeType extends PhabricatorEdgeType {
|
|||
return DiffusionCommitHasTaskEdgeType::EDGECONST;
|
||||
}
|
||||
|
||||
public function getConduitKey() {
|
||||
return 'task.commit';
|
||||
}
|
||||
|
||||
public function getConduitName() {
|
||||
return pht('Task Has Commit');
|
||||
}
|
||||
|
||||
public function getConduitDescription() {
|
||||
return pht('The source task is associated with the destination commit.');
|
||||
}
|
||||
|
||||
public function getTransactionAddString(
|
||||
$actor,
|
||||
$add_count,
|
||||
|
|
|
@ -12,6 +12,18 @@ final class ManiphestTaskHasRevisionEdgeType extends PhabricatorEdgeType {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function getConduitKey() {
|
||||
return 'task.revision';
|
||||
}
|
||||
|
||||
public function getConduitName() {
|
||||
return pht('Task Has Revision');
|
||||
}
|
||||
|
||||
public function getConduitDescription() {
|
||||
return pht('The source task is associated with the destination revision.');
|
||||
}
|
||||
|
||||
public function getTransactionAddString(
|
||||
$actor,
|
||||
$add_count,
|
||||
|
|
Loading…
Reference in a new issue