[2.8] Feeder node-number change: auto-update with CRC check, alias and owner notification

Aperta
#442 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

The payload names no files or tests. Start by reading the issue's dependencies: meshflow-api#438 (one key per feeder), #439 and meshflow-bot#145, since the key-to-ManagedNode mapping they introduce decides where this change goes. Done means the atomic number update with a CRC32 check, alias retention, audit entry and owner notification, a flag path for mismatched keys, and a manual re-point action, each covered by tests. Websocket, traceroute scheduling and stats must use the new number.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement meshtastic-2.8

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

Summary

With one key per feeder (pskillen/meshflow-api#438), the key identifies the ManagedNode. When the bot reports a different node number:

  • if crc32(reported public key) == new number and the key matches the stored meshtastic_public_key → update meshtastic_node_id atomically, keep the old number as an alias, write an audit entry, notify the owner;
  • otherwise flag for review (likely a config copied to another radio) — don't silently re-point.

Also provide a manual re-point action for staff/owner.

Acceptance criteria

  • Existing observations stay attached to the same ManagedNode row
  • Websocket, traceroute scheduling and stats use the new number after update
  • Mismatched key → flagged, ingest behaviour documented
  • Tests

Depends on: pskillen/meshflow-api#438 (F-1), pskillen/meshflow-api#439 (ID-1), pskillen/meshflow-bot#145 (ID-5)

Lingua principale
Python
Stelle
1
Fork
0
Merge medio
23h 9m
PR unite (30g)
15

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pskillen/meshflow-api

Tutte le issue di pskillen/meshflow-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.