Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Import quiz from STACK question library #1358

Open
EJMFarrow opened this issue Jan 13, 2025 · 0 comments
Open

Feature: Import quiz from STACK question library #1358

EJMFarrow opened this issue Jan 13, 2025 · 0 comments

Comments

@EJMFarrow
Copy link
Collaborator

EJMFarrow commented Jan 13, 2025

Can we use similar code to the gitsync quiz import to create quizzes from the STACK library?

Scenario: We copy a single category quiz context from a gitsync repository into the STACK library. The quiz contains only questions from the quiz context. We import the quiz into Moodle via a button in the library. We can then export the quiz back to the gitsync repo if it gets updated.

  • Attempting quizzes with questions from multiple categories/contexts would almost certainly lead to complex code and insanity.
  • The filepaths in the quiz data file will not be correct. They will be top/category/file-name.xml. We just need the file-name.
  • We will probably need the gitsync category file to make this work.
  • All the questions will need to be imported as part of the quiz import. Is this through a single call to Moodle or multiple? Maybe single makes most sense as otherwise we have to retain a link between files and questionbankentryids on the front end for final quiz import call. This affects Feature: Import folders of questions from STACK question library #1357.
  • Multiple quizzes using the same questions will each need to import the questions and use separate copies.
  • Look into subcategories in questions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant