regro / regolith

Research Group Content Managment System
http://regro.github.io/regolith-docs/
Other
14 stars 71 forks source link

FIX: app deletes content on failed json entry #50

Open CJ-Wright opened 6 years ago

CJ-Wright commented 6 years ago

If the user tries to put in bad json, then when the page is re-loaded then all their work is gone. This is rather nasty as they could have put a lot of work into their entry. Maybe we can reload the existing string? This may also be helped by moving to yml

scopatz commented 6 years ago

Yeah this sucks. I don't think yaml will help since by then it is loaded into memory

CJ-Wright commented 6 years ago

Could we have a stage in the app which looks for any files in the sacred temp sub-folder and then tries to read them in after the reading in of the database info?