[Contrib: Evaluation System] [Building Sakai] Evaluation system instructors date, backwards?

Nicola Monat-Jacobs nicola at longsight.com
Mon Mar 19 17:43:18 PDT 2012


Josh -

I'm fwding your query to the Evaluation System working group.....

On Mon, Mar 19, 2012 at 4:29 PM, Joshua Swink <joshua.swink at gmail.com>wrote:

> I think this may be a flaw in the evaluation system but I wanted to check
> with the list before possibly filing a bug.
>
> In an evaluation's settings under "Evaluation results" is a date value
> which is entered next to "Instructors in the courses this evaluation is
> assigned to can view results". This is the date after which instructors
> are permitted to see the results of evaluations done on them. It is stored
> in the EvalEvaluation object as instructorsDate. The comment in
> EvalEvaluation.java says:
>
>     /**
>      * if {@link #instructorViewResults} is true and this is null then
> non-owner instructors can
>      * view results as soon as the evaluation is closed, otherwise they
> can view results after this
>      * date
>      */
>     private Date instructorsDate;
>
> Now the code that makes use of it is found in
> ReportingPermissionsImpl.java, as follows:
>
>                     Date checkDate = eval.getInstructorsDate();
>                     if ( (checkDate == null && EvalUtils.checkStateAfter(eval.getState(), EvalConstants.EVALUATION_STATE_VIEWABLE, true))
>                             || (checkDate != null && checkDate.after( new Date() ))
>                             || (viewSurveyResultsIgnoreDates != null && viewSurveyResultsIgnoreDates)) {
>                         // user is allowed to view based on state and settings so check the groups below
>                         allowedInstructor = true;
>                     }
>
>
> Should it be (new Date()).after(checkDate) instead of checkDate.after(new
> Date())? It seems to be backward now.
>
> This code snippet was taken from the sakai project svn:
>
>
> https://source.sakaiproject.org/contrib/evaluation/trunk/impl/src/java/org/sakaiproject/evaluation/logic/ReportingPermissionsImpl.java
>
> Josh
>
> _______________________________________________
> 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"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/evaluation/attachments/20120319/a4b0f694/attachment.html 


More information about the evaluation mailing list