Skip to content

Add UDF parameters from the properties panel #7552

Description

@carloea2
Image Image

Feature Summary

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.

Affected Area

Workflow UI

Activity

  1. added theissue type on Aug 11, 2026
  2. chenlica commented on Aug 12, 2026

    @chenlica
    Contributor

    @carloea2 If a screenshot is possible, please add one.

  3. carloea2 commented on Aug 12, 2026

    @carloea2
    ContributorAuthor

    @chenlica Done, thanks.

  4. added a commit that references this issue on Aug 13, 2026
    4afe8d4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions