## Reports: My Feedback

report_myfeedback
Maintained by Jessica Gramp
A Moodle Report that shows all student feedback on one page.
471 sites
52 fans

The Moodle My Feedback report appears in the My Profile > Activity Reports menu and allows students to see an overview of all their grades and feedback for assessment activities such as Moodle Assignments, Turnitin Assignments (v1 & v2), Workshops and Quizzes. It provides their visible grades and a link to their submission and any feedback that has been released to them. Note: anything hidden in the gradebook or on the course will not display.

The report is intended to help students understand the variety of feedback they receive. It can also be used to identify similarities between feedback received from across modules and years to help students see how they can improve their work in future assessments.

See how it's being used at UCL:

### Contributors

Alexis Nelson: Developer
Delvon Forrester: Developer

• Thu, 24 May 2018, 9:45 PM
Is this not the place to post questions? I can't get this plugin installed... If I'm asking at the wrong place, please redirect me to the right place
• Thu, 24 May 2018, 9:58 PM
Well, found the problem. If you look at index.php you will see a whole lot of spaces before the command <?php starts. Remove all these spaces and you're good to go...
https://github.com/jgramp/moodle-report_myfeedback/blob/master/index.php
• Wed, 30 May 2018, 2:14 AM
Thanks Richard. I've fixed this in v2.14, along with another small change. I appreciate you locating the error and reporting it so it could easily be resolved for everyone. Cheers.
• Wed, 30 May 2018, 2:17 AM
Hi Mohamed.

I don't know if this works with MS SQL. I've never come across anyone using this DB before and wasn't actually aware it was possible to run Moodle on MS SQL until now. It's been tested primarily on MySQL and also postgres, although there are some issues still with the latter I believe, looking at some of the comments from people using postgres. Please share a fix if you find one.
Thank you.
• Wed, 30 May 2018, 2:22 AM
Hi Dinis.

It looks like these are warnings, rather than errors. It seems the way images are referenced has changed recently, although I think the old method is still supported as far as I can tell. We're running Moodle 2.4 and it seems to be working ok. I've raised a Moodle Tracker ticket for this:
https://tracker.moodle.org/browse/CONTRIB-7191

If you resolve this, please share the code back to the community.
Thank you.
• Wed, 30 May 2018, 2:32 AM
Hi Marcel,

Apologies for the delay in replying. I missed your message somehow. Yes, we have the report working for our students. You need to update the student role to include MyFeedback access. You can view the installation guide here, which contains information about the permissions you need to enable for each role you wish to access the report. See: https://docs.moodle.org/35/en/report/myfeedback/install#Permissions

Thank you.
• Thu, 31 May 2018, 10:26 PM
Hello everyone.

Has anyone written any behat test scripts for My Feedback?
• Fri, 8 Jun 2018, 3:58 PM
Hi, belated commment, we are using PostgreSql and had some problems with workshop braking the view. We fixed it with :
report/myfeedback/lib.php -> // Is there any feedback file?
- $sql = "SELECT DISTINCT max(wa.id) as id, wa.feedbackauthorattachment + /*$sql = "SELECT DISTINCT max(wa.id) as id, wa.feedbackauthorattachment */

+ \$sql = "SELECT count(wa.feedbackauthorattachment) AS feedbackauthorattachment
FROM {workshop_assessments} wa
JOIN {workshop_submissions} ws ON wa.submissionid=ws.id
AND ws.authorid=? AND ws.id=? and ws.example = 0";

• Mon, 2 Jul 2018, 4:24 PM
Thanks Juha. I'll take a look at this.
I'm not familiar with this particular code, but I was wondering if leaving out the DISTINCT max() might mean you end up with a different output? I know at one point we saw duplicates when multiple feedback was left by a tutor. We only wanted to display the latest version. Hence the DISTINCT max() value being returned (I think). Now you are returning a count of another field, I wonder if this will still work the same way. Have you tested it with a tutor or peer having changed the feedback they leave for a student in the workshop? I believe you might end up with duplicates / old feedback showing in the report. What is the error you were receiving before?
Thank you for contributing.
• Thu, 26 Jul 2018, 3:58 PM
Jessica Gramp - Still testing this, good point about the doubles. Will test what happens.
• Fri, 7 Sep 2018, 6:59 PM
We are running moodle 3.4., installed latest plugin version, and getting this kind of error

Debug info: SQLState: 42000
Error Code: 102
Message: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Incorrect syntax near 'limit'.

SELECT roleid FROM mdl_role_context_levels WHERE contextlevel = '30' limit 1
[array (
0 => 30,
)]
×Stack trace:
line 486 of \lib\dml\moodle_database.php: dml_read_exception thrown
line 324 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end()
line 431 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end()
line 896 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->do_query()
line 972 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->get_recordset_sql()
line 1571 of \lib\dml\moodle_database.php: call to sqlsrv_native_moodle_database->get_records_sql()
line 1161 of \report\myfeedback\lib.php: call to moodle_database->get_record_sql()
line 151 of \report\myfeedback\index.php: call to report_myfeedback->get_personal_tutor_id()
• Thu, 27 Sep 2018, 6:47 PM
Hi Jessica et al,
Sorry to trouble you. I’m having problems trying to get your MyFeedback plugin to work.
I’ve installed it on a development server running Moodle 3.5 with the Boost theme. I’ve adjusted the permissions for both students and tutors but I do not see anything in the MyFeedback table (see image - https://imgur.com/a/tYfpHOP ). The gradebook is visible and there are grades and feedback in it and these are visible to students. I suspect the issue is that there are no courses for the current academic year. However, I do not know how to define the current academic year. In the settings page for the plugin I left everything as default., i.e. DB Host – [empty], DB Name– [empty] etc.
Any ideas where I should start looking for a solution?
Thanks
Bob Ridge-Stearn
Newman University, Birmingham, UK.
• Mon, 1 Oct 2018, 6:16 AM
Hi Bob,
It seems like you aren't enrolled as a tutor on those courses. Site admin access won't give you the adequate permissions to see students' grades and feedback via the report. You need to be enrolled as a tutor on the relevant courses to see the students' grades and feedback for that course. When you do this you will see a new tab called 'My students'. You can see this tab in the screenshots on this page.
The current year settings are no longer used, since the archiving feature never passed testing, so we don't recommend it for production systems. The report will simply display anything in your current installation that you have permission to see, so you don't need to worry about this. The archive settings were there to point to other Moodle installations for institutions who archive off their courses on a yearly basis, but as I mentioned I would avoid using this.
I hope this helps. Please let me know if this resolves the issue.
Jess
• Mon, 1 Oct 2018, 10:59 PM
Thanks Jessica, OK we can rule out the "current year" idea. However, my screenshot was of a student view. That student is enrolled on three courses and has grades and feedback on two assignments on each course. The student role permissions are: report/myfeedback:student - ALLOW. (The student does see the grades and feedback in the Moodle gradebook.)

The tutor does see all the right tabs according to your screenshots but no data.

Another thing I should mention is that I reset the roles on our development server to ensure they were 'out of the box'. When I looked for Teacher - gradereport/myfeedbacklink:view it is not there.

Bob
• Wed, 10 Oct 2018, 6:24 PM
All sorted! My problem ( in case others find themselves in the mess I got into) was that I inadvertently changed the shortname for the editingteacher role.