Work Intent: strip docker stats' clear-screen codes from dockerContainerStats ids

オープン 初心者向け
#2,132 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, typescript

調査の方向性

DockerStatsService.processStatsLine と既存の統計行ハンドラーから始めます。issue によると、現在のパターンは一部のエスケープシーケンスしか除去しません。docker-stats.service.spec.ts を追加し、docker stats の行をハンドラーに渡して、公開された ID を確認します。ID に画面消去シーケンスが含まれなくなり、通常の ID が変更されずに残れば完了です。

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

説明

Overview

Fix #2131: the first container of every docker stats refresh is published with \x1B[J\x1B[H in its ID, so clients that match stats to containers by ID never get that container's stats.

Technical Approach

Widen the pattern in DockerStatsService.processStatsLine from /\x1B\[[0-9;]*[mK]/g to every CSI sequence, /\x1B\[[0-9;?]*[ -/]*[@-~]/g, and add docker-stats.service.spec.ts, which feeds docker stats lines through the real line handler and checks the published IDs. A one-line fix, separate from the socket-based rewrite in #2008, which would make it unnecessary if it lands.

Scope

  • API
  • Plugin
  • Web UI
  • Build/Deploy Process
  • Documentation

Timeline & Impact

  • Estimated time needed: done (one line changed, two new tests); review only.
  • Potential impacts: only processStatsLine; IDs without escape codes are unchanged.

Pre-submission Checklist

  • I have searched for similar work/issues
  • I understand this needs approval before starting
  • I am willing to make adjustments based on feedback
主要言語
TypeScript
スター
123
フォーク
25
平均マージ
2日 16時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

unraid/api のほかの issue

unraid/api の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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