diff options
author | xuegao <xg353y@intl.att.com> | 2020-09-14 08:57:26 +0200 |
---|---|---|
committer | Xue Gao <xg353y@intl.att.com> | 2020-09-14 08:45:58 +0000 |
commit | d11b99b853a25721b3916e5d296c2d8c23ab106f (patch) | |
tree | 4e6e344c6e06f607124699779e5ade8bb7f50b61 /catalog-model/src | |
parent | 662fcbae499d428189bc3246821ed6c773938fce (diff) |
Fix VSP updating issue
Fix the issue during the VSP updating.
Issue-ID: SDC-3104
Signed-off-by: xuegao <xg353y@intl.att.com>
Change-Id: If58aa1a7f1846b0269a7f759b47c7f00f834ae1f
Diffstat (limited to 'catalog-model/src')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java index bf899631aa..b7cc2c8bd6 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaElementLifecycleOperation.java @@ -442,6 +442,8 @@ public class ToscaElementLifecycleOperation extends BaseOperation { lastCertifiedV.setVertex((JanusGraphVertex) lastCertifiedVertex); lastCertifiedV.setUniqueId((String) janusGraphDao .getProperty((JanusGraphVertex) lastCertifiedVertex, GraphPropertyEnum.UNIQUE_ID.getProperty())); + lastCertifiedV.addMetadataProperty(GraphPropertyEnum.IS_ABSTRACT, + (Boolean) janusGraphDao.getProperty((JanusGraphVertex) lastCertifiedVertex, GraphPropertyEnum.IS_ABSTRACT.getProperty())); StorageOperationStatus res = updateEdgeToCatalogRoot(null, lastCertifiedV); if (res != StorageOperationStatus.OK) { return res; @@ -1264,7 +1266,7 @@ public class ToscaElementLifecycleOperation extends BaseOperation { Boolean isAbstract = (Boolean) newVersionV.getMetadataProperty(GraphPropertyEnum.IS_ABSTRACT); if ( isAbstract == null || !isAbstract ) { - // no new vertex, only delete previous + // create new vertex JanusGraphOperationStatus result = janusGraphDao .createEdge(catalogV, newVersionV, EdgeLabelEnum.CATALOG_ELEMENT, null); |