Idle shutdown: container start/stop API and UI buttons

Đang mở
#530 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 4 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, openapi
Lĩnh vực
backend, frontend

Hướng nghiên cứu

Start by reading the wake-on-request API work this issue depends on, then locate the container API routes and the container list and detail UI. Implement start and stop with the stated permissions, stop reason behavior, and idle-stopped display; update the OpenAPI spec and add endpoint tests. Done means the acceptance criteria pass, including that a manually stopped container is not auto-woken.

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

Mô tả

enhancement idle-shutdown

Part of the Idle Container Shutdown epic. Depends on the wake-on-request API.

Summary

Owner/admin start and stop for containers via API and UI, so users whose access doesn't go through the proxy (e.g. SSH-only) can bring an idle-stopped container back.

Details

  • POST /api/v1/sites/:siteId/containers/:id/start and /stop.
  • Permissions: owner and admin can start/stop. Collaborators: start only (TBD in review).
  • Manual stop sets stoppedReason = manual so wake-on-request won't restart it.
  • Start clears stop state.
  • UI: Start/Stop buttons on the container list/detail, showing "Stopped (idle)" vs "Stopped".
  • Update OpenAPI spec.

Acceptance criteria

  • Start/stop endpoints with permission checks and tests.
  • UI buttons and idle-stopped state shown.
  • Manual stop is not auto-woken.
Ngôn ngữ chính
JavaScript
Star
10
Fork
6
Merge trung bình
5 ngày 14 giờ
Pull request đã merge (30 ngày)
5

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 mieweb/opensource-server

Tất cả issue của mieweb/opensource-server

Issue tương tự

Thêm issue về JavaScript

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.