-
Notifications
You must be signed in to change notification settings - Fork 43
Only display derived parameters on normal GUI complexity #910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
| 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
AI
Oct 6, 2025
There was a problem hiding this comment.
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.
| 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") | |
| ) |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
Test Results 2 files ±0 2 suites ±0 1m 40s ⏱️ -7s For more details on these failures, see this check. Results for commit 623b908. ± Comparison against base commit c0d7d34. |
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.