1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Augmented DifferentailDependsOnFieldSpecification to expose its data over conduit

Summary: Implmented conduit methods from base class in DifferentialDependsOnFieldSpecification

Test Plan: Created two test diffs, made one of them dependent on another. Then checked the dependency over conduit interface for differential.query. Dependency is shown but in terms of PHIDs

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5238
This commit is contained in:
Afaque Hussain 2013-03-05 12:28:08 -08:00 committed by epriestley
parent 035067f83c
commit 7acaeee844

View file

@ -35,4 +35,16 @@ final class DifferentialDependsOnFieldSpecification
PhabricatorEdgeConfig::TYPE_DREV_DEPENDS_ON_DREV);
}
public function shouldAppearOnConduitView() {
return true;
}
public function getValueForConduit() {
return $this->getDependentRevisionPHIDs();
}
public function getKeyForConduit() {
return 'phabricator:depends-on';
}
}