-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
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() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to="core.spider", | ||
), | ||
), | ||
] |
There was a problem hiding this comment.
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", | ||
) |
There was a problem hiding this comment.
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.", | ||
) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* [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]>
Description
Issue
Checklist before requesting a review