Skip to content

2.8: Refactor NodeInfoLite structure and add legacy support for migration#910

Merged
thebentern merged 4 commits into
developfrom
nodedb-split
May 9, 2026
Merged

2.8: Refactor NodeInfoLite structure and add legacy support for migration#910
thebentern merged 4 commits into
developfrom
nodedb-split

Conversation

@thebentern

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow pull-request / build (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed❌ failed (6)May 7, 2026, 1:56 PM

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the device-only persisted NodeDB schema to reduce per-node RAM/flash footprint by slimming NodeInfoLite, while adding a legacy descriptor to decode older /prefs/nodes.proto saves during migration.

Changes:

  • Removed (reserved) NodeInfoLite embedded UserLite, PositionLite, and DeviceMetrics, replacing them with flattened user fields and new per-node “satellite” entry arrays in NodeDatabase.
  • Added nanopb sizing overrides for the new flattened NodeInfoLite fields.
  • Introduced deviceonly_legacy.proto + .options to decode the pre-split NodeDB format during v24 → v25 migration.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
meshtastic/deviceonly.proto Slims NodeInfoLite and adds satellite per-node arrays to NodeDatabase.
meshtastic/deviceonly.options Adds nanopb sizing/int_size overrides for flattened NodeInfoLite user fields.
meshtastic/deviceonly_legacy.proto Adds legacy NodeDB schema for migration decoding of older saves.
meshtastic/deviceonly_legacy.options Adds nanopb integer sizing for legacy migration messages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread meshtastic/deviceonly.proto
Comment thread meshtastic/deviceonly.proto
Comment thread meshtastic/deviceonly_legacy.proto Outdated
@thebentern

Copy link
Copy Markdown
Contributor Author

@copilot buf format

Copilot AI commented May 7, 2026

Copy link
Copy Markdown
Contributor

@copilot buf format

Done — ran buf format -w and committed the formatting fixes in 794d61d. The two changes were unwrapping the continuation-indented long lines in deviceonly.proto and deviceonly_legacy.proto into single lines.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@thebentern thebentern merged commit 1495868 into develop May 9, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants