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

Show only standalone tasks in task pages #925

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Oct 8, 2024

Important

Add only_standalone_tasks filter to task API requests in TaskHistory, QueuedTasks, and RunningTasks.

  • Behavior:
    • Add only_standalone_tasks: "true" to API requests in TaskHistory, QueuedTasks, and RunningTasks to filter tasks.
  • Components:
    • TaskHistory: Filters completed, failed, terminated, timed out, and canceled tasks.
    • QueuedTasks: Filters queued tasks.
    • RunningTasks: Filters running tasks.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add `only_standalone_tasks` filter to task API requests in `TaskHistory`, `QueuedTasks`, and `RunningTasks`.
>
>   - **Behavior**:
>     - Add `only_standalone_tasks: "true"` to API requests in `TaskHistory`, `QueuedTasks`, and `RunningTasks` to filter tasks.
>   - **Components**:
>     - `TaskHistory`: Filters completed, failed, terminated, timed out, and canceled tasks.
>     - `QueuedTasks`: Filters queued tasks.
>     - `RunningTasks`: Filters running tasks.
>
> <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 c9af0ad174af6f36019d6c93f2660f2b8bc9fc1c. 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 38a1545 in 16 seconds

More details
  • Looked at 38 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern-frontend/src/routes/tasks/running/QueuedTasks.tsx:26
  • Draft comment:
    Consider adding error handling for the API request to handle potential errors gracefully, similar to how it's done in TaskHistory. This applies to RunningTasks as well.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code in all three files is consistent with the PR description, which is to add the only_standalone_tasks filter to the API requests. The changes are straightforward and correctly implemented. However, there is a potential issue with error handling in the QueuedTasks and RunningTasks components, where errors are not handled, unlike in TaskHistory. This could lead to unhandled promise rejections or silent failures.
2. skyvern-frontend/src/routes/tasks/running/RunningTasks.tsx:26
  • Draft comment:
    Consider adding error handling for the API request to handle potential errors gracefully, similar to how it's done in TaskHistory. This applies to QueuedTasks as well.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code in all three files is consistent with the PR description, which is to add the only_standalone_tasks filter to the API requests. The changes are straightforward and correctly implemented. However, there is a potential issue with error handling in the QueuedTasks and RunningTasks components, where errors are not handled, unlike in TaskHistory. This could lead to unhandled promise rejections or silent failures.

Workflow ID: wflow_eQpFWFSupJ2bcK5H


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 38a1545 in 21 seconds

More details
  • Looked at 38 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern-frontend/src/routes/tasks/running/QueuedTasks.tsx:26
  • Draft comment:
    Consider adding error handling for the useQuery hook to manage potential API request failures. This is applicable in RunningTasks as well.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code changes are consistent with the PR description, which aims to filter tasks by standalone status. However, there is a potential issue with error handling in the QueuedTasks and RunningTasks components.
2. skyvern-frontend/src/routes/tasks/running/RunningTasks.tsx:26
  • Draft comment:
    Consider adding error handling for the useQuery hook to manage potential API request failures. This is applicable in QueuedTasks as well.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code changes are consistent with the PR description, which aims to filter tasks by standalone status. However, there is a potential issue with error handling in the QueuedTasks and RunningTasks components.

Workflow ID: wflow_BX11RLLEgPlvHmDE


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

@msalihaltun msalihaltun merged commit 4ff957d into main Oct 8, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/show-standalone-tasks-only-in-task-history branch October 8, 2024 12:34
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