umgc / Summer2024

Summer 2024 Cohort for UMGC 670
Creative Commons Zero v1.0 Universal
3 stars 3 forks source link

403 team c task specify test details hook up create base assessment view to moodle #639

Closed eshin2 closed 1 month ago

eshin2 commented 1 month ago

The add quiz to Moodle functionality has been moved to the modify test screen. When a quiz is saved from the modify test screen, the application fetches the assessments.txt file. It gets all questions from the assessments.txt file that matches the assessment name. This can be a known bug, because if two assessments have the same name, it will get questions from both assessments, but as long as assessment names are unique, it should grab the correct questions from the assessment.

Multiple choice, short answer, and essay questions are now successfully added to the selected course, with the specified quiz name, and generated questions/answers. No rubric is uploaded for essay questions.

I also fixed navigation back to the dashboard when logged into Moodle. I was getting a black screen after the questions were generated, but now it is working correctly, where it sets the page correctly if logged in to Moodle.

I also fixed the courses dropdown when logged into Moodle. I added log out functionality. I updated various models and test files to support my changes. Thanks for your review.