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

[MRG] Add bmc proxies #231

Merged
merged 15 commits into from
Oct 18, 2023
Merged

[MRG] Add bmc proxies #231

merged 15 commits into from
Oct 18, 2023

Conversation

joaquingx
Copy link
Contributor

@joaquingx joaquingx commented Sep 1, 2023

Description

  • Add bmc proxies

Issue

  • Github Issue ID.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • My code follows the style guidelines of this project.
  • I have made corresponding changes to the documentation.
  • New and existing tests pass locally with my changes.
  • If this change is a core feature, I have added thorough tests.
  • If this change affects or depends on the behavior of other estela repositories, I have created pull requests with the relevant changes in the affected repositories. Please, refer to our official documentation.
  • I understand that my pull request may be closed if it becomes obvious or I did not perform all of the steps above.

estela-api/api/views/job.py Outdated Show resolved Hide resolved
estela-api/api/views/project.py Outdated Show resolved Hide resolved
estela-api/api/serializers/deploy.py Outdated Show resolved Hide resolved
if delete:
for env_var in env_vars_instance:
if env_var.name not in [value["name"] for value in env_vars]:
env_var.delete()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add a delete argument for this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

estela-web/src/components/ProxySettingsPage/index.tsx Outdated Show resolved Hide resolved
estela-api/api/views/job.py Outdated Show resolved Hide resolved
estela-api/api/views/proxyprovider.py Outdated Show resolved Hide resolved
estela-api/api/views/proxyprovider.py Outdated Show resolved Hide resolved
estela-api/api/views/proxyprovider.py Outdated Show resolved Hide resolved
installation/Makefile Show resolved Hide resolved
to="core.spider",
),
),
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't be deleting this migrations file. We also need to generate new migrations for the Proxy model.

datacenter_proxy_usage = models.PositiveBigIntegerField(
default=0,
help_text="Amount in bytes occupied by datacenter proxy responses in the database",
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to give this a bit more thought. What if we want to add ISP or mobile proxies? We would also need to add a field for each. I am not sure if there are more kinds of proxies, but it isn't a good design having to add more fields for each of them here 🤔

proxy_usage_data = models.JSONField(
default=dict,
help_text="Proxy Usage data.",
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be good to add a comment on how the proxy_usage_data would look. What fields would this JSON have?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mgonnav mgonnav changed the base branch from main to estela-proxies October 18, 2023 15:57
@mgonnav mgonnav merged commit c234699 into estela-proxies Oct 18, 2023
1 check passed
@mgonnav mgonnav deleted the add-bmc-proxies branch October 18, 2023 16:06
mgonnav added a commit that referenced this pull request Nov 1, 2023
* [MRG] Add bmc proxies (#231)
* Add Estela Proxies.

---------

Co-authored-by: mgonnav <[email protected]>

* Update RESERVED_PROXY_NAMES variable name. Add download size settings as variables
* Add PROXY_PROVIDERS_TO_TRACK, MAX_WEB_DOWNLOAD_SIZE_MB, and MAX_CLI_DOWNLOAD_CHUNK_MB to the API docs

---------

Co-authored-by: joaquin garmendia <[email protected]>
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