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 when first added node is loop type #824

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Sep 12, 2024

<!-- ELLIPSIS_HIDDEN -->
🚀 This description was created by Ellipsis for commit 335c8c1

fix: correct ID generation for node adder in loop node in FlowRenderer.tsx

Summary:

Fixes ID generation bug for node adder in FlowRenderer.tsx using nanoid() for unique IDs.

Key points:

  • Bug Fix: Corrects ID generation for node adder in FlowRenderer.tsx when the first node is a 'loop'.
  • Uses nanoid() for unique ID instead of concatenated string.

Generated with ❤️ by ellipsis.dev

…src/'

<!-- ELLIPSIS_HIDDEN -->

| 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit e06710e5038a74a05efaa9f823e3e642d129558c  |
|--------|--------|

fix: correct ID generation for node adder in loop node in `FlowRenderer.tsx`

### Summary:
Fixes ID generation bug for node adder in `FlowRenderer.tsx` when first node is a 'loop'.

**Key points**:
- **Bug Fix**:
  - Fixes ID generation for node adder in `addNode()` in `FlowRenderer.tsx` when the first node is of type 'loop'.
  - Uses `nanoid()` for unique ID instead of concatenated string.

----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)

<!-- ELLIPSIS_HIDDEN -->
@ykeremy ykeremy added the sync label Sep 12, 2024
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 335c8c1 in 14 seconds

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

Workflow ID: wflow_X0xv2XWTx6ao5udZ


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 335c8c1 in 36 seconds

More details
  • Looked at 14 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/FlowRenderer.tsx:176
  • Draft comment:
    Consider using nanoid() for generating the ID of the nodeAdder here as well to ensure uniqueness, similar to the change made for loop nodes.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is suggesting a change that has already been implemented in the diff. The ID for the nodeAdder is already being generated using nanoid(), so the comment is not necessary.
    I might be missing the context of other parts of the code where nanoid() is not used, but the comment is specifically about the change in the diff, which is already resolved.
    The comment is about the specific change in the diff, and since the change has been made, the comment is not needed.
    The comment is not needed because the suggested change has already been implemented in the diff.

Workflow ID: wflow_dijP6SJIbpFGGXMQ


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

@msalihaltun msalihaltun merged commit acd167f into main Sep 12, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/fix-first-node-loop-bug branch September 12, 2024 21:04
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