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

Add null check for credentials without emails #616

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Jul 18, 2024

🚀 This description was created by Ellipsis for commit 64eeaeb

Summary:

Added null check for email credentials in is_valid_email and updated its usage in get_secret_value_from_url method of BitwardenService.

Key points:

  • Updated is_valid_email function in skyvern/forge/sdk/services/bitwarden.py to handle None values.
  • Modified get_secret_value_from_url method in BitwardenService to use the updated is_valid_email function.
  • Added a null check for email credentials to prevent errors when email is missing.

Generated with ❤️ by ellipsis.dev

<!-- ELLIPSIS_HIDDEN -->

| 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 7a27cdd2e6a3d9fa2949a81b130c8b07eed67276  |
|--------|--------|

### Summary:
Added null check for email credentials in `is_valid_email` and updated its usage in `get_secret_value_from_url` method of `BitwardenService`.

**Key points**:
- Updated `is_valid_email` function in `skyvern/forge/sdk/services/bitwarden.py` to handle `None` values.
- Modified `get_secret_value_from_url` method in `BitwardenService` to use the updated `is_valid_email` function.
- Added a null check for email credentials to prevent errors when email is missing.

----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)

<!-- ELLIPSIS_HIDDEN -->
@ykeremy ykeremy added the sync label Jul 18, 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 64eeaeb in 1 minute and 5 seconds

More details
  • Looked at 28 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/bitwarden.py:145
  • Draft comment:
    Consider providing a default value when fetching the username to ensure clarity and prevent any potential issues with None values being passed around.
                if is_valid_email(cred.get(BitwardenConstants.USERNAME, "")):
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_FL8yxfpdzSS8Pp2F


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

@ykeremy ykeremy merged commit 51816c0 into main Jul 18, 2024
2 checks passed
@ykeremy ykeremy deleted the ykeremy/fix-isvalid-email-bug branch July 18, 2024 16:07
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