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

Ability to add total project size limit(internal changes) #8128

Merged
merged 9 commits into from
Jun 24, 2020

Conversation

VikramJayanthi17
Copy link
Contributor

@VikramJayanthi17 VikramJayanthi17 commented Jun 18, 2020

Screen Shot 2020-06-17 at 5 48 38 PM

As mentioned in #7446, I implemented a way for admins to add custom limits to a project's total size with 100 GB being the default. This is done through the admin dashboard, similar to how the file upload limit is set. It also displays the total size limit of the project underneath the upload limit. I have separated the internal functionality(to set the limit) from the enforcement(user-facing) so that projects that are above the default may be "grandfathered" into their higher limits before enforcement stops them from uploading more distributions.

A separate PR will include the user-facing changes to be made(the actual enforcement of the limit , the appropriate output, and a help section on how to get a higher limit/exemption).

Please let me know if you all have any suggestions/changes, thanks.

warehouse/forklift/legacy.py Outdated Show resolved Hide resolved
warehouse/templates/pages/help.html Outdated Show resolved Hide resolved
warehouse/templates/pages/help.html Outdated Show resolved Hide resolved
tests/unit/admin/views/test_projects.py Outdated Show resolved Hide resolved
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