Allocate Moodle Workshop reviewers from a spreadsheet list
Moodle Workshop allocates reviewers one pair at a time or at random. Our free workshopallocation_upload takes the pairs from a CSV, Excel or pasted list.
Short answer: Moodle’s Workshop activity lets teachers allocate peer reviewers by hand, one pair at a time, or at random. When the pairs are already planned in a spreadsheet (mixed levels, language partners, students from another class), there is no way to load them. Our free plugin, workshopallocation_upload, adds Upload allocations: give the list of who reviews whom as a CSV, Excel or LibreOffice file, or paste two columns from a spreadsheet.
This is the twenty-fourth plugin in our series: one plugin for each Moodle plugin type, each one teaching DevLMS Studio, our AI plugin builder, how that type works. Teachers have asked for this on the Moodle forums, and the request in Moodle’s tracker (MDL-41400) was closed without being built. The plugins directory had one other allocation method, and it does something else.
How it works
- In the workshop, open Submissions allocation and choose Upload allocations.
- Give the list: one row per pair, a
reviewercolumn and anauthorcolumn. Upload a file or paste from a spreadsheet; tabs, commas and semicolons all work. - Pick how students are identified: email address, username or ID number.
- Press Allocate.
The result lists every pair added, and every row that could not be used says why: no user found, two users with the same email, the author has no submission yet, the person cannot review in this workshop, or self-review when the workshop does not allow it.
Download the current allocations gives the existing pairs as a CSV file to edit and upload again. With Remove allocations that are not in the list, the list becomes the whole truth, except for assessments already graded: those are kept and reported, the same rule Moodle’s random allocation follows.
It supports Moodle 4.5 LTS to 5.3. The code is on GitHub.
How a Workshop allocation method works
From Moodle 5.3’s Workshop code:
- An allocation method is a small plugin inside the Workshop activity. Moodle lists it on the Submissions allocation page next to manual and random allocation.
- It shows its own form, and when the form is sent it creates assessments: one record saying “this student reviews that submission”. Moodle then shows the method’s log of what it did, line by line.
- Allocations are Workshop’s own records, so nothing extra is stored and Moodle’s privacy tools already cover them.
Tests paste a list without JavaScript (including an unknown ID number and a student with no submission) and upload a CSV saved with semicolons, then check the pairs on Moodle’s manual allocation page. Unit tests cover usernames, emails and ID numbers, duplicates, self-assessment, removing pairs and the download.
Need a plugin like this for your own Moodle?
Describe it in DevLMS Studio and watch it built and tested in a real Moodle, or ask our team for a fixed price.
Open DevLMS Studio