This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects

Resolve "Die Statistiken sollten auch in ElasticSearch hinterlegt werden."

Compare and Show latest version
17 files
+ 36
77
Compare changes
  • Side-by-side
  • Inline
Files
17
@@ -50,7 +50,6 @@ import org.apache.commons.lang3.StringUtils;
import org.codeability.sharing.plugins.api.search.SearchResultDTO;
import org.codeability.sharing.plugins.api.search.SearchResultDTO.GitProject;
import org.codeability.sharing.plugins.api.search.SearchResultDTO.MetadataFile;
import org.codeability.sharing.plugins.api.search.SearchResultDTO.PluginActionInfo;
import org.codeability.sharing.plugins.api.search.UserProvidedMetadataDTO;
import org.codeability.sharing.plugins.api.search.UserProvidedMetadataDTO.InteractivityTypeXXX;
import org.codeability.sharing.plugins.api.search.UserProvidedMetadataDTO.PublicVisibility;
@@ -974,9 +973,7 @@ public class GitlabEventService {
gitLabRepository
.streamAllProjects()
.filter(project -> project.getPathWithNamespace().startsWith(groupEvent.getFullPath()))
.forEach(project -> {
indexProject(project);
});
.forEach(project -> indexProject(project));
return null;
}
@@ -1121,11 +1118,7 @@ public class GitlabEventService {
public void indexAllProjects() throws GitLabApiException, IOException {
String index = esRepository.createNewMetaDataIndex();
gitLabRepository
.streamAllProjects()
.forEach(project -> {
indexProject(index, project);
});
gitLabRepository.streamAllProjects().forEach(project -> indexProject(index, project));
esRepository.createAlias(index);
}
@@ -1154,7 +1147,6 @@ public class GitlabEventService {
}
} catch (GitLabApiException e) {
logger.warn("Cannot find branch or commit in project {}", project.getNameWithNamespace(), e);
return;
}
}