Skip to content

Combined save&discard dialogue for all elements of a task #482

@jluethi

Description

@jluethi

What I've noticed when using e.g. Input Filters & Arguments was that each of the tabs had to be saved separately. e.g. when I edit the parameters and want to switch to Input filters, the Discard or Save dialogue shows up.

Screenshot 2024-05-07 at 13 33 18

When we're putting in more of this unified save dialogue (see #481), I start to wonder: Can we have the save/discard logic be applied to the whole task instead of each of its tabs?

No some of the logic would have to change:
I don't think it makes sense to have an endpoint that always overwrites all the parts (e.g. we always update parameters, meta & input filters, even if only arguments changed).
But maybe we can handle it front-end side in that clicking save or discard triggers save or discard for all the tabs if they have unsaved changes?

We'd have to test this a bit with the behavior of "what if I get a validation error during saving, like missing a required argument"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions