CHE-8674. Delete child projects only at removing project
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>6.19.x
parent
576ce4743a
commit
acb0e00a48
|
|
@ -11,6 +11,7 @@
|
|||
package org.eclipse.che.api.project.server.impl;
|
||||
|
||||
import static java.util.stream.Collectors.toSet;
|
||||
import static org.eclipse.che.api.fs.server.WsPathUtils.SEPARATOR;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import java.util.Map;
|
||||
|
|
@ -43,7 +44,7 @@ public class ProjectConfigRegistry {
|
|||
projects
|
||||
.entrySet()
|
||||
.stream()
|
||||
.filter(it -> it.getKey().startsWith(wsPath))
|
||||
.filter(it -> it.getKey().startsWith(wsPath + SEPARATOR))
|
||||
.filter(it -> !it.getKey().equals(wsPath))
|
||||
.map(Entry::getValue)
|
||||
.collect(toSet());
|
||||
|
|
|
|||
Loading…
Reference in New Issue