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

Fix size validation on disk create from 1023 GiB snapshot #2641

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Jan 9, 2025

Closes #2640

We set the disk size to the size of the selected snapshot or image, rounded up to the nearest 10, but we were not clamping it to make sure it was at most 1023. The input element refuses to set a value above the max, so it shows 1023, but the form state in memory (which is what gets validated and what gets sent to the API) keeps the bad value. I guess I should add a test.

Image

Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Jan 9, 2025 3:57am

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.

Disk size validation hiccup when creating from a 1023 GiB disk snapshot
1 participant