Make some subscription item properties final, i.e. read-only for the user after they are first created
|Assignee:||Tuukka Lehtonen||% Done:|
|Velocity based estimate||-|
|Release||Simantics 1.13.2||Release relationship||Auto|
- sampling interval
Changing the sampling interval causes seemingly random disappearance of data due to not having all the same levels of detail of data collected anymore.
Changing the deadband can also possibly affect the levels of detail of data collected and thus the problems are equal to changing the sampling interval.
Changing the unit needs to be prevented only because FileHistory currently tries to perform some kind of actual conversion based on the previous and new unit and fails miserably in doing so. For example changing unit "" <-> "s" fails because a unit adapter can't be constructed for an empty unit.
Another possible fix for these problems would be to abolish all the history data collected so far for a changed item. But we'll go with the read-only workaround for now.Also the following subscription item properties should be made read-only either because their modification doesn't work or they are simply not intended for modification:
- Variable ID
Also the name should not be modifiable, but preventing that requires just a bit more effort than the others.
in order to workaround history collection problems that exist in modifying any of Deadband, SamplingInterval and Unit.
Datatype and VaribleId were made read-only because they should be such already from the user's point of view.