Skip to content

Conversation

benjaminleonard
Copy link
Contributor

@benjaminleonard benjaminleonard commented Jan 9, 2025

Fixes #2469
Fixes #2376

CleanShot 2025-01-09 at 12 03 09

  • Validate conditional rendering is correct
  • Automatically set autoRestartEnabled to match actual API behaviour
  • Add icon to design system
  • Write docs text
  • Add settings items help text
  • Show last auto restarted?

I'm sure someone will talk me down from the slow spinning icon when auto restart is enabled.

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 Feb 11, 2025 7:06pm

Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks lovely! I'm not particularly qualified to review the implementation of the frontend code, but I left a couple very minor suggestions on the text we display in the UI. Thanks for all your work on getting this exposed in the console, it looks great!

Comment on lines +102 to +114
// not all updates are restricted by state

// resize means changes to ncpus and memory
// https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-queries/src/db/datastore/instance.rs#L1282-L1288
// https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-model/src/instance_state.rs#L39-L42
resize: ['stopped', 'failed', 'creating'],

// https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-queries/src/db/datastore/instance.rs#L1209-L1215
updateBootDisk: ['stopped', 'failed', 'creating'],

// there are no state restrictions on setting the auto restart policy, so we
// don't have a helper for it
// https://github.com/oxidecomputer/omicron/blob/0c6ab099e/nexus/db-queries/src/db/datastore/instance.rs#L1050-L1058
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@david-crespo david-crespo merged commit 2720e14 into main Feb 11, 2025
7 checks passed
@david-crespo david-crespo deleted the instance-auto-restart branch February 11, 2025 20:31
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.

Expose instance auto-restart status in the console Cap how long an instance can poll for
3 participants