Brickfield Education Labs

Introduction

This report will allow you to migrate all of your actively used questions from one course to another.

 

To migrate actively used questions between courses, you must have editing teacher capabilities in both.

 
In this context, actively used questions are any questions either assigned to a quiz, or in a category assigned for random questions in a quiz.

Administration

This section is for the administration of the Brickfield Current Questions report.

Version Support

The Brickfield Current Questions report is supported for Moodle versions 4.1, 4.2, 4.3, 4.4, and 4.5.

Deployment

To install the Brickfield Current Questions report (report_bfcurrentquestions):

  1. Unzip and copy the bfcurrentquestions folder into Moodle’s report/ folder.
  2. Go to Site administration > Notifications to install the tool.

 

Further installation instructions can be found on the Installing plugins Moodle documentation page.

Capabilities

Capability nameManagerTeacherStudentAuth user
report/bfcurrentquestions:view: View Brickfield Used Questions ReportAllowAlow  

View capability

The capability “report/bfcurrentquestions:view” allows users with the relevant permissions for that context to view the Brickfield Current Questions report.

 

This capability is granted by default to these following archetype roles, using system context:

  • Manager
  • Teacher

Copyright and funding

The Brickfield Current Questions report has been developed, maintained, and is copyrighted by Brickfield Education Labs.

Usage as site administrator

Migrate questions currently in use from courses across your site.

Migrating actively used questions

To migrate actively used questions from one course to another:

  1. Go to Site administration.
  2. Click the Reports tab.
  3. Click the Brickfield Used Questions Report link.
  4. For the course you want to migrate questions from, click the Migrate Used Questions link.
  5. Click the Next: Choose destination button.
  6. In the Course dropdown, select a course to migrate the questions to.
  7. In the Question Category dropdown, select a question category in the destination course into which to migrate.
  8. Click the Copy X question(s) to destination course button.
  9. A confirmation message will display if the migration is successful.
The Migrate Used Questions Course List table with 5 rows and four columns. The columns are course, course short name, course full name, and then the final column contains the migrate used questions link for each course.

Used Questions Identification Logic

This plugin migrates all used questions from the starting course to the selected destination course. There is also an additional logic to just retrieve the latest version of any given question. There are a few ways the plugin finds questions to migrate. At a code level, this mostly happens in the \report_bfcurrentquestions\packager::get_used_questions() method.

Directly Referenced Questions

The plugin first looks for questions that belong to the course. This covers either the course question bank, or questions created directly in quizzes. 

 

It then determines which questions are used by looking for an entry in the question_references table. This table holds information about where questions are used in Moodle.

Random Questions

For random questions, the plugin includes all questions in the category the random question references. As random questions could choose any question from their configured category, any question in that category is considered by the plugin to be “used”.