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 DE Proxy #1678

Merged
merged 4 commits into from
Jan 30, 2025
Merged

Add DE Proxy #1678

merged 4 commits into from
Jan 30, 2025

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 30, 2025

  • Add org index to the actions table
  • Add DE Proxy

Important

Add 'RESIDENTIAL_DE' proxy location to database, frontend, and backend systems.

  • Database:
    • Add RESIDENTIAL_DE to proxylocation enum in add_residential_de_proxy.py.
  • Frontend:
    • Add ResidentialDE to ProxyLocation in types.ts.
    • Update ProxySelector.tsx to include "Residential (Germany)" option.
  • Backend:
    • Add RESIDENTIAL_DE to ProxyLocation enum in tasks.py.
    • Update get_tzinfo_from_proxy() in tasks.py to return Europe/Berlin for RESIDENTIAL_DE.

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

- **Add org index to the actions table**
- **Add DE Proxy**

<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Add support for 'RESIDENTIAL_DE' proxy location across database, configuration, proxy management, and frontend components.
>
>   - **Database**:
>     - Add 'RESIDENTIAL_DE' to `proxylocation` enum in `add_residential_de_proxy.py`.
>   - **Configuration**:
>     - Add `WEBSHARE_IO_RESIDENTIAL_PROXY_USERNAME_DE` to `CloudSettings` in `config.py`.
>     - Update `job-definition-production.json`, `job-definition-staging.json`, `observer-definition-production.json`, `observer-definition-staging.json`, `task-definition-staging.json`, `worker-staging-terraform/temporal_worker.tf`, `worker-terraform/temporal_worker.tf`, `workflow-job-definition-production.json`, and `workflow-job-definition-staging.json` to include `WEBSHARE_IO_RESIDENTIAL_PROXY_USERNAME_DE`.
>   - **Proxy Management**:
>     - Add `RESIDENTIAL_DE` to `ProxyLocation` in `proxy.py` and handle it in `build_proxy_config_webshare_io()` and `build_proxy_config()`.
>   - **Frontend**:
>     - Add `ResidentialDE` to `ProxyLocation` in `types.ts`.
>     - Update `ProxySelector.tsx` to include 'Residential (Germany)'.
>   - **Miscellaneous**:
>     - Update `get_tzinfo_from_proxy()` in `tasks.py` to return `ZoneInfo("Europe/Berlin")` for `RESIDENTIAL_DE`.
>
> <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 b0ca88184450448608fe17f2880c3d0dfd2748cc. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
…src/'

- **Add org index to the actions table**
- **Add DE Proxy**

<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Add support for 'RESIDENTIAL_DE' proxy location across database, configuration, proxy management, and frontend components.
>
>   - **Database**:
>     - Add 'RESIDENTIAL_DE' to `proxylocation` enum in `add_residential_de_proxy.py`.
>   - **Configuration**:
>     - Add `WEBSHARE_IO_RESIDENTIAL_PROXY_USERNAME_DE` to `CloudSettings` in `config.py`.
>     - Update `job-definition-production.json`, `job-definition-staging.json`, `observer-definition-production.json`, `observer-definition-staging.json`, `task-definition-staging.json`, `worker-staging-terraform/temporal_worker.tf`, `worker-terraform/temporal_worker.tf`, `workflow-job-definition-production.json`, and `workflow-job-definition-staging.json` to include `WEBSHARE_IO_RESIDENTIAL_PROXY_USERNAME_DE`.
>   - **Proxy Management**:
>     - Add `RESIDENTIAL_DE` to `ProxyLocation` in `proxy.py` and handle it in `build_proxy_config_webshare_io()` and `build_proxy_config()`.
>   - **Frontend**:
>     - Add `ResidentialDE` to `ProxyLocation` in `types.ts`.
>     - Update `ProxySelector.tsx` to include 'Residential (Germany)'.
>   - **Miscellaneous**:
>     - Update `get_tzinfo_from_proxy()` in `tasks.py` to return `ZoneInfo("Europe/Berlin")` for `RESIDENTIAL_DE`.
>
> <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 b0ca88184450448608fe17f2880c3d0dfd2748cc. 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! Incremental review on 484b4e0 in 9 seconds

More details
  • Looked at 26 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_cvSKEj8ntSU6eHMp


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 484b4e0 in 16 seconds

More details
  • Looked at 54 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. skyvern-frontend/src/api/types.ts:38
  • Draft comment:
    Ensure that the new proxy location 'ResidentialDE' is used consistently across the codebase. It seems to be correctly added here and in the related files.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The PR adds a new proxy location 'ResidentialDE' to the ProxyLocation enum and updates the ProxySelector component to include this new option. The changes are consistent across the files, ensuring that the new proxy location is available in both the frontend and backend logic.
2. skyvern-frontend/src/components/ProxySelector.tsx:42
  • Draft comment:
    The addition of 'Residential (Germany)' is consistent with the new proxy location 'ResidentialDE'. Ensure this is reflected in any related documentation or UI tests.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The PR correctly updates the ProxySelector component to include the new 'ResidentialDE' option. This ensures that users can select the new proxy location from the UI.
3. skyvern/forge/sdk/schemas/tasks.py:72
  • Draft comment:
    The addition of 'ResidentialDE' with 'Europe/Berlin' timezone is correct. Ensure this is consistent with any other timezone-related logic in the codebase.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The PR correctly updates the get_tzinfo_from_proxy function to return the appropriate timezone for the new 'ResidentialDE' proxy location. This ensures that the correct timezone is used when this proxy is selected.

Workflow ID: wflow_FrsAaYO0kbIrwt7B


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 b1d93fc in 13 seconds

More details
  • Looked at 36 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. alembic/versions/2025_01_29_0554-5dd8928389c5_add_residential_de_proxy.py:28
  • Draft comment:
    Consider adding a comment explaining why the downgrade operation is a no-op, as removing enum values in PostgreSQL is not straightforward and can cause issues.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR adds a new value to an enum type in PostgreSQL, which is a one-way operation. The downgrade function is correctly left as a no-op since removing enum values in PostgreSQL is not straightforward and can cause issues if not handled properly. However, it's important to note this limitation in the comments for future reference.

Workflow ID: wflow_zisbwrxfVzePzK7w


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

@suchintan suchintan merged commit 35f9b70 into main Jan 30, 2025
7 checks passed
@suchintan suchintan deleted the suchintan.add-de-proxy branch January 30, 2025 15:10
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