Skip to content

fix(data): Persist TAK module config#5933

Merged
jamesarich merged 1 commit into
meshtastic:mainfrom
jeremiah-k:bugfix/tak-module-config-persistence
Jun 24, 2026
Merged

fix(data): Persist TAK module config#5933
jamesarich merged 1 commit into
meshtastic:mainfrom
jeremiah-k:bugfix/tak-module-config-persistence

Conversation

@jeremiah-k

Copy link
Copy Markdown
Contributor

Overview

This pull request fixes TAK module configuration persistence.

Received TAK module configs were handled by the generated protobuf model, but ModuleConfigDataSource.setLocalModuleConfig(...) did not copy the TAK branch into LocalModuleConfig. As a result, TAK config updates could be received but not persisted locally. The module-config debug summary also did not recognize TAK configs and reported them as unknown.

Key Changes

  • Persist config.tak into LocalModuleConfig.
  • Label TAK module configs as tak in MeshConfigHandlerImpl summaries.
  • Add the required cyclomatic-complexity suppression to match the existing oneOf branch structure.

Testing

  • This mirrors the existing type-safe per-variant persistence branches.
  • The change is compiler-checked against the generated protobuf accessors.
  • Existing CI coverage is sufficient for this small persistence fix.

Migration Notes

  • No protobuf changes.
  • No generated files changed.
  • No DataStore migration required.

Add the tak oneOf branch to ModuleConfigDataSource.setLocalModuleConfig
so received TAK configs persist to LocalModuleConfig instead of being
silently dropped.

Add the matching tak label to the ModuleConfig.summarize helper in
MeshConfigHandlerImpl so handleModuleConfig's debug log reports "tak"
instead of "unknown".

Both branches mirror existing per-variant entries in each when block.
@github-actions github-actions Bot added the bugfix PR tag label Jun 24, 2026
@jeremiah-k jeremiah-k marked this pull request as ready for review June 24, 2026 16:00
@jamesarich jamesarich added this pull request to the merge queue Jun 24, 2026
Merged via the queue into meshtastic:main with commit 45a27ab Jun 24, 2026
22 checks passed
@jeremiah-k jeremiah-k deleted the bugfix/tak-module-config-persistence branch June 24, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants