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

Fetch less in workflows page #1226

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Nov 20, 2024

Important

Optimize workflows page by passing workflow object directly to WorkflowActions to reduce unnecessary data fetching.

  • Behavior:
    • WorkflowActions now receives workflow object directly instead of fetching it using useWorkflowQuery.
    • deleteWorkflowMutation in WorkflowActions.tsx now uses workflow.workflow_permanent_id instead of id.
  • Imports:
    • Removed useWorkflowQuery import from WorkflowActions.tsx.
    • Moved WorkflowApiResponse and WorkflowRunApiResponse imports in Workflows.tsx for consistency.
  • Props:
    • Changed WorkflowActions prop from id to workflow in Workflows.tsx.

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

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Optimize workflows page by passing `workflow` object directly to `WorkflowActions` to reduce unnecessary data fetching.
>
>   - **Behavior**:
>     - `WorkflowActions` now receives `workflow` object directly instead of fetching it using `useWorkflowQuery`.
>     - `deleteWorkflowMutation` in `WorkflowActions.tsx` now uses `workflow.workflow_permanent_id` instead of `id`.
>   - **Imports**:
>     - Removed `useWorkflowQuery` import from `WorkflowActions.tsx`.
>     - Moved `WorkflowApiResponse` and `WorkflowRunApiResponse` imports in `Workflows.tsx` for consistency.
>   - **Props**:
>     - Changed `WorkflowActions` prop from `id` to `workflow` in `Workflows.tsx`.
>
> <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 f29cdccd47b33114d03b58b650cb8d016c178947. 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 ae8ba96 in 18 seconds

More details
  • Looked at 68 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/WorkflowActions.tsx:34
  • Draft comment:
    The useWorkflowQuery import is still present but should be removed as per the PR description.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_00pXzHJrNO3fXfDE


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 ae8ba96 in 28 seconds

More details
  • Looked at 68 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/WorkflowActions.tsx:34
  • Draft comment:
    The useWorkflowQuery import should be removed as it is no longer used.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.

Workflow ID: wflow_tbrAZDz8iYrQ5vUJ


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

@msalihaltun msalihaltun merged commit c643472 into main Nov 20, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/fetch-less-in-workflows-page branch November 20, 2024 15:48
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