This is an automated email from the ASF dual-hosted git repository.

dhanak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new d4739dfeec6 kie-tools-issues#2886 [Serverless Logic Web Tools] 
NoStackTraceException on the deployment if the workflow has a validation 
warning (#3123)
d4739dfeec6 is described below

commit d4739dfeec66986dcaa5a33a0b0a1259bdb67513
Author: Kumar Aditya Raj <[email protected]>
AuthorDate: Wed Jul 16 11:42:44 2025 +0530

    kie-tools-issues#2886 [Serverless Logic Web Tools] NoStackTraceException on 
the deployment if the workflow has a validation warning (#3123)
    
    Co-authored-by: kumaradityaraj <[email protected]>
---
 .../src/editor/hooks/useDeployDropdownItems.tsx                     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/packages/serverless-logic-web-tools/src/editor/hooks/useDeployDropdownItems.tsx
 
b/packages/serverless-logic-web-tools/src/editor/hooks/useDeployDropdownItems.tsx
index 7c8e95f1451..e23a8dcf2de 100644
--- 
a/packages/serverless-logic-web-tools/src/editor/hooks/useDeployDropdownItems.tsx
+++ 
b/packages/serverless-logic-web-tools/src/editor/hooks/useDeployDropdownItems.tsx
@@ -70,7 +70,9 @@ export function useDeployDropdownItems(props: Props) {
 
   useEffect(() => {
     props.workspaceFile.getFileContentsAsString().then((content) => {
-      setCanContentBeDeployed(content.trim().length > 0 && 
!notifications.some((d) => d.severity === "ERROR"));
+      setCanContentBeDeployed(
+        content.trim().length > 0 && !notifications.some((d) => d.severity === 
"ERROR" || d.severity === "WARNING")
+      );
     });
   }, [notifications, props.workspaceFile]);
 
@@ -336,7 +338,7 @@ export function useDeployDropdownItems(props: Props) {
             <Divider />
             <Tooltip
               content={
-                "Models with errors or empty ones cannot be deployed. Check 
the Problems tab for more information."
+                "Models with errors, warnings, or that are empty cannot be 
deployed. Please check the Problems tab for more information."
               }
               position="bottom"
             >


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to