Skip to content
Permalink
Browse files
Merge pull request #51 from isururanawaka/sharing_service_impl
Bug fix in storage preference search
  • Loading branch information
isururanawaka committed Sep 1, 2021
2 parents 06eef8c + 3745e56 commit 2725efbd895e594ec2b33626a2e09665a4dc2901
Showing 1 changed file with 1 addition and 1 deletion.
@@ -273,7 +273,7 @@ public void searchStoragePreference(StoragePreferenceSearchRequest request, Stre
if (storageId != null) {
query = " MATCH (u:User) where u.username = $username AND u.tenantId = $tenantId" +
" OPTIONAL MATCH (u)<-[:SHARED_WITH]-(s1:Storage{storageId:'" + storageId + "'})<-[:CHILD_OF]->(sp1:StoragePreference)" +
" OPTIONAL MATCH (cg:Group)-[:CHILD_OF*]->(g:Group)<-[:MEMBER_OF]-(u)" +
" OPTIONAL MATCH (cg:Group)-[:CHILD_OF *0..]->(g:Group)<-[:MEMBER_OF]-(u)" +
" OPTIONAL MATCH (sp2:StoragePreference)-[:CHILD_OF]->(s2:Storage{storageId:'" + storageId + "'})-[:SHARED_WITH]->(cg) " +
" OPTIONAL MATCH (sp3:StoragePreference)-[:CHILD_OF]->(s3:Storage{storageId:'" + storageId + "'})-[:SHARED_WITH]->(g)" +
" OPTIONAL MATCH (s4:Storage{storageId:'" + storageId + "'})<-[:CHILD_OF]-(sp4:StoragePreference)-[:SHARED_WITH]->(u)" +

0 comments on commit 2725efb

Please sign in to comment.