Fix DatabaseMerger with new CGMerger in Vuln Cache Proc Plugin (python3 manage.py makemigrations)
@@ -24,7 +24,7 @@ import eu.fasten.core.data.graphdb.RocksDao;
import eu.fasten.core.data.metadatadb.MetadataDao;
import eu.fasten.core.maven.GraphMavenResolver;
import eu.fasten.core.maven.data.Revision;
-import eu.fasten.core.merge.DatabaseMerger;
+import eu.fasten.core.merge.CGMerger;
import eu.fasten.core.plugins.DataWriter;
import eu.fasten.core.plugins.DependencyGraphUser;
import eu.fasten.core.plugins.GraphDBReader;
@@ -240,7 +240,7 @@ public class VulnerabilityCacheProcessorPlugin extends Plugin {
var depSet = graphResolver.resolveDependencies(revision, dbContext, true);
var depIds = depSet.stream().map(r -> r.id).collect(Collectors.toSet());
var vulnerableDependencies = kbDao.findVulnerablePackageVersions(depIds);
- var databaseMerger = new DatabaseMerger(depIds, dbContext, graphDao);
+ var databaseMerger = new CGMerger(depIds, dbContext, graphDao);
var graph = databaseMerger.mergeWithCHA(revision.product().toString() + Constants.mvnCoordinateSeparator + revision.version.toString());
var vulnerabilities = kbDao.findVulnerableCallables(vulnerableDependencies, graph.nodes());
var internalCallables = kbDao.getPackageInternalCallableIDs(revision.product().toString(), revision.version.toString());
