Skip to content
Permalink
Browse files
Merge pull request #117 from isururanawaka/master
Fix shared with me
  • Loading branch information
isururanawaka committed Jun 16, 2022
2 parents b004161 + 78a4e0e commit 77978ff44ac254108216e56016f06ff5e764787c
Showing 2 changed files with 6 additions and 6 deletions.
@@ -32,7 +32,7 @@ datalake_repo: "https://github.com/apache/airavata-data-lake.git"
datalake_git_branch: master
kafka_listener_port: 9092
kafka_url: "{{ groups['data-lake'][0] }}:9092"
custos_kafka_url: custos07.sciencegateways.iu.edu:9092
custos_kafka_url: custos15.sciencegateways.iu.edu:9092
zookeeper_client_port: 2181
zookeeper_connection_url: localhost:2181
custos_host: prod.custos.usecustos.org
@@ -472,11 +472,11 @@ public void searchResource(ResourceSearchRequest
String val = searchParameterMap.get("sharedWith").get("username");
String query = "MATCH (u:User) where u.username = $username AND u.tenantId = $tenantId " +
" OPTIONAL MATCH (g:Group)<-[:MEMBER_OF]-(u) " +
" OPTIONAL MATCH (u)<-[pRel:SHARED_WITH]-(p:COLLECTION)<-[:CHILD_OF*] -(x:" + value + ")-[relR:SHARED_WITH]->(u)" +
" where NOT x.owner = '" + val + "' " +
" OPTIONAL MATCH (g)<-[pxRel:SHARED_WITH]-(pr:COLLECTION)<-[:CHILD_OF*] -(px:" + value + ")-[relR:SHARED_WITH]->(g)" +
" where NOT px.owner = '" + val + "'" +
" return distinct p,pRel, px,pxRel";
" OPTIONAL MATCH (u)<-[pRel:SHARED_WITH]-(p:COLLECTION)" +
" where NOT p.owner = '" + val + "' " +
" OPTIONAL MATCH (g)<-[pxRel:SHARED_WITH]-(pr:COLLECTION)" +
" where NOT pr.owner = '" + val + "'" +
" return distinct p,pRel, pr,pxRel";
Map<String, Object> objectMap = new HashMap<>();
objectMap.put("username", val);
objectMap.put("tenantId", callUser.getTenantId());

0 comments on commit 77978ff

Please sign in to comment.