codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.09k stars 219 forks source link

Kata changes lost after "Re-Publish" #3078

Open Odevian opened 11 months ago

Odevian commented 11 months ago

Describe the bug I have tried it three times now, but everytime my changes to the description of my authored kata is not saved when pressing "Re-Publish". I experience this for some time now. It is not limited to the descripition, also code or testcode gets lost. It is not predicatable why the changes won't show up, because the notification about "Publishing, this won't take long..." is shown and no problem popup appears. Also CodeWarriors who tried to solve the kata reported such problems, that they cannot see the new version of it, when I made fixes and Re-Published them.

When searching for my kata to supposedly get the freshest version of it, the last changes won't show up ("sometimes", not all the times).

To Reproduce Link to the kata https://www.codewars.com/kata/55d10e059cbb0267ac0000ad

  1. Make a change in the description or code
  2. Press Re-Publish; note that the change is visible in the description's edit box
  3. The loading splash screen appears for a while
  4. Use GoTo-Details to load the new changes and observe that the change is not shown
  5. Back to the Edit page let you observe that the changes are missing in the edit box now as well

Also you can check the "GoTo-Revisions" page:

  1. Goto to revision#23 (or earlier) or use the search function with "Each swwitch" (typo intended)
  2. I fixed that typo (along with other changes). But even in the revision#24 (latest revision at that time) none of my changes show up.

Smells like a problem with caching of the text box contents in the browser? Or that the saving did fail but did not show a warning? Or there was some kind of timeout and the browser session got invalidated?

Expected behavior I would like to have some feedback on the saving progress, if it failed or was succesful or at least an info when it takes time until the changes will be online after the loading splash disappears.

Better yet: The kata's description must immediately reflect the changes after "Pubish"/"Re-Publish". And also if searching for the kata and loading it.

Additional Info After a lot of publishings and then verifying if the changes are there, I also tried to "Un-Publish" and then "Publish" again. Publish did not work at once because of the open issue notification (new feature?). After fixing the issue, publishing was possible without warning. This warning did not show up when using "Re-Publish" before. Also there are changes in the GoTo-Revisions page that were saved with using Re-Publish. The warning popup seems to be inconsitent between "Re-Publish" and "Unpublish-Publish".

Browser/System latest Firefox, Windows 10