France-ioi / AlgoreaFrontend

Front-end for the new Algorea platform
MIT License
4 stars 1 forks source link

Answer handling improvements #1823

Closed smadbe closed 1 week ago

smadbe commented 3 weeks ago

Description

Fixes several issues with answer saving: 1) if there is a change when changing task, it should be saved (was not if we hadn't waiting the 60sec delay) 2) on submit, there should be a current answer save (was not if we hadn't waiting the 60sec delay)

Recommendation: test it on https://dev.algorea.org/branch/answer-handling-improvements/en/a/773396873861865944;p=4702,7528142386663912287,7523720120450464843;a=0

You can see if a change as been saved because 1) you see the call (PUT), 2) if you refresh the page, you see the change

Test cases

Iloveall commented 2 weeks ago

When saving, and you click navigate to another item - it will save again as lot as you clicking

https://github.com/user-attachments/assets/9cd07cae-eebd-47a0-a03f-2f139cc55f66

smadbe commented 1 week ago

When saving, and you click navigate to another item - it will save again as lot as you clicking Screen.Recording.2024-11-06.at.5.14.19.PM.mov

I thought about it. It is not a big deal and it would be quite difficult to fix. So let's keep it as it is.