Repository navigation
Conversation
Previous review (2026-10-30)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head The reconciliation fix works for port moves, saved renames and FC availability, but it can bring back a derived row the user has just deleted. Should fix
Minor
Minor test coverage (1)
|
Previous review (2026-10-30)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head The two follow-up commits fix the main problem, and what is left is non-blocking: a pre-existing loss of saved rows, plus minor edge cases and test gaps. Since the last review at c3da9d8, a derived row that the user deletes now stays deleted through inline component edits, port changes and save, until it is re-added or the step is reloaded. Should fix
Minor
Minor test coverage (2)
|
Previous review (2026-10-31)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head The latest commit fixes the saved-row loss, but it adds a narrow regression when a renamed serial row is deleted and then re-added. Not blocking, but worth fixing before merge. Since the review at ad15fb4, saving now rebases connection renames, so serial rows survive upload-and-stay plus a later edit. A deleted renamed row also stays deleted through a port round trip. Should fix
Minor (2)
Head moved during review: observed |
Follow-up validation — latest ParameterEditor changesI've pushed the latest correction in The changes ensure that automatically derived serial assignments can be retired when their derivation no longer applies, while preserving existing saved settings, user additions and manual overrides. Validation:
The consolidated ArduPlane work combines the corrections currently in draft PRs #2284, #2285, #2287 and #2288. It remains local and unpushed, pending #2289. The ownership tracking is deliberately session-only; no persistent project metadata or flight-controller reset values were introduced. The separate, pre-existing |
Coverage Report for CI Build 42996752006Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage increased (+0.3%) to 95.07%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions253 previously-covered lines in 13 files lost coverage.
Coverage Stats💛 - Coveralls |
Previous review (2026-10-31)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head The two new commits fix most of the earlier re-add problem, but one adds a regression where a saved serial protocol does not come back when its port is re-selected. Nothing is blocking. Since the review at 7685d35, re-adding a deleted renamed row straight away now follows later port changes, edited values move with the port, and manual overrides on renamed rows are kept. Should fix
Minor (3)
|
Follow-up to AP-Review #4I've pushed
Both issues were reproduced before correction, and regression tests now cover five serial-parameter lifecycle scenarios. Validation:
One existing behaviour remains unchanged: returning a re-added parameter to its original saved port restores the saved source value. I'd welcome maintainer guidance on whether that should instead preserve the edited value. The previously identified No persistent ownership metadata or FC reset values were introduced. |
Previous review (2026-11-01)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Both earlier should-fix items are fixed, but the way the re-add fix keeps rename mappings adds a new value-reset regression, and there is one further stale-row case in automatic retirement. Nothing is blocking. Since the review at ad0b3b4, a saved serial protocol comes back when its port is re-selected (with or without a save in between), and a row re-added after an intervening edit now follows the next port move. Should fix
Minor (4)
|
Follow-up to AP-Review #5Thanks for the continued review. Both Should fix findings have now been reproduced and corrected in the latest commit.
Both failures were reproduced before the corrections. Local validation:
Tkinter GUI tests were not rerun locally because of the existing macOS environment issue. Two existing behaviours remain deliberately unchanged pending maintainer guidance: restoration of the original saved value when returning to the original port, and the pre-existing No persistent ownership metadata or FC reset values were introduced. |
Previous review (2026-11-01)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Nothing is blocking, but the latest fix for re-added rows adds a new regression, and there is a second, older regression in initial step loading. Since the review at 271d1e4, both should-fix items are fixed at head 85cf228: re-adding the saved source after a delete and return keeps the edited value, and a retired protocol no longer comes back after SERIAL2, None, SERIAL3, None and a save. Should fix
Minor (4)
|
ArduCopter Basic cross-validation — shared ParameterEditor behaviourI've now tested #2289 against existing ArduCopter Basic configuration, using the Holybro_X500 and Holybro_X500_V2 templates. This was intended to establish whether the serial lifecycle issues were Plane-specific. Results:
These counts aren't directly comparable as regression counts because several inline workflows aren't supported on master. The investigation identified three significant behaviours:
Other exercised Copter RC, telemetry, ESC, battery and GNSS paths generally passed on #2289. These were headless ParameterEditor integration tests using real templates with mocked filesystem/FC boundaries. In-memory export/reload was tested; physical disk serialization and Tkinter GUI behaviour were not. I'd appreciate guidance on the intended ownership policy: should automatically derived protocol assignments be retired when their connection is deselected, while preserving independently configured baud/options values? And should provenance survive saving and reopening a step? I've made no further code changes pending that decision. The unrelated, pre-existing unsaved-baud edit issue can be handled separately if preferred. |
Previous review (2026-11-01)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Nothing is blocking at head 7eabc80; what remains is minor or waits on a maintainer decision. Since the review at 85cf228, both should-fix items and the stale-target minor item are fixed: the rename pop only runs for a suppressed source, step load drops ownership of a derived destination that a saved rename replaces, and a suppressed mapping falls back to the source name. Minor (3)
Note
|
7eabc80 to
02c97e3
Compare
amilcarlucas
left a comment
There was a problem hiding this comment.
I did some changes and rebased it. Let's see if all tests pass.
Previous review (2026-11-02)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Nothing is blocking at head 02c97e3, but the new disable-port prompt has one should-fix gap. Since the review at 7eabc80, all three minor items are fixed. Unsaved serial edits follow port moves, BATT_I2C_BUS is restored inline, and both test gaps are now pinned. The new disable prompt also answers the ownership question. Should fix
Minor (1)
Note
|
Follow-up to AP-Review #8 — serial disable lifecycleI've pushed The reported failure was reproduced before correction: selecting SERIAL1 → SERIAL2, accepting The fix preserves the explicitly staged disabled value when the retained source row already exists. Normal rename restoration remains unchanged. Validation:
The return-to-SERIAL1 conflict behaviour was reproduced but deliberately left unchanged, pending guidance on the intended policy. Only the implementation and regression-test files changed. |
Previous review (2026-11-02)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Nothing is blocking at head 5279e61, but one should-fix remains in the conflict-resolution path. Since the review at 02c97e3, the should-fix is fixed: an accepted disable of the old serial port now survives a second move before saving, and the new tests pin it. Should fix
Minor (2)
Note
|
b9bd20e to
036f5ea
Compare
Previous review (2026-11-02)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Nothing is blocking at head b9bd20e, but one should-fix remains in the telemetry port-move path. Since the review at 5279e61 (now rebased, plus b9bd20e), the delete-and-return conflict fix, the deferred inline-editor rebuild and the clean no-edit round trip are all in, and the policy notes are settled. Should fix
Note
Head moved during review: observed |
Previous review (2026-11-03)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Nothing is blocking at head 036f5ea, but two should-fix items remain in the serial-port rename paths. Since the review at b9bd20e, the save/reload/move telemetry bug is fixed. SERIAL1 → SERIAL2 with disable, save, re-enter, then SERIAL3 now exports SERIAL3_PROTOCOL=2. Should fix
Minor (2)
|
Follow-up to AP-Review #11Pushed
Both failures were reproduced before correction. 548 affected-module tests passed, along with focused lint and type checks. CI is running. Requesting a fresh AP-Review on the updated head. |
Previous review (2026-11-10)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Nothing is blocking at head 26c1d90, but two should-fix serial-port cases and three minor notes remain. Since the review at 036f5ea, both should-fix items are fixed for the reported cases: SERIAL1 → None → SERIAL2 now moves the serial rows, and a saved Should fix
Minor (3)
|
Follow-up to AP-Review #12Pushed a consolidated set of fixes for serial connection changes:
Validation: 615 model tests and 14 mocked GUI tests passed. Ruff, Pylint and targeted type checks passed. Requesting a fresh AP-Review of the updated changes. |
Previous review (2026-11-11)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head One regression in the new ownership gate blocks this at head a28e15d, plus three should-fix serial-port cases and two minor notes. Since the review at 26c1d90, both should-fix items are fixed: rows now follow CAN/RCin/None intermediates and re-entry, returning to a disabled port restores its protocol, and the None-path conflict check uses the same source port as the rename. Blocking
Should fix
Minor (2)
|
Follow-up to AP-Review #13Pushed
Also clarified GUI warnings and added regression coverage. Validation: 628 model tests and 14 mocked GUI tests passed; focused lint and type checks passed. Requesting AP-Review #14. |
Previous review (2026-11-11)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head One blocking regression remains at head e926090: after a step-load rename, an inline port move leaves the baud behind on shipped mixed-port telemetry templates. Since a28e15d, the single-source step-load move, Blocking
Should fix
Minor (3)
|
Follow-up to AP-Review #14Pushed
Both failures were reproduced before correction. Validation: 632 model tests and 14 mocked GUI tests passed, along with focused lint and type checks. The three minor findings remain unchanged for maintainer consideration, particularly the explicit-deletion policy questions. Requesting AP-Review #15. |
Previous review (2026-11-11)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head One blocker remains at head 44b3d2b: after a step-load rename, moving the telemetry port through None, CAN1 or "other" still leaves the baud on the old port. Since e926090, the direct move now carries the native baud on Tarot_X4, FETtec-5 and normal_plane, and the retry after deleting an unrelated row now moves the live rows. Blocking
Should fix
Minor (3)
Cold-pass P2 on GNSS FC availability downgraded: base writes the same row. |
Follow-up to AP-Review #15Pushed
Both failures were reproduced before correction. Regression coverage includes Tarot_X4, FETtec-5 and normal_plane, with destination-conflict and independent-port checks. Validation: 641 model tests and 14 mocked GUI tests passed. CI-pinned Pylint, Ruff and targeted type checks passed. The three minor findings remain unchanged for maintainer consideration. Requesting AP-Review #16. |
Previous review (2026-11-11)Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head One blocker remains at head 6c16efd: saving during a None/CAN1 detour still leaves the telemetry baud on the old port. Since 44b3d2b, None/CAN1/other detours without a save now carry the baud on Tarot_X4, FETtec-5 and normal_plane, and the pylint R0913/R0917 failure is fixed. Blocking
Should fix
Minor (3)
|
|
@nflyernz thanks for working on this. I will continue working on this like we wrote on discord. I got some other stuff fixed and 5.1.1 has been released so this is next on my list. Please do be patient because this is a complex one that needs some planning and a lot of tests. |
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Ask before applying connection parameter renames when loading a step or changing a component connection inline. Cancel an inline connection change when its proposed rename is declined or a destination is already occupied. When leaving a serial connection, ask whether to disable its protocol. Stage SERIALn_PROTOCOL=-1 for upload if accepted; otherwise preserve the previous assignment. Keep retained old-port rows separate from later connection moves during the editing session. Preserve unsaved parameter values across serial-port renames and returns to the original port. Keep declined step-load renames suppressed across exports. Add regression coverage for confirmation choices, destination conflicts, derived protocol handling, export and subsequent moves. Signed-off-by: Dr.-Ing. Amilcar do Carmo Lucas <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: Dr.-Ing. Amilcar do Carmo Lucas <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Signed-off-by: nflyernz <[email protected]>
Keep serial source rows associated with their exported names when saving during a non-serial detour, so baud and flow control follow the next port selection. Track copied protocols by their actual source and report occupied protocol destinations after a detour while allowing a return to the original port. Respect explicitly deleted GNSS protocol targets and clarify the warning when the previous connection is unavailable. Add regression coverage for saves during detours, subsequent port changes, destination conflicts, and deleted GNSS protocols. Signed-off-by: Dr.-Ing. Amilcar do Carmo Lucas <[email protected]>
6c16efd to
7d894a6
Compare
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head One blocker remains at 7d894a6: a sequence of serial-port changes can silently leave the file with no telemetry protocol. Since 6c16efd, saving during a None/CAN1 detour now carries the baud, the copied protocol follows its real source, detour conflicts are reported, an unsaved GNSS deletion is respected, and the unknown-connection wording is fixed. Blocking
Should fix
Minor (1)
The other previous findings are fixed at this head. |
Summary
Validation
pytest -q tests/test_data_model_parameter_editor.py tests/test_data_model_configuration_step.py(430 passed)git diff --checkpassed. Pylint's existing argument-count findings were excluded from the focused run.Related inline-edit reports: #2284, #2287, #2288. GNSS forced/derived behavior from #2288 remains deferred.