ControlSystemStudio / cs-studio

Control System Studio is an Eclipse-based collections of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
https://controlsystemstudio.org/
Eclipse Public License 1.0
111 stars 96 forks source link

Fixing bug that causes archived data not to be plotted after it has been fetched #2668

Closed rjwills28 closed 3 years ago

rjwills28 commented 3 years ago

We found an issue where the plot is not updated immediately after data is fetched from the Archiver Appliance. Instead, in order to get the new data plotted, the user has to interact with the plot in some way which will call an update to the plot and so show the new data.

The issue is that the databrowser is not registering that there are new samples for a PV item. This is because when the new samples are merged with the current values, the have_new_samples boolean is not set to true (as is done in the case of live data). A value of true is required in order for a redraw to be executed.