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

Skip to content
Snippets Groups Projects
Commit 271e829f authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Temporary Fix for statistics elastic search index

parent 392a41b8
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -45,7 +45,12 @@ public class StatisticsServiceImpl implements StatisticsService {
Statistics statistics = statisticsMapper.toEntity(statisticsDTO);
statistics = statisticsRepository.save(statistics);
StatisticsDTO result = statisticsMapper.toDto(statistics);
statisticsSearchRepository.save(statistics);
// TODO temporary fix: statistics has a problem with complex exercise ids (e.g. 10:if1/exercise1) :-)
try {
statisticsSearchRepository.save(statistics);
} catch (Exception e) {
log.error("Please fix this problem! ExerciseIds are not numeric any more!", e);
}
return result;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment