Scada-LTS
Scada-LTS copied to clipboard
Fixed Import Increment and Attractor change type
When importing freshly created export file with virtual data source containing multi state data points, data point's type will change to binary after exporting.
To Reproduce
- Create Virtual data source with three multi state data points
- Change "change type" of two of the points to increment and one to random, make sure to save everything after editing.
- Go to "Export/Import" menu and export your project.
- Try to import freshly exported file
- Look at the type of virtual data points, points that were multi state, increment are now binary ----> ERROR
- Multi state random data points should remain unchanged
Expected behavior Importing a project should not change types of data points.
Desktop
- OS: Linux Mint
- Browser Chrome
- Version <=2.7.7
Additional context This bug can be caused by change type of data points, random seems not to cause issues, where increment is causing this exact issue. Numeric data point type with attractor change type is having the same issue. Points that are causing these issue are being changed to binary type after importing.
edit: The problem affects the Virtual Data Point type, the Multistate data type and the Increment change type, and the Numeric data type and the Attractor change type. Such a point is imported as a Binary Point, Alternate change type, and is disabled. There is probably a problem with recognizing the type of change from the json file, which is why it sets default values, even though the correct type of change is exported in the json file. File from export project: attractor_failed.zip