Skip to content

Commit

Permalink
fix for prop text update
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeet-atlan committed Jan 28, 2025
1 parent a118278 commit 2ea2057
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4090,7 +4090,7 @@ public void updateClassificationTextPropagation(String classificationVertexId) t

// update the 'assetsCountToPropagate' on in memory java object.
AtlasTask currentTask = RequestContext.get().getCurrentTask();
currentTask.setAssetsCountToPropagate((long) impactedVertices.size() - 1);
currentTask.setAssetsCountToPropagate((long) impactedVertices.size());

//update the 'assetsCountToPropagate' in the current task vertex.
AtlasVertex currentTaskVertex = (AtlasVertex) graph.query().has(TASK_GUID, currentTask.getGuid()).vertices().iterator().next();
Expand All @@ -4112,10 +4112,7 @@ public void updateClassificationTextPropagation(String classificationVertexId) t
}
}

//substract one to exclude direct attachement
int batchSizeToAdd = (end == impactedVertices.size()) ? batch.size() - 1 : batch.size();

currentTask.setAssetsCountPropagated(currentTask.getAssetsCountPropagated() + batchSizeToAdd);
currentTask.setAssetsCountPropagated(currentTask.getAssetsCountPropagated() + end);
currentTaskVertex.setProperty(TASK_ASSET_COUNT_PROPAGATED, currentTask.getAssetsCountPropagated());

transactionInterceptHelper.intercept();
Expand Down

0 comments on commit 2ea2057

Please sign in to comment.