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
3 files
+ 26
20
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -809,10 +809,12 @@ public class GitlabEventService {
doc.setMetadata(node.getMetaDataInfo().getMetaData().get());
final String interactivityType = doc.getMetadata().getInteractivityType();
if (!isEnumInteractivity(interactivityType)) {
logger.warn("TODO: Reset clearing of InteractivityType! Was just for temporary backward compatibility");
doc.getMetadata().setInteractivityType(InteractivityTypeXXX.UNSPECIFIED.getExternalName());
}
doc.getMetadata().setInteractivityType(interactivityType);
// if (!isEnumInteractivity(interactivityType)) {
// // logger.warn("TODO: Reset clearing of InteractivityType! Was just for
// // temporary backward compatibility");
// doc.getMetadata().setInteractivityType(InteractivityTypeXXX.UNSPECIFIED.getExternalName());
// }
esRepository.updateSearchStatistics(doc);
return doc;
@@ -1078,13 +1080,17 @@ public class GitlabEventService {
logger.info("project {} is not index. No metadata found", project.getId());
return null;
}
if (logger.isDebugEnabled()) {
logger.debug("parsed tree:");
tree.get().printTreeRecursive();
}
if (tree.get().hasErrors()) {
logger.info("project {} has errors and is not indexed", project.getId());
} else {
if (logger.isDebugEnabled()) {
logger.debug("parsed tree:");
tree.get().printTreeRecursive();
}
Indexing indexing = new Indexing(indexName);
indexing.indexMetadataNode(getPermissionsfromProject(project), tree.get());
Indexing indexing = new Indexing(indexName);
indexing.indexMetadataNode(getPermissionsfromProject(project), tree.get());
}
return new AnalysedCommit(project, eventCommit, tree.get());
}
@@ -1164,7 +1170,11 @@ public class GitlabEventService {
commit.setId(branch.get().getCommit().getId());
AnalysedCommit analyzedCommit = checkAndIndexProject(project, commit, metaDataMandatory, index);
if (analyzedCommit == null) {
logger.info("Stopped handling push event. Error occurred while handling push event.");
logger.info(
"Stopped handling push event for {}/{}. Error occurred while handling push event.",
project.getId(),
commit.getId()
);
}
}
} catch (GitLabApiException e) {
@@ -1219,6 +1229,7 @@ public class GitlabEventService {
context.setVariable("mainMessage", mainMessage);
context.setVariable(MailService.BASE_URL, jHipsterProperties.getMail().getBaseUrl());
logger.info("Sending commit mail to {}", email);
String content = templateEngine.process("mail/gitlab_events/indexingResult", context);
@SuppressWarnings("unused")