OpenChain-Project / Online-Self-Certification-Web-App

This is the source code for the OpenChain Project Conformance Online Self-Certification Web App
https://certification.openchainproject.org/
Apache License 2.0
12 stars 5 forks source link

Downloading Answers does not work #147

Closed theopenchainproject closed 5 years ago

theopenchainproject commented 5 years ago

Downloading answers to a CSV file does not work. With no questions filled out or all questions filled out the resulting CSV is blank.

Screen Shot 2019-05-22 at 14 42 16

openchain-answers.xlsx

goneall commented 5 years ago

I was able to duplicate this problem so i should be able to fix it. I'll take a look over the next couple of days.

goneall commented 5 years ago

The download answers only downloads answers after they are saved.

If you don't save the answers, it will not be reflected in the CSV.

The CSV also does not include any answers which are not answered.

This is actually working as designed, but the design has a couple of problems.

If you're just trying to download the survey using the download answers, you will only see survey questions.

The second problem is if there are answers when the survey is not saved, I would expect to see what I see on my screen and not what is stored on the computer.

I'm going to close this and open two enhancements:

I also found another issue when debugging. If a user leaves the page without saving the questions, there is no warning. i'll enter a new issue to track.

shanecoughlan commented 5 years ago

Thanks Gary! I commented in the new issues.