To move the grade events to grade items I am thinking of doing something like:
INSERT INTO mdl_grade_items (courseid, categoryid, itemname, itemtype, iteminfo, idnumber, grademax, grademin, timecreated, timemodified)
SELECT gi.courseid as courseid, gi.category as categoryid, ge.name as itemname, 'manual' as itemtype, ge.description as iteminfo, concat ('GBP-',ge.id) as idnumber, ge.grade as grademax, 0 as grademin, ge.timemodified as timecreated, ge.timemodified as timemodified
FROM mdl_grade_item as gi, mdl_grade_events as ge
WHERE gi.courseid=ge.course AND gi.modid=0 AND gi.cminstance=ge.id;
n.b. - We need to make sure that the categoryid is correct - I have not looked to see how the data is getting mapped in the 1.8 to 1.9 upgrade.
I have used the grade event (1.8) id field concatenated with the GBP- string as the id number to easily identify the item as a GBP item and to provide a way to easily link the items (1.9) and assign the grades.
INSERT INTO mdl_grade_grades (itemid, userid, usermodified, finalgrade, timecreated, timemodified)
SELECT gi.id as itemid, geg.userid as userid, geg.teacher as usermodified, geg.grade as finalgrade, geg.timemarked as timecreated, geg.timemarked as timemodified)
FROM mdl_grade_events_grades as geg, mdl_grade_items as gi
WHERE replace(gi.idnumber,'GBP-','')=geg.event;
I have not tested these queries out yet but wanted to get some conversation and ideas out there as I know that some folks are chomping at the bit to get started. I appreciate any feedback, questions, critiques, etc. Peace - Anthony
Can I install GBPv2 on a local v1.9 server ? Is it compatible with the new gradebook - for empty DB ?
Thanks
Udi
Anthony – Being new to Moodle I have to admit I did not use GBP.
I need functionality I did not find in grades in V1.9 and wanted to learn what existing plug-in can offer. But maybe the best way is to describe the problem, and ask your advice for appropriate solution:
I am using courses with Metacourses as described in
http://docs.moodle.org/en/Metacourses in Scenario 4, (metacourses hold most of the course content, and used as library. Students register to the class (not-meta course) , which includes several metacourses.
I need a gradebook which combine grades from few courses (meta courses) into one classes (non-meta course).
Any advice – either on different way to build the library and classes, or way to create and display grades for multiple courses will be mostly appreciated.
Thanks
Udi
I have converted from 1.61. to 1.9 the gradebook previously was using GBPv2. All data seems to have migrated across successuful however when I click on grades the page takes a long time to load up, longer than previously and sometimes it doesn't load up at all.
I saw the information about migrating 1.8 GBPv2 to 1.9 but when I tried to run the first two queries I got errors saying that the mdl_grade_item doesn't exist and that the mdl_grade_catergory doesn't exist
Is there something else I need to do the database is rather large and we were hoping that 1.9 would speed things up for us
Sarah
I'm doing a completely new upgrade test - it's been at least a couple of weeks since I did so, and that one went off without a hitch. Now, however, I am getting some errors and I'm concerned that it may be related to GBPv2. I've filed MDL-11909 - I don't think that my problem is in GBPv2, but in something that's changed that affects how GBPv2 is upgraded from 1.8.2 to 1.9. Would you take a look at the bug and see what you think? I'd like to see if we can get this one worked out.
Thanks,
Matt