oxidecomputer / oxidecomputer/console

Validate disk size against image size on disk create form

Open
#1,773 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

polish
Dominant language
TypeScript
Stars
228
Forks
22
Avg merge
19h 42m
Merged PRs (30d)
32

Description

On instance create, we validate the size of the boot disk against the size of the chosen image, and when you change the image, we update the size to be big enough for it if necessary.

https://github.com/oxidecomputer/console/blob/0cc1e03a24b3f5da275d15b969978a385d6b3b27/app/forms/instance-create.tsx#L331-L341

On the standalone disk create form, we don't do that, and we should.

https://github.com/oxidecomputer/console/blob/0cc1e03a24b3f5da275d15b969978a385d6b3b27/app/forms/disk-create.tsx#L96

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the existing boot-disk validation and image-change handling in app/forms/instance-create.tsx around lines 331-341 with the standalone form in app/forms/disk-create.tsx around line 96. The work is complete when disk creation validates the requested size against the selected image and increases the size when necessary, matching instance creation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.