Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a bug where too many adder nodes are added #1499

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 6, 2025

Important

Fixes bug in getElements function in workflowEditorUtils.ts to prevent adding multiple adder nodes by reusing adderNodeId.

  • Bug Fix:
    • Fixes bug in getElements function in workflowEditorUtils.ts where multiple adder nodes were added unnecessarily.
    • Reuses adderNodeId variable instead of redeclaring it, ensuring only one adder node is added per block.

This description was created by Ellipsis for dfd401f. It will automatically update as commits are pushed.

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Fixes bug in `getElements` function to prevent adding multiple adder nodes unnecessarily by reusing `adderNodeId`.
>
>   - **Bug Fix**:
>     - Fixes bug in `getElements` function in `workflowEditorUtils.ts` where multiple adder nodes were added unnecessarily.
>     - Reuses `adderNodeId` variable instead of redeclaring it, ensuring only one adder node is added per block.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 740d2a606f15ab1e28d4a74dd575dc3294824fb6. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on dfd401f in 15 seconds

More details
  • Looked at 22 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_XOXzuu8klsJqxeIR


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to dfd401f in 30 seconds

More details
  • Looked at 22 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts:586
  • Draft comment:
    Reuse the adderNodeId declared earlier instead of redeclaring it here to ensure consistency and prevent multiple adder nodes.
// Reuse the adderNodeId declared earlier
  • Reason this comment was not posted:
    Comment looked like it was already resolved.

Workflow ID: wflow_MxrFHUSjEILL2ijM


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@msalihaltun msalihaltun merged commit 75002c0 into main Jan 6, 2025
2 checks passed
@msalihaltun msalihaltun deleted the salih/loop-node-adder-node-bug branch January 6, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants