bptlab / ark_automate

An open source RPA tool which uses BPMN to create bots.
MIT License
18 stars 8 forks source link

[BUG] When changes are saved in the code interface, new objects get created in DB #339

Open WolfgangDaniel opened 3 years ago

WolfgangDaniel commented 3 years ago

Describe the bug

When changes are saved to the cloud in the code interface, new objects get created in DB. Even if the changes should have only updated the existing objects in the DB. This can lead to Problems when executing a robot. If user input is required, it might get requested multiple times from the user as the same object is saved multiple times in the DB.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Modeler Interface and build a robot, save it to the cloud.
  2. Go to DB and check parameter and rpaattributes objects for the robot.
  3. Go to Coder Editor Interface and change the robot and save it to the cloud.
  4. Go to DB and check parameter and rpaattributes objects for the robot.
  5. See that there were new Objects created for all activities of the robot although the existing one should have just been updated.