Skip to content

4798#4844

Merged
ivicac merged 4 commits intomasterfrom
4798
Apr 23, 2026
Merged

4798#4844
ivicac merged 4 commits intomasterfrom
4798

Conversation

@ivicac
Copy link
Copy Markdown
Contributor

@ivicac ivicac commented Apr 23, 2026

  • 4798 Require valid type format in WorkflowTaskUtils task detection
  • 4798 Skip output generation in VarSetAction when value is null

ivicac and others added 2 commits April 23, 2026 15:42
The name+type heuristic introduced in 1be59ef incorrectly matched
user-defined data structures with both fields (e.g., PostgreSQL column
definitions {"name": "ime", "type": "STRING"}), causing
WorkflowNodeType.ofType("STRING") to throw on workflow save.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses workflow task detection false-positives and avoids generating outputs for var/set when no value is provided.

Changes:

  • Skip output generation in VarSetAction when the value input is missing or null.
  • Refine WorkflowTaskUtils nested-task detection by extracting map checks into isWorkflowTaskMap.
  • Add a regression test ensuring List<Map> payloads with name/type keys (but non-workflow type values) are not treated as tasks.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
server/libs/modules/components/var/src/main/java/com/bytechef/component/var/action/VarSetAction.java Adds a null check intended to avoid output generation when value is absent/null.
server/libs/atlas/atlas-configuration/atlas-configuration-api/src/main/java/com/bytechef/atlas/configuration/util/WorkflowTaskUtils.java Centralizes and tightens logic used to identify task-like maps in parameters.
server/libs/atlas/atlas-configuration/atlas-configuration-api/src/test/java/com/bytechef/atlas/configuration/util/WorkflowTaskUtilsTest.java Adds coverage for lists of maps that resemble tasks but are actually user data structures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ivicac and others added 2 commits April 23, 2026 16:12
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@ivicac ivicac merged commit c9aaa31 into master Apr 23, 2026
7 checks passed
@ivicac ivicac deleted the 4798 branch April 23, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants