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 totp_identifier parametrized in workflow #847

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Sep 18, 2024

🚀 This description was created by Ellipsis for commit 4d0fe26

feat: parameterize totp_identifier in TaskBlock

Summary:

Parameterizes totp_identifier in TaskBlock within block.py, allowing dynamic setting from workflow context.

Key points:

  • Behavior:
    • totp_identifier in TaskBlock is now parameterized in block.py.
    • If totp_identifier is set and exists in the workflow context, it is updated with the context value.
    • Logs the use of parameterized totp_identifier value.

Generated with ❤️ by ellipsis.dev

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 4d0fe26 in 10 seconds

More details
  • Looked at 25 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/models/block.py:243
  • Draft comment:
    Consider adding a warning or error log if the TOTP identifier is expected to be parameterized but is not found in the workflow context, similar to how other parameters are handled.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code block added in the PR is checking if the TOTP identifier is parameterized and updating it accordingly. This is similar to the existing logic for URL and download_suffix. However, the code does not handle the case where the TOTP identifier is not found in the workflow context, which could lead to unexpected behavior if the identifier is expected to be parameterized but isn't.

Workflow ID: wflow_f7UGtxder4ZjgPNj


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

@wintonzheng wintonzheng merged commit ffaf3ab into main Sep 19, 2024
2 checks passed
@wintonzheng wintonzheng deleted the shu/support_parametrized_totp_identifier branch September 19, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants