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

Nuno Fernandes nuno at ufp.edu.pt
Thu May 14 01:05:42 PDT 2009


Kimberly,

"gradebook.newItem" is not being generated on my installation either. I have
created a new JIRA for it:

http://bugs.sakaiproject.org/jira/browse/SAK-16326


Thanks,
Nuno


2009/5/14 Kimberly Ma <this4it at gmail.com>

> 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
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>



-- 
Nuno Fernandes  [www.linkedin.com/in/nfgrilo]
Software Developer - UFP-UV  [Universidade Virtual]
Software Developer - Sakai Foundation  [sakaiproject.org]
Sakai Fellow 2008 - Sakai Foundation  [
confluence.sakaiproject.org/confluence/x/FIF9AQ]

Universidade Fernando Pessoa  [www.ufp.pt]
Praça 9 de Abril, 349
4249-004 Porto
tel: + 351 22 507 13 00
fax: + 351 22 550 82 69
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090514/98d7ec58/attachment.html 


More information about the sakai-dev mailing list