Further to http://drupal.org/node/1702668#comment-6322916

Hello,
We are having 2 Quiz as "Pre Test" & "Final Examination"
in the course.

Both Pre Test and Final Examination are working excellent and the results are getting saved in the _quiz_node_results
Now, we need the average / final value of "Final Examination" to appear as Grade / Save in the _course_report

So that this grade can be used in the Certificate.

Looking for the comments and suggestions.

Thanks
Prachait

Comments

djdevin’s picture

There is a grade_result column inside of the course report, and also a grade_result for each fulfillment record.

The question is, how do we know which quiz should write to the course_report.grade_result as being the "final" grade of the course?

Thoughts?

eotinfotech’s picture

We need to give a option for having

1. Average for all the quiz
2. Max of the Selected One Quiz

to be saved in the course grade
This will be a Add On, to the Course (Just like Certificate). Which will keep track about the Quiz.
Need more discussion on "How to" !

Thanks
Prachait

djdevin’s picture

Issue tags: +Needs tests

Alright, I am working on this.

Quiz has it's own grading functionality so we won't be addressing that. But we will add an option to the course object form for all objects:

[x] Include in final grade calculation

On the course node you will be able to select the calculation method:
(o) Highest
Will pull the highest grade out of all the selected course objects
( ) Lowest
Will pull the lowest grade...
( ) Average
Will average the grade...

We will also need to add a blocker for course grade calculation to course objects as an access plugin. This will allow an admin to set up a course object that the user may not enter until an aggregate course grade is reached. For example, if there are 4 tests and you must get an average of 75 to proceed to a course object.

djdevin’s picture

Title: quiz result as grade need to save in db » Aggregate grading of course objects
eotinfotech’s picture

Perfect, I liked the idea.
As of now, I will be using the hardcoded in _token of course_certificate.
I would like to have this hook for course_quiz .

Let me know, as I can test and develop the same on our staging server.

Thanks
Prachait

djdevin’s picture

Status: Active » Needs review

There is some work going on in 6.x-1.x that can be tested, but not ready for production.

Currently you should be able to select an object to include in the final course grade.

The final course grade will be from the last course object that has that option checked.

djdevin’s picture

Status: Needs review » Fixed

There's a test for this too.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Link Added

  • Commit 0ef85d5 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1718046: fix typo causing grade_result not to save
    
  • Commit 70c4406 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1718046: final course grade
    
  • Commit 00f9eb0 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1718046: make course_quiz gradeable
    
  • Commit 9ad3074 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1718046: add access plugin for blocking based on grade
    
  • Commit b03b817 on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    Issue #1718046: added test cases
    
  • Commit 31dc50e on 6.x-1.x, 7.x-1.x, 7.x-1.x-fieldable-entities, course-object-entity-view by djdevin:
    #1718046: tests for course objects that require a grade