This is an automated email from the ASF dual-hosted git repository.
aicam pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new 52ed19f9f6 fix: improve equality check for PortSchemas (#3667)
52ed19f9f6 is described below
commit 52ed19f9f6ceb480ca9368823cb2a34287d0f03e
Author: Andy Zhang <[email protected]>
AuthorDate: Thu Aug 28 08:01:06 2025 -0700
fix: improve equality check for PortSchemas (#3667)
fixes #3562
---------
Co-authored-by: ali risheh <[email protected]>
---
core/gui/src/app/common/util/workflow-compilation-utils.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/gui/src/app/common/util/workflow-compilation-utils.ts
b/core/gui/src/app/common/util/workflow-compilation-utils.ts
index de74872db9..c42333cb18 100644
--- a/core/gui/src/app/common/util/workflow-compilation-utils.ts
+++ b/core/gui/src/app/common/util/workflow-compilation-utils.ts
@@ -18,6 +18,7 @@
import { CompilationState, CompilationStateInfo, PortSchema } from
"../../workspace/types/workflow-compiling.interface";
import { WorkflowFatalError } from
"../../workspace/types/workflow-websocket.interface";
+import { isEqual } from "lodash";
/**
* Checks if all PortSchemas in an array are equal to each other.
@@ -30,7 +31,7 @@ export function areAllPortSchemasEqual(schemas: (PortSchema |
undefined)[]): boo
if (schemas.length <= 1) {
return true;
}
- return schemas.every(schema => schema === schemas[0]);
+ return schemas.every(schema => isEqual(schemas[0], schema));
}
/**