Skip to content

Input arguments for a Python Task are lost when saving via the Task Editor #609

@marvinoe21

Description

@marvinoe21

When setting up input arguments for a Python Task while the Task Editor is open, the input arguments get deleted upon saving the task using the Task Editor's save button. This happens because the Task Editor creates a copy of the Python Task from the Process Data when it is opened. This copy does not reflect any changes made to the original Python Task stored in the Process Data. Consequently, if the Task in the Process Data is modified (e.g. input arguments are created) while the Task Editor is open, saving the Task through the Task Editor will overwrite the Process Data with the outdated copy.

Steps to Reproduce

  1. Open the Task Editor for a Python Task.
  2. While the Task Editor is open, modify the Python Task via the Properties Dock Widget.
  3. Return to the Task Editor and press the Save button.
  4. Notice that the property changes are lost after saving

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions