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

Make collection id required #1036

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Oct 23, 2024

Important

Enforce collectionId requirement for credential parameters in WorkflowParameterAddPanel and WorkflowParameterEditPanel, with updated error handling and toast messages.

  • Behavior:
    • Enforce collectionId requirement for credential type in WorkflowParameterAddPanel and WorkflowParameterEditPanel.
    • Display error toast if collectionId is missing when saving.
  • UI:
    • Update toast titles from "Failed to save parameters" to "Failed to add parameter" or "Failed to save parameter" for consistency.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Make `collectionId` required for `credential` parameters in `WorkflowParameterAddPanel` and `WorkflowParameterEditPanel`, with error handling and toast message updates.
>
>   - **Behavior**:
>     - Enforce `collectionId` requirement for `credential` type in `WorkflowParameterAddPanel` and `WorkflowParameterEditPanel`.
>     - Display error toast if `collectionId` is missing when saving.
>   - **UI**:
>     - Update toast titles from "Failed to save parameters" to "Failed to add parameter" or "Failed to save parameter" for consistency.
>
> <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 a1c03cfd87dc5f0dbeacf0ca66f05cd3c32c4d17. 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! Reviewed everything up to 7b97d1d in 9 seconds

More details
  • Looked at 75 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterAddPanel.tsx:208
  • Draft comment:
    The toast title was updated correctly here. Ensure similar updates are made in other relevant places for consistency.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions updating toast titles for consistency. The title for the 'credential' type in the WorkflowParameterEditPanel was updated correctly, but the WorkflowParameterAddPanel also needed this update.
2. skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterAddPanel.tsx:234
  • Draft comment:
    The toast title was updated correctly here. Ensure similar updates are made in other relevant places for consistency.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions updating toast titles for consistency. The title for the 'credential' type in the WorkflowParameterEditPanel was updated correctly, but the WorkflowParameterAddPanel also needed this update.

Workflow ID: wflow_TwYD6sXIgbz3jY6G


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 7b97d1d in 10 seconds

More details
  • Looked at 75 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterAddPanel.tsx:250
  • Draft comment:
    The toast title for the 'context' type should be updated to "Failed to add parameter" for consistency with other types.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions updating toast titles for consistency. The changes in the code reflect this update, but there is a minor inconsistency in the toast title for the 'context' type in the WorkflowParameterAddPanel. It should be updated for consistency.
2. skyvern-frontend/src/routes/workflows/editor/panels/WorkflowParameterEditPanel.tsx:283
  • Draft comment:
    The toast title for the 'context' type should be updated to "Failed to save parameter" for consistency with other types.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions updating toast titles for consistency. The changes in the code reflect this update, but there is a minor inconsistency in the toast title for the 'context' type in the WorkflowParameterEditPanel. It should be updated for consistency.

Workflow ID: wflow_anludPRrSB8jiYSr


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

@msalihaltun msalihaltun merged commit d6c1618 into main Oct 23, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/make-collection-id-required branch October 23, 2024 21:00
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