bobbai00 commented on code in PR #9278:
URL: https://github.com/apache/texera/pull/9278#discussion_r4687157375
##########
agent-service/src/agent/util/auto-layout.ts:
##########
@@ -67,4 +73,18 @@ export function autoLayoutWorkflow(workflowState:
WorkflowState): void {
});
}
}
+
+ // A comment box anchored to an operator moves with it, keeping its offset,
as in the frontend's
+ // layout. Floating boxes, and boxes anchored to an operator no longer in
the workflow, stay put.
+ for (const commentBox of workflowState.getAllCommentBoxes()) {
+ const operatorID = commentBox.anchoredOperatorID;
+ const oldPosition = operatorID !== undefined ?
oldPositions.get(operatorID) : undefined;
Review Comment:
Verified: `agent-service/src/agent/workflow-state.ts:126-131` now strips
`anchoredOperatorID` from the deleted operator's comment boxes, so an operator
that reuses the ID no longer claims them, and `workflow-state.spec.ts` covers
it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]