Design of internal channel handling can lead to strange effects

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

The payload names no files, only the --info output, the deleteChannel function and the enable/disable channel commands. Start by reading how disabled and absent channels are stored and listed, then reproduce the case where adding a channel fails because a disabled one with that name exists. Done means a maintainer has settled whether to remove enable/disable or add an absent state, and the chosen behaviour is implemented.

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

説明

Channels can be either disabled, primary or secondary. Both deleting or disabling a channel lead to the same role entry. But the latter one keeps its settings for the case the channel is reenabled.

On the other hand, --info does not show any disabled channels. This might lead to the situation (especially during testing), that the system refuses adding a channel because there is still a disabled one with this name located anywhere in the list.

It seems, that disable/enable has now been replaced by add/delete, so these command options are not very consistent any more. However, I don't know if disable/enable is still used by someone.

At least I suggest these improvements:

  1. Clarify the role of an deleted/not present channel with "absent" instead of disabled.
  2. let --info show disabled channels so we can get aware of them
  3. let deleteChannel output an additional message in case the channel to be deleted is absent. Deleting a channel then also will delete disabled channels.

The best would be to remove the enable/disable commands.
What do you think about it?

主要言語
Python
スター
855
フォーク
355
平均マージ
3日 3時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

meshtastic/python のほかの issue

meshtastic/python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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