Skip to content

Commit

Permalink
Merge pull request #2750 from atlanhq/dev/feat/removeRelationshipAttr…
Browse files Browse the repository at this point in the history
…ibute

PLT-573| Bug | Fix mutationResponse
  • Loading branch information
aarshi0301 authored Jan 11, 2024
2 parents 9ee63d1 + 49f8dfd commit db9cb41
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1771,10 +1771,14 @@ private AtlasEdge getEdgeUsingRelationship(AttributeMutationContext ctx, EntityM
AtlasEdge edge = relationshipStore.getRelationship(fromVertex, toVertex, new AtlasRelationship(relationshipName));

if (edge != null && getStatus(edge) != DELETED) {
return edge;
ret = edge;
}

RequestContext requestContext = RequestContext.get();
requestContext.recordEntityUpdate(entityRetriever.toAtlasEntityHeader(toVertex));
}
}

if (LOG.isDebugEnabled()) {
LOG.debug("<== getEdgeUsingRelationship({})", ctx);
}
Expand Down Expand Up @@ -2166,7 +2170,7 @@ public List removeArrayValue(AttributeMutationContext ctx, EntityMutationContext
LOG.debug("<== removeArrayValue({})", ctx);
}

return new ArrayList<>();
return entityRelationsDeleted;
}

private void addEdgesToContext(String guid, List<Object> newElementsCreated, List<AtlasEdge> removedElements) {
Expand Down

0 comments on commit db9cb41

Please sign in to comment.