usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject [44/50] [abbrv] usergrid git commit: if(entityType.isPresent()) --> never gets into this path for getting connections. hence removing it. also fixed https://issues.apache.org/jira/browse/USERGRID-647
Date Wed, 17 Aug 2016 21:18:03 GMT
if(entityType.isPresent()) --> never gets into this path for getting connections. hence
removing it.
also fixed https://issues.apache.org/jira/browse/USERGRID-647


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

Branch: refs/heads/datastax-cass-driver
Commit: 73834698d722c6760ca42a10b765a7233d74e157
Parents: 1a83bfc
Author: Ayesha Dastagiri <ayesha.amrin@gmail.com>
Authored: Fri Aug 12 09:40:41 2016 -0700
Committer: Ayesha Dastagiri <ayesha.amrin@gmail.com>
Committed: Fri Aug 12 11:03:20 2016 -0700

----------------------------------------------------------------------
 .../corepersistence/pipeline/builder/IdBuilder.java      | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/73834698/stack/core/src/main/java/org/apache/usergrid/corepersistence/pipeline/builder/IdBuilder.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/pipeline/builder/IdBuilder.java
b/stack/core/src/main/java/org/apache/usergrid/corepersistence/pipeline/builder/IdBuilder.java
index b7d1f86..85e9069 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/pipeline/builder/IdBuilder.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/pipeline/builder/IdBuilder.java
@@ -72,17 +72,8 @@ public class IdBuilder {
      * @return
      */
     public IdBuilder traverseReverseConnection( final String connectionName, final Optional<String>
entityType ) {
-
         final PipelineOperation<FilterResult<Id>, FilterResult<Id>> filter;
-
-        if(entityType.isPresent()){
-            //todo: change this too.
-            filter = filterFactory.readGraphConnectionByTypeFilter( connectionName, entityType.get()
);
-        }else{
-            filter = filterFactory.readGraphReverseConnectionFilter( connectionName );
-        }
-
-
+        filter = filterFactory.readGraphReverseConnectionFilter( connectionName );
         return new IdBuilder( pipeline.withFilter(filter ), filterFactory );
     }
 


Mime
View raw message