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 whitespace bug for SendEmailBlock #922

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Oct 8, 2024

Important

Fixes whitespace handling in getWorkflowBlock() for send_email blocks by trimming whitespace from file_attachments and recipients fields.

  • Behavior:
    • Fixes whitespace bug in getWorkflowBlock() in workflowEditorUtils.ts by trimming whitespace from file_attachments and recipients fields for send_email blocks.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Fixes whitespace bug in `getWorkflowBlock()` in `workflowEditorUtils.ts` by trimming whitespace from `file_attachments` and `recipients` fields for `send_email` blocks.
>
>   - **Behavior**:
>     - Fixes whitespace bug in `getWorkflowBlock()` in `workflowEditorUtils.ts` by trimming whitespace from `file_attachments` and `recipients` fields for `send_email` blocks.
>
> <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 730fe7d03c3b36accfb8eecf9934ded7f61ef61a. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
@ykeremy ykeremy added the sync label Oct 8, 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 e4b14dc in 8 seconds

More details
  • Looked at 15 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:511
  • Draft comment:
    Trimming whitespace from 'file_attachments' and 'recipients' is a good practice to ensure data consistency.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR correctly trims whitespace from the 'file_attachments' and 'recipients' fields in the 'send_email' block. This is a good practice to ensure data consistency and prevent errors due to unexpected whitespace.

Workflow ID: wflow_4Fb9sGkw3fwxTowE


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 e4b14dc in 8 seconds

More details
  • Looked at 15 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:511
  • Draft comment:
    Trimming whitespace from file_attachments and recipients is a good practice to ensure data consistency and prevent errors due to unexpected whitespace.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR correctly trims whitespace from the file_attachments and recipients fields in the getWorkflowBlock function. This change is consistent with the PR description and addresses the whitespace bug.

Workflow ID: wflow_EbZ5qBGqVjylLFgG


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 75d5a63 in 8 seconds

More details
  • Looked at 19 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:511
  • Draft comment:
    Consider improving code readability by aligning the chained methods for file_attachments and recipients.
  • Reason this comment was not posted:
    Confidence changes required: 33%
    The PR description indicates a fix for whitespace handling in getWorkflowBlock() for send_email blocks. The changes made are correct and improve the robustness of the code by trimming whitespace from file_attachments and recipients. However, the formatting of the code can be improved for better readability.

Workflow ID: wflow_ceuYTmrneeO4wwGr


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

@ykeremy ykeremy merged commit 869ef69 into main Oct 8, 2024
2 checks passed
@ykeremy ykeremy deleted the ykeremy/email-block-recipient-bugfix branch October 8, 2024 06:57
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