Idle shutdown: container start/stop API and UI buttons

オープン
#530 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, openapi
領域
backend, frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
JavaScript
スター
10
フォーク
6
平均マージ
5日 14時間
マージ済み PR(30日)
5

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mieweb/opensource-server のほかの issue

mieweb/opensource-server の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。