You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add UDF parameters from the properties panel #7552
Python UDF parameters are inferred from self.UiParameter(...) declarations and displayed in the properties panel, but users currently need to edit the Python code manually to add a parameter.
Add an inline properties-panel workflow that creates a parameter declaration while keeping the Python code as the source of truth.
Proposed Solution or Design
Before:
Properties panel -> inspect and edit existing parameter values
Adding a parameter -> manually edit the Python UDF code
After:
Properties panel -> Add parameter -> enter name and type -> declaration inserted into code -> parameter row appears through the existing synchronization flow
The UI should:
show an Add parameter button when workflow modification is enabled;
open an inline draft row with name and type fields;
support string, integer, long, double, boolean, and timestamp parameters;
allow confirmation with the check button or Enter and cancellation with the close button or Escape;
insert beside existing UiParameter declarations or at the beginning of open();
create open() when the supported UDF class does not define it;
handle empty, comment-only, decorated, docstring, and pass-only class bodies;
reject missing, duplicate, or unsupported names and types with a visible error;
edit the shared code buffer and let the existing parser and synchronization flow update the panel.
Activity
chenlica commentedon Aug 12, 2026
@carloea2 If a screenshot is possible, please add one.
carloea2 commentedon Aug 12, 2026
@chenlica Done, thanks.
feat(frontend): add UDF parameters from the panel (apache#7551)