Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Gradebookplus.

Gradebookplus: Difference between revisions

From MoodleDocs
m (gradebookplus moved to Gradebookplus)
Line 1: Line 1:
== GradebookPlus ==
== GradebookPlus ==


adds the following functionality to standard gradebook
GradebookPlus Version 2 (GBPv2) adds the following functionality to standard gradebook:


* in-place editing of gradebook  
* in-place editing of gradebook  
Line 10: Line 10:
* works with moodle 1.5 and moodle 1.6 (with bug patch below, not thoroughly tested)
* works with moodle 1.5 and moodle 1.6 (with bug patch below, not thoroughly tested)


version 2 of gradebook contrib
* 18STABLE branch works with Moodle 1.8 and has been merged with 18STABLE branch of CVS by Anthony Borrow.
* you can enter graded events directly through the gradebook interface. These grades will not show up elsewhere in the course.  


as of july 19:
* Below is an initial discussion of possible plans to migrate GBPv2 1.8 data to Moodle 1.9beta. I would like to keep the docs updated with whatever we find and work collaboratively at developing a plan to migrate the data. Thanks for your collaboration.


* cvs gradebook was last modified  july 18, 2006  by skodak
== Migration from GBPv2 to Moodle 1.9 ==
* gradebookplus in contrib was last modified jun 22, 2006 by jgraham909
I'm beginning this thread to discuss how we ought to move toward migrating the GBPv2 data from Moodle 1.8 to 1.9. I have started to play with some SQL queries and figured that sharing my thoughts (I would not call it progress yet) might be helpful as we work toward this. Please keep in mind that these queries are intended to only show the relationship beween the tables so that we can work out a migration plan. They are not intended to be run on a production site. My typical warning of using it in so far as it is helpful and avoiding it in so far as it is not certainly applies. With that said, I see the migration as involving 2 steps. Migrating the grade events (1.8) to grade items (1.9) and grade event grades (1.8) to grade grades. What may complicate things or what I am least clear on at this point is moving from grade category (1.8) to grade categories (1.9).  For now, I am ignoring the issue of categories.
* gradebookplus_v2 in contrib was added july, 19, 2006 by jgraham909
 
* Eloy Lafuente (stronk7) made a couple of patches to standard gradebook in http://moodle.org/mod/forum/discuss.php?d=48436
To move the grade events to grade items I am thinking of doing something like:
* and announces that "(standard) gradebook is going to be revamped for Moodle 1.7"
 
* Michael Penney announced plan to release a new version of gradebookplus in http://moodle.org/mod/forum/discuss.php?d=48436&parent=221574  jun 25, 2006
INSERT INTO mdl_grade_items (courseid, categoryid, itemname, itemtype, iteminfo, idnumber, grademax, grademin, timecreated, timemodified)
* there is a tiny bug in gradebookplus's grade/lib.php (see bruno's fix in http://moodle.org/mod/forum/discuss.php?d=49090#226557) jul 10, 2006
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

Revision as of 05:30, 18 September 2007

GradebookPlus

GradebookPlus Version 2 (GBPv2) adds the following functionality to standard gradebook:

  • in-place editing of gradebook
  • multi-column editing (spreadheet-style) for all numerically-marked activities in a given category
  • popular with teachers used to traditional gradebook software
  • makes moodle accessible to more teaching styles
  • currently only available as a contrib package in CVS contrib/gradebookplus
  • works with moodle 1.5 and moodle 1.6 (with bug patch below, not thoroughly tested)
  • 18STABLE branch works with Moodle 1.8 and has been merged with 18STABLE branch of CVS by Anthony Borrow.
  • Below is an initial discussion of possible plans to migrate GBPv2 1.8 data to Moodle 1.9beta. I would like to keep the docs updated with whatever we find and work collaboratively at developing a plan to migrate the data. Thanks for your collaboration.

Migration from GBPv2 to Moodle 1.9

I'm beginning this thread to discuss how we ought to move toward migrating the GBPv2 data from Moodle 1.8 to 1.9. I have started to play with some SQL queries and figured that sharing my thoughts (I would not call it progress yet) might be helpful as we work toward this. Please keep in mind that these queries are intended to only show the relationship beween the tables so that we can work out a migration plan. They are not intended to be run on a production site. My typical warning of using it in so far as it is helpful and avoiding it in so far as it is not certainly applies. With that said, I see the migration as involving 2 steps. Migrating the grade events (1.8) to grade items (1.9) and grade event grades (1.8) to grade grades. What may complicate things or what I am least clear on at this point is moving from grade category (1.8) to grade categories (1.9). For now, I am ignoring the issue of categories.

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