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 non-link loop values in observer #1460

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 2, 2025

Important

Fix handling of non-link loop values in _generate_loop_task() and remove redundant logging in observer_service.py.

  • Behavior:
    • Fix handling of non-link loop values in _generate_loop_task() in observer_service.py by ensuring ContextParameter is created for both link and non-link loop values.
  • Logging:
    • Remove redundant logging of "Workflow found" in run_observer_cruise_helper() in observer_service.py.

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

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Fix handling of non-link loop values in `_generate_loop_task()` in `observer_service.py` by ensuring `ContextParameter` is created for both link and non-link loop values.
>
>   - **Behavior**:
>     - Fix handling of non-link loop values in `_generate_loop_task()` in `observer_service.py` by ensuring `ContextParameter` is created for both link and non-link loop values.
>   - **Logging**:
>     - Remove redundant logging of "Workflow found" in `run_observer_cruise_helper()` in `observer_service.py`.
>
> <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 b116f2feeb339f966803cf5e7152e78079928211. 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 0573a72 in 10 seconds

More details
  • Looked at 59 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/services/observer_service.py:759
  • Draft comment:
    The code for creating ContextParameter and appending it to task_parameters and for_loop_parameter_yaml_list is duplicated. Consider refactoring to avoid redundancy.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR correctly refactors the code to handle both link and non-link loop values. However, the code for creating ContextParameter and appending it to task_parameters and for_loop_parameter_yaml_list is duplicated. This can be refactored to avoid redundancy.

Workflow ID: wflow_vkeUYtNBIpTmz5cm


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 0573a72 in 14 seconds

More details
  • Looked at 59 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern/forge/sdk/services/observer_service.py:282
  • Draft comment:
    Consider removing the 'Workflow run found' logging statement as it might be redundant, similar to the 'Workflow found' log that was removed.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions removing redundant logging, and the code change reflects that. However, the logging statement for 'Workflow run found' is still present, which might also be considered redundant.
2. skyvern/forge/sdk/services/observer_service.py:746
  • Draft comment:
    Good refactoring to ensure ContextParameter is created for both link and non-link loop values, improving consistency.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The refactoring in the PR ensures that ContextParameter is created for both link and non-link loop values, which is a good practice for consistency and maintainability.

Workflow ID: wflow_TNDBSTcgEHrrHMML


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

@wintonzheng wintonzheng merged commit 3510a81 into main Jan 2, 2025
2 checks passed
@wintonzheng wintonzheng deleted the shu/support_non_link_values_in_observer branch January 2, 2025 07:50
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