[Building Sakai] sitestats 2.0 does not report the event of grade book item new in sakai 2.6

Kimberly Ma this4it at gmail.com
Wed May 13 20:09:35 PDT 2009


Hi, Folks,

We are testing sitestats 2.0 reports events generated by grade book, found
out it does not report on grade book item new event. By comparing the grade
book src. code of sakai 2.6 to 2.5, found out 2.6 doesn't post event for
gradebook.newItem in AssignmentBean.java or any other java files. Did I miss
something here ? or it is a bug.

AssignmentBean.java in sakai 2.5,

public String saveNewAssignment() {
        try {
            Category selectedCategory = retrieveSelectedCategory();
            if (selectedCategory != null) {

getGradebookManager().createAssignmentForCategory(getGradebookId(),
selectedCategory.getId(), assignment.getName(),
assignment.getPointsPossible(), assignment.getDueDate(), new
Boolean(assignment.isNotCounted()),new Boolean(assignment.isReleased()));
            }
            else {
                getGradebookManager().createAssignment(getGradebookId(),
assignment.getName(), assignment.getPointsPossible(),
assignment.getDueDate(), new Boolean(assignment.isNotCounted()),new
Boolean(assignment.isReleased()));
            }

getGradebookBean().getEventTrackingService().postEvent("gradebook.newItem","/gradebook/"+getGradebookId()+"/"+assignment.getName());

FacesUtil.addRedirectSafeMessage(getLocalizedString("add_assignment_save",
new String[] {assignment.getName()}));
        } catch (ConflictingAssignmentNameException e) {
            logger.error(e);

FacesUtil.addErrorMessage(getLocalizedString("add_assignment_name_conflict_failure"));
            return "failure";
        }
        return "overview";
    }

many changes in the same function public String saveNewAssignment()in sakai
2.6, includes missing call to postEvent.

Thanks,

Best Regards,
-Kim
Rutgers, OIRT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090513/5baf9e32/attachment.html 


More information about the sakai-dev mailing list