Repository: helix
Updated Branches:
  refs/heads/master fea9de50b -> 5f142f2ec


Fix the job parents listing logic in REST


Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/5c5186bf
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/5c5186bf
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/5c5186bf

Branch: refs/heads/master
Commit: 5c5186bf6f24720875710efe99fd389d4dc91602
Parents: fea9de5
Author: Junkai Xue <[email protected]>
Authored: Thu Feb 1 16:19:21 2018 -0800
Committer: Lei Xia <[email protected]>
Committed: Thu Mar 8 14:59:30 2018 -0800

----------------------------------------------------------------------
 .../apache/helix/rest/server/resources/helix/WorkflowAccessor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/5c5186bf/helix-rest/src/main/java/org/apache/helix/rest/server/resources/helix/WorkflowAccessor.java
----------------------------------------------------------------------
diff --git 
a/helix-rest/src/main/java/org/apache/helix/rest/server/resources/helix/WorkflowAccessor.java
 
b/helix-rest/src/main/java/org/apache/helix/rest/server/resources/helix/WorkflowAccessor.java
index ebd04fd..5efb26c 100644
--- 
a/helix-rest/src/main/java/org/apache/helix/rest/server/resources/helix/WorkflowAccessor.java
+++ 
b/helix-rest/src/main/java/org/apache/helix/rest/server/resources/helix/WorkflowAccessor.java
@@ -108,7 +108,7 @@ public class WorkflowAccessor extends AbstractHelixResource 
{
 
     JobDag jobDag = workflowConfig.getJobDag();
     ArrayNode jobs = OBJECT_MAPPER.valueToTree(jobDag.getAllNodes());
-    ObjectNode parentJobs = 
OBJECT_MAPPER.valueToTree(jobDag.getParentsToChildren());
+    ObjectNode parentJobs = 
OBJECT_MAPPER.valueToTree(jobDag.getChildrenToParents());
     root.put(WorkflowProperties.Jobs.name(), jobs);
     root.put(WorkflowProperties.ParentJobs.name(), parentJobs);
 

Reply via email to