PlanQK / planqk-platform

PlanQK Platform Issue Repository
3 stars 0 forks source link

Plattform not saving algorithm details after long working time #62

Closed Danielle-Schuman closed 2 years ago

Danielle-Schuman commented 2 years ago

Describe the bug Yesterday, I worked on the algorithm description for the Dürr-Høyer-Minimization algorithm for a longer time, starting in the afternoon and working until about 10:45 pm. I edited the different text fields several times, intermediately saving them with the little tick symbol several times. In between this work I also took several longer breaks (of the length of one or two hours) leaving the window open. During this time, I did not get logged out of the platform. When finishing my work at around 10:45 pm, after saving with the tick symbol, I briefly clicked on the implementations tab at the top to see if there were any fields to fill out in this tab. I then clicked back to the Details tab, and found that no text fields where shown there, only a grey area. So I attempted to reload the page, which got me to the Log-In page. So I logged in again navigated back to my algorithm, only to find that all changes I had made since some time in the afternoon (text I had written etc., equalling about 3h of work time) had disappeared. I suspect that the issue could have something to do with my session running out a long time before I finished working, but my browser not logging me out in order for me to discover this. But that is only a suspicion.

To Reproduce Steps to reproduce the behavior: (These are the steps I took, but I suspect the bug could be quite hard to reproduce.)

  1. Open an algorithm description of which you are the owner under "My content".
  2. Leave it open for up to 9 hours, intermediately making edits to the text field and saving them with the tick symbol every few hours, sometimes being in editing mode for longer times at once, sometimes for shorter times.
  3. Click on the "Implementations" tab.
  4. Click back on the "Details" tab.
  5. See there are no text fields shown.
  6. Reload the page.
  7. Log back in.
  8. Navigate to your algorithm again, to see your last changes have disappeared.

Expected behavior The platform persistently saves all changes when clicking the tick symbol after editing. When a session runs out while being on an algorithm page, you get logged out and are prompted to log in again via the log-in page and your changes are still there (which has happened most of the times I had algorithms open for a longer time to edit them every now and again, by the way.) Sessions do not run out while you are actively editing a text field, or if they do, the current state of your work is saved and you are prompted to log back in. When clicking the "Implementations" tab and then going back to "Details", the text fields with the current state of your work are shown. When reloading a page, it just reloads and your changes are still there.

Desktop:

Additional context Times I was working on the algorithm description: Wednesday, 21-12-22 1430- 1505 1520- 1620 1645- 1740 1910- 1930 2130- 2245 / 2250 (I think the problem occurred at 2247 or 2248 or so?)

radufalcusanStoneone commented 2 years ago

Thank you for your feedback. The issue has been fixed.

Danielle-Schuman commented 2 years ago

That is great, thank you very much.

Danielle-Schuman commented 2 years ago

Unfortunately, I had a similar issue again: Yesterday night, around 22:30 o'clock, I wrote down some notes in an Algorithm description I was writing (Quantum Boltzmann Machine (Quantum Annealing), which I have not made public yet). I had had the document open for quite a while then. Afterwards, I forgot to log out. When I logged back in again today at around 13 o'clock (after being logged out automatically), I was asked to log in twice in a row, the second time with a message along the lines of my session having ended (unfortunately, I don't remember the exact wording). I then landed on the page I have been working, and again, a the last things I had written had disappeared (unfortunately just a few bullet points this time).

radufalcusanStoneone commented 2 years ago

I have tried to reproduce the reported issue in the following way:

  1. I edited the Algorithm Intent field without clicking Save
  2. I logged out
  3. I went back to the page Result: the intent field remained in edit mode and my changes were there.

Due to the fact that the bug was not reproducible, I am closing the issue for now.

Thank you for your feedback!

Danielle-Schuman commented 2 years ago

Well, that's a pity, that you could not reproduce it, but not really a surprise, since it's a very peculiar issue. But thank you for trying!

I want to add, however, that - in contrast to what you describe that you did when trying to reproduce the bug - I did save the fields I had been working on, so when I got logged out automatically, they were not in edit mode anymore (or at least should not have been, in my opinion).