This commit is contained in:
f43nd1r 2019-07-31 18:51:20 +02:00
parent 8906dd0ac8
commit 52e0c59203

View file

@ -87,6 +87,7 @@ public class BugMerger {
Stacktrace s = iterator.next();
StacktraceMatch match = entityManager.merge(new StacktraceMatch(s, stacktrace, FuzzySearch.ratio(s.getStacktrace(), stacktrace.getStacktrace())));
if (match.getScore() >= b.getApp().getConfiguration().getMinScore()) {
entityManager.flush();
b = mergeBugs(Arrays.asList(s.getBug(), b), s.getBug().getTitle());
}
}