SCADA-LTS / Scada-LTS

Scada-LTS is an Open Source, web-based, multi-platform solution for building your own SCADA (Supervisory Control and Data Acquisition) system.
GNU General Public License v2.0
734 stars 292 forks source link

Inconsistency between hierarchy added by UI and by json #2484

Closed fabiodurao closed 1 year ago

fabiodurao commented 1 year ago

Scada-LTS 2.7.4.1 - Manual instalation

  1. On the hierarchy screen, I created a test folder, dragged a datapoint into this folder and it was automatically saved; image
  2. On the import/export screen, I checked the hierarchy checkbox, exported the json;
  3. I added the XID of a variable within the json relative to the created folder; image
  4. Refreshing the watch list screen, the hierarchy modification was accepted; image
  5. Updating the hierarchy screen, the modification does not appear, even when clicking on the refesh icon available on this screen. image
fabiodurao commented 1 year ago

Update: A few minutes after making the change via json, the hierarchy screen updated, I don't understand why it took so long. Maybe it's not the time, it's the fact that I created one more folder and updated the structure.

Limraj commented 1 year ago

Hi @fabiodurao, I looked at the code and it looks like the structure is updated every 10min, but the refresh button should force this update...

The refresh rate is configurable in the env.properties file: abilit.CRONE_UPDATE_CACHE_POINT_HIERARCHY=0 0/10 * ?

fabiodurao commented 1 year ago

ok, good to know it's only a matter of time to update.

Limraj commented 1 year ago

2014