Skip to content

apfpv: stop writing outgoing.enabled, which majestic no longer has - #158

Merged
openipc-ai merged 1 commit into
masterfrom
outgoing-enabled-is-a-noop
Sep 14, 2026
Merged

openipc-ai merged 1 commit into
masterfrom
outgoing-enabled-is-a-noop

Conversation

@openipc-ai

@openipc-ai openipc-ai commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Alongside OpenIPC/firmware#2418 which does the same for the four call sites there.

outgoing.enabled was one switch for the whole list of places a camera publishes to. Each destination has carried its own in majestic's 2026-09 builds, and the section switch was removed rather than kept as a second gate — so cli -s .outgoing.enabled true writes a key nothing reads. majestic strips it on load and the next save drops it. cli stores whatever dotted path it is given and exits 0, which is why this never complained.

One line, in devices/apfpv/general/overlay/usr/share/openipc/customizer.sh.

The .outgoing.server line below it stays and is untouched. cli edits majestic.yaml directly through yaml-cli, majestic converts that address into a row of its destination list on load, and the camera publishes exactly as before. yaml-cli cannot write a list element — its path validator rejects the brackets — so the single-address spelling is the one this script must keep using, and majestic's 2026-09 builds keeps reading it for that reason.

sh -n clean. .github/scripts/lint-cli-paths.py reports the same 5 pre-existing findings before and after this change, all of them $(cli -g …) captures in the openipc/ submodule.

`outgoing.enabled` was one switch for the whole list of places a camera
publishes to. Each destination has carried its own since
OpenIPC/majestic#701, and the section switch was removed rather than kept
as a second gate — so this line writes a key nothing reads. majestic
strips it from the tree on load and the next save drops it from the file.

The `.outgoing.server` line below it stays and is untouched: `cli` edits
majestic.yaml directly, majestic converts that address into a row of its
destination list on load, and the camera publishes exactly as before.
There is no way to write a list element through yaml-cli — its path
validator rejects the brackets — so the single-address spelling is the one
this script must keep using.
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Stop APFPV customizer from writing obsolete outgoing.enabled

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Removes the obsolete global outgoing enablement setting rejected by current Majestic versions.
• Preserves the supported outgoing server address and existing camera publishing behavior.
High-Level Assessment

Removing the unused global key is the optimal approach. Retaining it is misleading because Majestic no longer reads it, while changing .outgoing.server to list syntax is not viable because yaml-cli rejects bracketed paths.

Files changed (1) +0 / -1

Bug fix (1) +0 / -1
customizer.shRemove obsolete outgoing enablement setting +0/-1

Remove obsolete outgoing enablement setting

• Stops writing '.outgoing.enabled', which current Majestic versions ignore and remove. The supported '.outgoing.server' setting remains unchanged, preserving UDP publishing behavior.

devices/apfpv/general/overlay/usr/share/openipc/customizer.sh

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can ask Qodo to dismiss a finding you disagree with, with your reason on record

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@openipc-ai
openipc-ai merged commit c98aded into master Sep 14, 2026
7 checks passed
@openipc-ai
openipc-ai deleted the outgoing-enabled-is-a-noop branch September 14, 2026 09:28
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.

1 participant