Toolbar Save state still works while a profile save is in progress

Offen
#35 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
electron, react, typescript
Bereich
desktop, devtools

Rechercherichtung

Start with saveState and the Profiles.isBusy(name) check that start and remove already use, then find where the toolbar's Save state, Restart and Shut down handlers call into the main process. Done means a Save state click during a profile save is refused with a clear message while the profile save completes normally. Reproducing it needs a guest with the agent set up, so check whether a test or mock covers the guest agent path before relying on manual testing.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

Found while reviewing #34.

Saving a profile of a running VM asks the guest to hibernate and then waits for it to power off. During that wait the VM still shows as running, so the toolbar's Save state button is enabled. Clicking it sends a second hibernate request through the guest agent, and the toolbar switches into its own "saving" state for a save that belongs to the profile.

start and remove already refuse while Profiles.isBusy(name) is set. saveState (and probably Restart / Shut down from the toolbar) should do the same, or the renderer should know a profile operation is running so it can disable those buttons with a reason.

To check:

  • start a profile save on a guest with the agent set up
  • click Save state before the guest powers off
  • expected: refused with a clear message, profile save finishes normally
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
0
Ø Merge
2 Min.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus A21-devs/Virtual-Machine-Manager

Alle Issues in A21-devs/Virtual-Machine-Manager

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.