angrykoala/gaucho

Env variable modified on duplicate task

Closed this issue · 1 comments

Description

In some cases, when editing the env variables of a task, the same env variable of a different task is changed as well

Steps to reproduce

  1. Create a task in a suite with an env variable set
  2. Save
  3. Duplicate task
  4. Edit original task env variable
  5. Duplicate task is edited as well

Workaround

By closing and re-opening gaucho the issue no longer happens

This is probably caused by the "duplicate task" copying the object reference to the new task instead of cloning it.

After closing and reopening, the task are no longer references to the same object (as they were de-serialized), explaining the workaround