[2.8] Store Meshtastic identity evidence + predicted 2.8 node ID

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

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

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

評価

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

調査の方向性

Start with the ObservedNode and ManagedNode models and the NodeInfoPacket history they are backfilled from, then look at the existing migrations and management commands for the pattern to follow. Add a normalised hex public key and an indexed crc32 id to ObservedNode, and meshtastic_public_key to ManagedNode, then extend the admin list filter. Done when the migration applies, the backfill is idempotent, malformed keys yield null, and a known test key predicts the expected id. Firmware reference: NodeDB.cpp:543.

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

説明

enhancement meshtastic-2.8

Part of pskillen/meshflow-api#437 (Meshtastic 2.8.x support). Code: ID-1 · Priority: Must · Size: M

Summary

In 2.8, node number = crc32(public_key) (firmware NodeDB.cpp:543). Upgrades reuse the existing private key, so we can predict each node's 2.8 number from keys we already store. Do this before any other upgrade work so links can be made the moment upgraded nodes appear.

  • ObservedNode: add a normalised public key (hex) and meshtastic_key_node_id (crc32 of the 32-byte key), indexed.
  • ManagedNode: add meshtastic_public_key.
  • Backfill command from ObservedNode and NodeInfoPacket history.

Acceptance criteria

  • Migration + idempotent backfill management command
  • Known test key predicts the expected id; cross-checked on real hardware (2.7 → 2.8.2 upgrade of a spare node)
  • Malformed / non-32-byte keys produce null, not errors
  • Admin list filter/search on predicted id

Depends on: none

Refs: Report §4.1 linking design. Worked example: !da545c78 → !4396524c (unverified).

主要言語
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 を短くまとめたダイジェスト。