-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add ability to retrieve timing history for a single question #96
Comments
I'd like to be assigned to this issue! |
Assigned! |
You can get started, but keep in mind to get this fully working, you'll need #67 to be merged so just keep that in mind 😃 |
Just to make sure my understanding is correct, I can actually go ahead and work on this but to test whether I've implemented it correctly, I would need #67 to be resolved first? |
The PR is #97 |
Hi! I was having issues figuring out how to go about this, so I unassigned myself for now. |
Hi! I would like work with this issue :) |
@josselineperdomo awesome! I assigned you. Lmk if you have any questions! |
…stion Fix #96: Add ability to retrieve timing history
Currently, the timing history is stored in local storage. The code for it is in
history.js.
But after #67 we can retrieve this from the database instead.GET
endpoint/user/answers/question/{questionNumber}
If there is no history, if they have never answered it before, include
[]
for the timings.When showing a new question, make an AJAX call (using
fetch
, not jQuery) to this API endpoint and use the timing in the JSON to populate the existing UI. Feel free to modify history.js however you want. It no longer needs local storage.The text was updated successfully, but these errors were encountered: