nextcloud / nextcloud/server

Flow: cancelling a second change in another check, toggles the first change

Open
#51,635 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop 32-feedback bug feature: workflows
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Repro steps

  1. Have a flow configuration with at least two checks/conditions
  2. Change the first condition and click cancel
  3. Change the second condition and click cancel

Expected

Only the relevant changes are undone

Actual

The first condition toggles. Cf this video:

https://github.com/user-attachments/assets/29d3d5ef-f822-4265-990c-e7c2e67c3c85

Notes

I spent hours debugging it, but the only take away i have is that something is out of sync and keeps overwriting itself. I am suspecting the check in Check.vue, but perhaps something else. My head is spinning.

Found while working at https://github.com/nextcloud/server/pull/50783

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the flow configuration UI and the suspected Check.vue component. Reproduce the two-condition sequence: change and cancel the first condition, then change and cancel the second. Done means cancelling each condition only undoes that condition, without toggling the first one.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.