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

Đang mở
#35 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, react, typescript
Lĩnh vực
desktop, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của A21-devs/Virtual-Machine-Manager

Tất cả issue của A21-devs/Virtual-Machine-Manager

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.