Skip to content

Conversation

@amilcarlucas
Copy link
Collaborator

I'm not sure this makes sense because it hides changes from the users and we do not want to do changes behind the users back.

But if they really want it, here it is.

Copilot AI review requested due to automatic review settings October 6, 2025 16:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the parameter editor table to conditionally hide forced and derived parameters when the GUI is set to "simple" complexity mode. The change aims to reduce clutter for users who prefer a simplified interface, though the PR description notes concerns about hiding parameter changes from users.

Key changes:

  • Add filtering logic to skip forced and derived parameters in simple GUI mode
  • Maintain upload functionality for all parameters regardless of display status
  • Update row counting to reflect only displayed parameters

Comment on lines +205 to +209
param_metadata = self.local_filesystem.doc_dict.get(param_name, {})
param_default = self.local_filesystem.param_default_dict.get(param_name, None)
doc_tooltip = param_metadata.get(
"doc_tooltip", _("No documentation available in apm.pdef.xml for this parameter")
)
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

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

These lines appear to be creating variables that are not used in the visible code. If these variables are needed for the _create_column_widgets method, they should be passed as parameters or used directly within that method call to avoid creating unused local variables.

Suggested change
param_metadata = self.local_filesystem.doc_dict.get(param_name, {})
param_default = self.local_filesystem.param_default_dict.get(param_name, None)
doc_tooltip = param_metadata.get(
"doc_tooltip", _("No documentation available in apm.pdef.xml for this parameter")
)

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8556 6902 81% 80% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
ardupilot_methodic_configurator/frontend_tkinter_parameter_editor_table.py 54% 🟢
TOTAL 54% 🟢

updated for commit: 623b908 by action🐍

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Test Results

    2 files  ±0      2 suites  ±0   1m 40s ⏱️ -7s
1 883 tests ±0  1 879 ✅  - 3  1 💤 ±0  3 ❌ +3 
3 766 runs  ±0  3 758 ✅  - 6  2 💤 ±0  6 ❌ +6 

For more details on these failures, see this check.

Results for commit 623b908. ± Comparison against base commit c0d7d34.

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.

2 participants