stats4sd / Sampling-Decision-Assistant

GNU General Public License v3.0
0 stars 0 forks source link

Create backend survey save/load #7

Closed chrismclarke closed 6 years ago

chrismclarke commented 6 years ago

methods to save and retrieve individual survey responses and full survey. Includes local storage option for long-term storage

chrismclarke commented 6 years ago

I've implemented a simple system that automatically saves any changes to the survey after any question is edited, and local storage so that the data is not lost when the browser window/app is closed. You can see this evidenced on the questions page: https://unhcr-sampling-assistant.firebaseapp.com/#/questions (note, ignore the save/load buttons as they don't do anything, everything is automatic, you can see the logs by opening your web browser console window (usually the F12 key) and test load by refreshing the web page)

@cebarahona @dave-mills , is this sufficient or do we need anything any more sophisticated? (e.g. a list of multiple saved forms which can be retrieved, links to online database with user login etc? None of which would be too time-consuming to implement if worthwhile/part of spec).

chrismclarke commented 6 years ago

will want either import or way to show previously saved with templates

chrismclarke commented 6 years ago

This is now implemented (v0.2.2c), @cebarahona you can see how it works from either the step-by-step or decision based mode. @dave-mills , I had to make quite a few backend changes for this, and although I did a fair amount of testing could you please spend a minute or two testing whether the save/load system behaves nicely from a user point of view?