bhliva commented on a change in pull request #328: [DLAB-1075]: Added 
possibility to stop project with related instances…
URL: https://github.com/apache/incubator-dlab/pull/328#discussion_r330063925
 
 

 ##########
 File path: 
services/self-service/src/main/java/com/epam/dlab/backendapi/service/impl/ProjectServiceImpl.java
 ##########
 @@ -189,6 +224,23 @@ private void projectActionOnCloud(UserInfo user, String 
projectName, String prov
                }
        }
 
+       private void checkProjectRelatedResourcesInProgress(String projectName, 
String action) {
+               List<UserInstanceDTO> userInstanceDTOs = 
exploratoryDAO.fetchProjectExploratoriesWhereStatusIn(projectName,
 
 Review comment:
   method may be one line:
   ..
   dtos.
   stream()
   .findAny()
   .orElseThrow(() -> 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to