Skip to content

Configuration of flow execution is wiped after using admin UI drag and drop #21960

Closed

Description

@vladimirr9

Before reporting an issue

Area

admin/ui

Describe the bug

Context:
Custom top level flow is created with two executions - one authenticator execution and one subflow execution with its own executions.
Scenario:
Upon drag and dropping the authenticator execution to be under the subflow execution - it joins the list of executions under the subflow, however the authenticator's config is cleared.

Version

21.1.0, 22.0.1, nightly

Expected behavior

The authenticator execution retains its configuration. Especially if this is done accidentally and we want to drag and drop the execution to be back on the same hierarchical level as the subflow instead of under it.

Actual behavior

The configuration of the execution is cleared, I'm not sure if it still exists in the DB, but it's no longer displayed in the browser and if refreshed it's still cleared - the connection is severed regardless.

How to Reproduce?

I think what I've written so far should be enough for the problem to be reproduced, I have nothing else to add to this.

Anything else?

No response

Activity

  1. added
    kind/bug
    on Jul 25, 2023
  2. ghost added
    area/admin/ui
    on Jul 25, 2023
  3. ssilvert commented on Jul 25, 2023

    @ssilvert
    Contributor

    I have verified this bug. I just created a Conditional OTP Form execution to start with. Then configured it. When I dragged the execution to the subflow, all the config info was gone.

  4. ChrisBrandhorst commented on Jul 26, 2023

    @ChrisBrandhorst

    We have also experienced this bug and wanted to create in issue for it. Should be high-impact if you ask us, since accidental production config removal is possible.

  5. added a commit that references this issue on Aug 4, 2023
    c31bf15
  6. added a commit that references this issue on Aug 9, 2023
    82808e8
  7. added this to the 22.0.2 milestone on Aug 21, 2023
  8. added 2 commits that reference this issue on Aug 23, 2023
    639c0fc
    26c6ad3
  9. ChrisBrandhorst commented on Oct 16, 2023

    @ChrisBrandhorst

    Thanks for a fix. We do feel the solution is not really great, since dragging and dropping is not an atomic operation. The now added request submitting the configuration may still fail after the move operation completed, again resulting in data loss. Also, when moving around blocks with nested elements or nested blocks, data loss is still easily possible.

  10. jonkoops commented on Oct 23, 2023

    @jonkoops
    Contributor

    @ChrisBrandhorst could you report additional problems as separate issues? It will help us triage and fix them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/admin/uikind/bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions