diff options
author | da490c <dave.adams@amdocs.com> | 2018-08-24 00:32:30 -0400 |
---|---|---|
committer | da490c <dave.adams@amdocs.com> | 2018-08-24 00:34:45 -0400 |
commit | f9d3379dfa2b0d67aef0ba4937018d6c6023a77e (patch) | |
tree | 05930bf43b1f5f62f94f9ec41a7956ffc1c9a143 /sparkybe-onap-service/src/main/java/org | |
parent | 3f9bce9e9d5c7f779a20d289811a88babfbda3cf (diff) |
AAI-1518 - fix gizmo graph visualization
Fix corrupted sparky logging templates and gizmo visualization context
logic resulting in graph build failures.
Issue-ID: AAI-1518
Change-Id: I0663a3b5cd73bd2e21e5c7ae5a2824b77b132203
Signed-off-by: da490c <dave.adams@amdocs.com>
Diffstat (limited to 'sparkybe-onap-service/src/main/java/org')
-rw-r--r-- | sparkybe-onap-service/src/main/java/org/onap/aai/sparky/viewandinspect/services/BaseGizmoVisualizationContext.java | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/viewandinspect/services/BaseGizmoVisualizationContext.java b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/viewandinspect/services/BaseGizmoVisualizationContext.java index 4177b44..11a771b 100644 --- a/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/viewandinspect/services/BaseGizmoVisualizationContext.java +++ b/sparkybe-onap-service/src/main/java/org/onap/aai/sparky/viewandinspect/services/BaseGizmoVisualizationContext.java @@ -194,8 +194,8 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { ain.setEntityType(gizmoEntity.getType()); ain.setPrimaryKeyName(getEntityTypePrimaryKeyName(gizmoEntity.getType())); - - OxmEntityDescriptor descriptor = oxmEntityLookup.getEntityDescriptors().get(gizmoEntity); + + OxmEntityDescriptor descriptor = oxmEntityLookup.getEntityDescriptors().get(gizmoEntity.getType()); if (descriptor != null) { ain.setPrimaryKeyValue(getPrimaryKeyValues(gizmoEntity.getProperties(), @@ -203,7 +203,7 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { } else { LOG.error(AaiUiMsgs.ERROR_GENERIC, "Could not determine oxm descriptor for entity type = " + gizmoEntity.getType()); } - + gizmoEntity.getProperties().forEach((key, value) -> { ain.getProperties().put(key, value); }); @@ -212,8 +212,6 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { if (ain.getSelfLink() != null) { ain.addProperty(SparkyConstants.URI_ATTR_NAME, ain.getSelfLink()); } - - /* * Only discover neighbors if our depth is less than the Max-Traversal-Depth @@ -223,7 +221,7 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { /* * I think the next thing to do is: - * + * * 1. Calculate the source / target node id 2. Add the nodeId to the incoming / outgoing links * collection 3. Add the node to the node cache for processing */ @@ -598,7 +596,7 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { break; } - case READY: + case READY: case ERROR: { break; } @@ -618,7 +616,7 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { } } - + dumpThrottledWorkOnHandLog(); } @@ -773,7 +771,7 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { } } - + return (aaiWorkOnHand.get() + numNodesWithPendingStates); } @@ -803,14 +801,14 @@ public class BaseGizmoVisualizationContext implements VisualizationContext { } } - + dumpThrottledWorkOnHandLog(true); } /* * (non-Javadoc) - * + * * @see * org.onap.aai.sparky.viewandinspect.services.VisualizationContext#processSelfLinks(org.onap.aai. * sparky.sync.entity.SearchableEntity, org.onap.aai.sparky.viewandinspect.entity.QueryParams) |