Skip to content

Commit

Permalink
Fix mutation response for table-columns and other relations
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshi0301 committed Jan 11, 2024
1 parent d13bf10 commit 64125b1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1770,10 +1770,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 @@ -2165,7 +2169,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 64125b1

Please sign in to comment.