-
Notifications
You must be signed in to change notification settings - Fork 18
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
Clean up space limit constants and increase it to 250 MB #446
Conversation
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.
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.
Looks good! Thanks for increasing the snapshots size. I confirm the alert appears when the wp-content zip file is bigger than 250MB and it works if its smaller.
I've added a suggestion about removing Math.floor
.
TeMPT1.mp4
src/hooks/use-archive-site.ts
Outdated
@@ -84,7 +84,7 @@ export function useArchiveSite() { | |||
__( | |||
'The site exceeds the maximum size of %dMB. Please remove some files and try again.' | |||
), | |||
Math.floor( LIMIT_ARCHIVE_SIZE / 1024 / 1024 ) | |||
Math.floor( SIZE_LIMIT_MB ) |
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.
Should we remove the Math.floor ?
Math.floor( SIZE_LIMIT_MB ) | |
SIZE_LIMIT_MB |
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: daa9183
Related to https://github.com/Automattic/dotcom-forge/issues/8515
Proposed Changes
I propose increasing the demo size limit to 250 MB and cleaning up constants to avoid calculating values twice.
Testing Instructions
Happy path
Error
Pre-merge Checklist