mff-uk / dataspecer

https://dataspecer.com
MIT License
21 stars 7 forks source link

CME autosave removes all semantic models in package #660

Open RadStr opened 1 month ago

RadStr commented 1 month ago

The problem I lose all data (tested with only 1 local semantic model) when I quickly refresh the page multiple times or open more instances of the same visual model in browser.

How to replicate Create new directory with new visual model in package manager and open it. Put in some classes. Now there are two easy ways how to replicate:

  1. Close the model, go back to manager and quickly open multiple instances of the one visual model (for example through middle mouse button) ... It also behaves the same when opening multiple different visual models in the same package.
  2. Open the visual model once and start furiously refreshing the page .... Actually you don't have to do it furiously, It is enough to refresh it small moment after the "...success" is shown and sometimes it doesn't even have to be close and with the autosave turned off before refresh.
sstenchlak commented 3 weeks ago

I started to notice it too. It's not about speed. It happens even if you click slowly. I observe a 30% probability that you will delete a model if you open CME. Disabling autosave won't help because it is not persistent.

jakubklimek commented 3 weeks ago

I also noticed this, fortunately with a relatively empty model.