Skip to content

feat(lite): add start shutdown action host - #10314

Open
Elise-FZI wants to merge 3 commits into
lite/action-force-reboot-hostfrom
lite/action-start-shutdown-host
Open

feat(lite): add start shutdown action host#10314
Elise-FZI wants to merge 3 commits into
lite/action-force-reboot-hostfrom
lite/action-start-shutdown-host

Conversation

@Elise-FZI

@Elise-FZI Elise-FZI commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Description

🔗 XO-2698

⚠️ WARNING ⚠️
!! Do not run tests on the classic test environment !!

  • Add the possibility to start and shutdown host

Note : the "start" cannot be tested because tests are done on nested hosts, which cannot be reactivated. We start from the premise that it is validated as the call is indeed launched towards the backend.

Screenshots

Light Dark
Host/Start image image
Host/Shutdown image image

Checklist

  • Commit
    • Title follows commit conventions
    • Reference the relevant issue (Fixes #007, See xoa-support#42, See https://...)
    • If bug fix, add Introduced by
  • Changelog
    • If visible by XOA users, add changelog entry
    • Update "Packages to release" in CHANGELOG.unreleased.md
  • PR
    • If UI changes, add screenshots
    • If not finished or not tested, open as Draft

Review process

If you are an external contributor, you can skip this part. Simply create the pull request, and we'll get back to you as soon as possible.

This 2-passes review process aims to:

  • develop skills of junior reviewers
  • limit the workload for senior reviewers
  • limit the number of unnecessary changes by the author
  1. The author creates a PR.
  2. Review process:
    1. The author assigns the junior reviewer.
    2. The junior reviewer conducts their review:
      • Resolves their comments if they are addressed.
      • Adds comments if necessary or approves the PR.
    3. The junior reviewer assigns the senior reviewer.
    4. The senior reviewer conducts their review:
      • If there are no unresolved comments on the PR → merge.
      • Otherwise, we continue with 3.
  3. The author responds to comments and/or makes corrections, and we go back to 2.

Notes:

  1. The author can request a review at any time, even if the PR is still a Draft.
  2. In theory, there should not be more than one reviewer at a time.
  3. The author should not make any changes:
    • When a reviewer is assigned.
    • Between the junior and senior reviews.
  4. If the PR relates to a change in the openAPI specification, a member of the DevOps team must also participate in the review.

@Elise-FZI
Elise-FZI changed the base branch from master to lite/action-force-reboot-host August 27, 2026 09:00
@Elise-FZI Elise-FZI self-assigned this Aug 27, 2026
@Elise-FZI
Elise-FZI force-pushed the lite/action-start-shutdown-host branch 2 times, most recently from ca37e28 to b1305ad Compare August 27, 2026 13:10
@Elise-FZI
Elise-FZI force-pushed the lite/action-start-shutdown-host branch 3 times, most recently from 66e4654 to 25c5017 Compare August 27, 2026 14:44
@plane-sync-vates

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

@Elise-FZI
Elise-FZI force-pushed the lite/action-start-shutdown-host branch from 25c5017 to c25af7f Compare August 27, 2026 15:18
@Elise-FZI
Elise-FZI force-pushed the lite/action-start-shutdown-host branch 2 times, most recently from 56d9ed4 to b125374 Compare September 1, 2026 12:15
@Elise-FZI Elise-FZI changed the title [WIP]feat(lite): add start shutdown action host feat(lite): add start shutdown action host Sep 1, 2026
@Elise-FZI
Elise-FZI marked this pull request as ready for review September 1, 2026 12:25
@Elise-FZI
Elise-FZI requested a review from MarieGarde September 1, 2026 12:25

await reboot(hostRef)
},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change

function startHost() {
return openActionModal({
props: {
accent: 'warning',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
accent: 'warning',
accent: 'info',

action: 'start',
object: 'host',
hostName: host.name_label,
icon: 'status:warning-picto',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
icon: 'status:warning-picto',
icon: 'status:info-picto',

function shutdownHost() {
return openActionModal({
props: {
accent: 'warning',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
accent: 'warning',
accent: 'info',

action: 'shutdown',
object: 'host',
hostName: host.name_label,
icon: 'status:warning-picto',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
icon: 'status:warning-picto',
icon: 'status:info-picto',

@MarieGarde
MarieGarde requested a review from J0ris-K September 2, 2026 12:49
@Elise-FZI
Elise-FZI force-pushed the lite/action-start-shutdown-host branch from 755467e to 424a416 Compare September 4, 2026 08:48
@Elise-FZI
Elise-FZI force-pushed the lite/action-start-shutdown-host branch from 424a416 to 3187b33 Compare September 4, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants