Added FIXME and removed purge method.
@@ -171,6 +171,7 @@ public class VulnerabilityStatementsProcessor extends Plugin {
var pkgVersionVulnIds = metadataUtility.getPackageVersionIds(v.getPurls(), context, pkgIds, v);
if (pkgVersionVulnIds.size() == 0) return objectMapper.writeValueAsString(v);
+ // FIXME: Does this assume the list of pkg version is ordered by date?
var lastVulnVersionId = pkgVersionVulnIds.get(pkgVersionVulnIds.size() - 1);
var fastenUris = new HashSet<String>();
@@ -289,14 +290,5 @@ public class VulnerabilityStatementsProcessor extends Plugin {
logger.error("Error parsing patch date!");
}
}
-
- /**
- * Purge Vulnerability entries from the DB.
- */
- public void purgeVulnerabilitiesFromDB() {
- logger.info("Purging ALL the databases from all vulnerability entries");
- var metadataUtility = new MetadataUtility();
- metadataUtility.purgeFromDB(contexts);
- }
}
}
