Open ronja-ui opened 2 weeks ago
Can be reproduced by having two users connect to the same notebook.
Steps taken: User A creates a new notebook and opens it automatically User A gives User B owner permissions to notebook User B opens the same notebook User A adds the script "%dpl | teragrep get system version" to the first paragraph User A runs first paragraph User B refreshes page as soon as results are coming in User A sees results as normal User B sees an infinite loading screen User B sees infinite loading screen even if he refreshes If User A refreshes, User B's results get updated properly
Can be reproduced by having two users connect to the same notebook.
Steps taken: User A creates a new notebook and opens it automatically User A gives User B owner permissions to notebook User B opens the same notebook User A adds the script "%dpl | teragrep get system version" to the first paragraph User A runs first paragraph User B refreshes page as soon as results are coming in User A sees results as normal User B sees an infinite loading screen User B sees infinite loading screen even if he refreshes If User A refreshes, User B's results get updated properly
Additional info: the bug seems to reproduce if combination of users is new every time in the session. With same user set the bug may not occur even when following steps above.
The problem seems to be bound to the DataTable server-side table implementation, to the sync logic of AJAX in particular.
what happens when two unique users try to run one raw-data paragraph?
current decision on the fix:
a complete solution would be perhaps like this: both on ui and server: 1) each angular (or other) variable (which are updateable) has a version counter on server: 2) each change to a such variable updates global update counter by one, and server broadcasts this update to the clients with the global update counter on ui: 3) ui updates the broadcasted variable update only if the ui local version of the global update counter is one less than the server update counter, otherwise UI asks for update of all variables, including the global update counter.
the problem is a theoretical and closely related to https://en.wikipedia.org/wiki/Version_vector
Describe the bug Sometimes the raw data gets stuck in endless loading animation after the paragraph run has finished.
Expected behavior Paragraph should show results after the paragraph run has finished or show error message if there's something failed.
How to reproduce
Screenshots
Software version ajs_01 8.4.2 pth_07 7.2.5
Desktop (please complete the following information if relevant):
Additional context