oxidecomputer / console

Oxide Web Console
https://console-preview.oxide.computer
Mozilla Public License 2.0
133 stars 10 forks source link

Add 'Edit quotas' action to Utilization page #2406

Open charliepark opened 1 month ago

charliepark commented 1 month ago

Backstory:

It would be useful on the /utilization page, when looking at the quota / provisioned / available view to have the ability to edit the quota, as that's a spot where an admin might think "oof; let's bump that quota up a bit".

So this ticket has two parts:

  1. Add an Edit quotas action to the table row, once a branch for #2344 is merged
  2. Add the same edit form present on /system/silos/maze-war?tab=quotas to the page at /system/utilization. As the form doesn't depend on query params, I believe it should work just by passing a prop for the silo to the form.
david-crespo commented 1 month ago

Re: the form, yeah, we could make it a route and put the silo in the path. But it would be kind of a silly-looking route. I think it’s fine to just put the silo name in component state.