Node search doesn't match bare hex Meshtastic IDs

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
73/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend, testing

調査の方向性

Start with Meshflow/common/mesh_node_helpers.py and inspect observed_node_search_conditions, then find the tests for node search and add coverage for each listed ID form. Check how search results are linked and how detail lookup resolves Meshtastic IDs over 32 bits. Done means all supported searches find the intended node, and results do not link to IDs that detail lookup cannot resolve.

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

説明

bug

Bug

Searching nodes for a bare Meshtastic hex ID (e.g. 433b82f0, with no !) doesn't find the node. In pre-prod it only
returned nodes whose name happens to contain that text. Searching PDYt (short name) finds the node.

Cause

observed_node_search_conditions in Meshflow/common/mesh_node_helpers.py only treats input as a Meshtastic node
ID when it starts with !, or when it parses as a decimal integer. Bare hex goes to the MeshCore branch
(mc_pubkey__icontains / mc_pubkey_prefix__icontains), so 433b82f0 never matches meshtastic_node_id.

Expected

The search box finds a node by any of: !433b82f0, 433b82f0, 0x433b82f0, the decimal number, long name, short
name, and MeshCore pubkey or prefix. Bare 8-digit hex should match both the Meshtastic ID and the MeshCore key.

Also

  • Search results can include rows with Meshtastic IDs over 32 bits (left by integration tests run against
    pre-prod). The UI links them as e.g. !1cf992a83, and the detail lookup 404s. The search shouldn't link to IDs
    it can't resolve.
  • Add tests for each input form.
主要言語
Python
スター
1
フォーク
0
平均マージ
23時間 9分
マージ済み PR(30日)
15

環境構築

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

はじめの一歩

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

pskillen/meshflow-api のほかの issue

pskillen/meshflow-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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