summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorRavi Geda <gravik@amdocs.com>2018-06-12 14:54:41 +0100
committerRavi Geda <gravik@amdocs.com>2018-06-12 14:54:41 +0100
commit414eaef56d9f9427712448c22a0c7eec02007ba4 (patch)
tree7b22904a42ecfd32a376d3cba42f3b95f1fb5268 /src/main/java
parent36a7dbfd2672ee6629c4b375df2d6982d942fa43 (diff)
Fix GET ALL for vertices created asynchronously
Vertices created asynchronously are not being returned in the GET ALL vertices. This commit addresses this problem Change-Id: I83ee7a59dc2005447706fa0a43ba2c9d2f0e4592 Issue-ID: AAI-1223 Signed-off-by: Ravi Geda <gravik@amdocs.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java
index dc30a4e..5d37acb 100644
--- a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java
+++ b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java
@@ -202,6 +202,7 @@ public class CrudAsyncGraphDataService extends AbstractGraphDataService {
public String addVertex(String version, String type, VertexPayload payload) throws CrudException {
// Validate the incoming payload
Vertex vertex = OxmModelValidator.validateIncomingUpsertPayload(null, version, type, payload.getProperties());
+ vertex.getProperties().put(org.onap.schema.OxmModelValidator.Metadata.NODE_TYPE.propertyName(), type);
// Create graph request event
GraphEvent event = GraphEvent.builder(GraphEventOperation.CREATE)
.vertex(GraphEventVertex.fromVertex(vertex, version)).build();