Github user siyuanh commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/338#discussion_r65421945
  
    --- Diff: engine/src/main/java/com/datatorrent/stram/webapp/TypeGraph.java 
---
    @@ -355,7 +356,8 @@ public int size()
         }
         Set<String> result = new TreeSet<>();
         for (TypeGraphVertex node : tgv.allInstantiableDescendants) {
    -      if ((isAncestor(InputOperator.class.getName(), node.typeName) || 
!getAllInputPorts(node).isEmpty())) {
    +      if ((isAncestor(InputOperator.class.getName(), node.typeName) || 
isAncestor(Module.class.getName(), node.typeName)
    --- End diff --
    
     Method should do what the name suggest . Should either change the name of 
the method or have this in a separate method. There are same problem in 
TypeGraph and OperatorDiscover, please fix them as well. Otherwise, it would be 
confusing and error-prone in the future.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to