Skip to content

Does a new version get created on every manual run? #4021

@taylordowns2000

Description

@taylordowns2000

Possible bug here. Does a new workflow version get created on every manual run in the new collaborative editor?

🎯 Goal: It shouldn't! A new version should only be created if the workflow changed.

Placeholder

@lmac-1 and I have just detected something where the version number increases on every run (even if no changes are made)

Lucy [Today at 2:46 PM] I'm wondering if it's related to my PR from before which was touching all of that (clicking "latest" at the top and the warning message) #3941

Lucy 1 hour ago I just had a little look .. I don't think that the PR I linked is what broke things, but it does draw attention to the underlying bug.

When you run a workflow without making any changes, the version number still increments. Then, when you view that run, the UI shows the “old version” warning because the run’s version no longer matches the version in the header. That’s the unexpected behaviour.

Stu Corbishley 44 minutes ago The strange thing is, that only the server increments the number. The manual run function/behaviour on the backend is the same as it always was afaik

Lucy Yeah and I don't remember seeing version numbers going so high before.. strange

Lucy Extra context: The version number doesn't appear to increase when it runs automatically. Seems to only happen when manually kicking off a run from collab editor. For example - if the run runs via cron job, that doesn't increase version number, but if i manually click run from collab editor it does.

Taylor Downs Kicking off a run definitely saves and runs the workflow. The question is if the save event is sent, and there are no changes, does it still increment the version?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions