Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: Feedback.

Development:Feedback

From MoodleDocs
Revision as of 20:57, 9 April 2007 by Anthony Borrow (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Feedback module available at http://moodle.org/mod/data/view.php?d=13&rid=95 written by Andreas Grabs is being considered for inclusion into Moodle 1.9. A couple of issues that that have come up for discussion among developers and users include how to handle the anonymity of completed responses and converting the feedback items (i.e. questions) to use the Moodle question database.

Anthony Borrow has begun working on a series of hacks to handle anonymity differently. Andreas had programmed the module to record the userid as 0 for anonymous responses. Anthony's hacks record the userid but does not display the user name when showing results. The advantage to this approach is that feedback results for anonymous feedbacks now can be viewed by group. In addition, the completion of a feedback creates a log entry for that user. While this does limit the anonymity it provides some of the accountability sometimes necessary in schools.

Anthony created 2 additional fields in the feedback_completed table called random_response and anonymous_response (random_response and anonymous_response).

The random_response field holds the response number of the anonymous entry. In order to prevent the anonymous entries from constantly shuffling as they were being viewed Anthony created the random_response field. If there is an anonymous entry with no assigned response number then the array of anonymous responses is shuffled and stepped through to assign new numbers which prevents the newer entries from always being at the end.

The anonymous_response field holds the anonymity status of that particular response. If it is 1 (the default) then it is an anonymous response. If it is 2 (as previously defined by Andreas in \feedback\lib.php) then it is not anonymous.

Changes were made to the following files:

/feedback/lib.php /feedback/view.php /feedback/completed.php /feedback/show_entries.php /feedback/show_entries_anonym.php /lang/en_utf8/feedback.php

Anthony has not created an additional submit button for non-anonymous surveys to give the student an option of submitting the survey anonymously. It would require creating another feedback setting such as Allow Anonymous. Alternatively, we could have 4 different settings. Anonymous (as I have defined anonymous with the userid being stored in the feedback_completed table but user names not showing on response views), Non-anonymous (all completed feedback responses are recorded with the userid and the user's name is shown when viewing results), Allow anonymous (userids are stored in the feedback_completed table; however, the user is given the option to submit the results anonymously so that the user's name will not be displayed when viewing the responses), and Strictly anonymous (userids are not stored in the feedback_completed table and logs are not kept of who completes the survey). For secondary education, I can see where on an administratively level it may be desirable to have a setting for the Moodle site administrator to