[2.8] Stop clobbering node identity from 2.8 feeder NodeDB data
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #469 by @pskillen — merged
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 42/100
Research direction
Start with the node upsert in packets/serializers.py around lines 1386 and 1528-1543, then the int/str comparison at packets/services/node_info.py line 17. TypeConversions.cpp (lines 150-151) is firmware-side context, not code in this repo. Done means 2.8 NodeDB fixtures keep the stored MAC, name and public key, with a unit test for each of the four rules.
Written by the indexing model from the issue text.
Description
Part of pskillen/meshflow-api#437 (Meshtastic 2.8.x support). Code: ID-8 · Priority: Must · Size: S
Summary
2.8 feeders hand the bot NodeDB entries with zero-filled macaddr (TypeConversions.cpp:150-151) and long names truncated to 24 bytes. Our node upsert (packets/serializers.py:1386, 1528-1543) overwrites good data with these, destroying the MAC evidence ID-2 needs and flip-flopping names.
- Ignore blank / all-zero MAC.
- Never replace a name with its own ≤24-byte prefix.
- Never clear a stored public key.
- Prefer values from over-the-air NodeInfo packets over feeder NodeDB upserts.
- Fix latent int/str comparison bug at
packets/services/node_info.py:17.
Acceptance criteria
- 2.8 NodeDB fixtures leave MAC, name and key intact
- Unit tests for each rule
Depends on: none
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 23h 9m
- Merged PRs (30d)
- 15
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pskillen/meshflow-api
-
enhancement meshtastic-2.8
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
pskillen/meshflow-api#459 ·
Maintainers usually reply within 1 day
-
bug tech-debt
Difficulty 5/5 Over a week Newbie friendliness 30/100
pskillen/meshflow-api#480 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 55/100
pskillen/meshflow-api#479 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
pskillen/meshflow-api#478 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 73/100
pskillen/meshflow-api#472 ·
Maintainers usually reply within 1 day
All issues in pskillen/meshflow-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
autowarefoundation/autoware_carla_scenario#1485 ·
Maintainers usually reply within 1 day
-
needs-area-label
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 2 days
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
Maintainers usually reply within 2 days
-
changelog investigate
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ramnes/notion-sdk-py#441 ·
-
copy_tree splits same-file errors into charactersPossibly taken @Gambit-Checkmate claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 14 days