Clean up System.out.println and bump up ingestion-core version (#3072)

This commit is contained in:
Matt 2022-03-02 01:35:24 -08:00 committed by GitHub
parent c56e78f3f2
commit 6c4bb1f401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -408,7 +408,6 @@ public abstract class EntityRepository<T> {
T original = setFields(dao.findEntityById(id), patchFields);
// Apply JSON patch to the original entity to get the updated entity
System.out.println("XXX patch is " + patch);
T updated = JsonUtils.applyPatch(original, patch, entityClass);
EntityInterface<T> updatedEntity = getEntityInterface(updated);
updatedEntity.setUpdateDetails(user, System.currentTimeMillis());
@ -1189,10 +1188,6 @@ public abstract class EntityRepository<T> {
.deleteFrom(fromId.toString(), fromEntityType, relationshipType.ordinal(), toEntityType);
// Add relationships from updated
for (EntityReference ref : updatedToRefs) {
System.out.println(
String.format(
"XXX relationship %s:%s to %s:%s of type %s",
fromEntityType, fromId, toEntityType, ref.getId(), relationshipType));
addRelationship(fromId, ref.getId(), fromEntityType, toEntityType, relationshipType);
}
updatedToRefs.sort(EntityUtil.compareEntityReference);
@ -1225,10 +1220,6 @@ public abstract class EntityRepository<T> {
.deleteTo(toId.toString(), fromEntityType, relationshipType.ordinal(), toEntityType);
// Add relationships from updated
for (EntityReference ref : updatedFromRefs) {
System.out.println(
String.format(
"XXX relationship %s:%s to %s:%s of type %s",
fromEntityType, ref, toEntityType, toId, relationshipType));
addRelationship(ref.getId(), toId, fromEntityType, toEntityType, relationshipType);
}
updatedFromRefs.sort(EntityUtil.compareEntityReference);

View File

@ -7,5 +7,5 @@ Provides metadata version information.
from incremental import Version
__version__ = Version("metadata", 0, 9, 0, dev=16)
__version__ = Version("metadata", 0, 9, 0, dev=17)
__all__ = ["__version__"]