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 parameterized URL bug in task block #815

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 fcf7795

fix: parameterized URL handling in TaskBlock

Summary:

Fixes parameterized URL handling in TaskBlock by ensuring URL is appended only if not already present and removing redundant checks.

Key points:

  • Fix parameterized URL handling in TaskBlock.
  • Ensure URL is appended only if not already present in parameters.
  • Remove redundant checks in get_all_parameters().

Generated with ❤️ by ellipsis.dev

<!-- ELLIPSIS_HIDDEN -->

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

fix: parameterized URL handling in TaskBlock

### Summary:
Fixes parameterized URL handling in `TaskBlock` by ensuring URL is appended only if not already present in `parameters`.

**Key points**:
- **Behavior**:
  - Fixes parameterized URL handling in `get_all_parameters()` in `TaskBlock` by removing redundant checks and ensuring URL is appended only if not already present in `parameters` list.

----
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! Reviewed everything up to fcf7795 in 8 seconds

More details
  • Looked at 23 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/models/block.py:191
  • Draft comment:
    The check if self.url not in [parameter.key for parameter in parameters]: ensures that the URL is appended to the parameters list only if it is not already present, preventing duplicate entries. This is a good practice to maintain a clean list of parameters.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The PR description indicates a fix for parameterized URL handling in TaskBlock. The change ensures that the URL is appended to parameters only if not already present. This is a logical improvement to prevent duplicate entries in the parameters list.

Workflow ID: wflow_VEhmeLQPlUj2tNKX


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! Incremental review on fcf7795 in 19 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/forge/sdk/workflow/models/block.py:191
  • Draft comment:
    The check if self.url not in [parameter.key for parameter in parameters]: ensures that the URL is appended to parameters only if not already present, preventing duplicate entries. This is a logical improvement.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The PR description indicates a fix for parameterized URL handling in TaskBlock. The change ensures that the URL is appended to parameters only if not already present. This is a logical improvement to prevent duplicate entries.

Workflow ID: wflow_dxtzeTLctV5mGqE3


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

@ykeremy ykeremy merged commit 3e82a6a into main Sep 12, 2024
2 checks passed
@ykeremy ykeremy deleted the ykeremy/fix-parameterized-url-bug-in-task-block branch September 12, 2024 06:53
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.

1 participant