Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63591

Update core_grade privacy provider to export/delete files

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide
      Prerequisite.
      1. A course with a user enrolled as a student.
      2. A course with a user enrolled as a teacher.
      3. An assignment with default settings.
      4. An audio file on your computer.
      5. A video file on your computer.
      6. A server set-up to allow you to upload enough data to upload the audio file, video file. This may require you updating your settings in php.ini, eg.

        ; Maximum allowed size for uploaded files.
        upload_max_filesize = 40M
         
        ; Must be greater than or equal to upload_max_filesize
        post_max_size = 40M
        

        Once changed you will need to restart your web server.

      7. Use Firefox.
      Test 1.
      1. Log in as a teacher.
      2. Click on the assignment.
      3. Click the 'Grade' button.
      4. Add an image.
      5. Upload an audio file.
      6. Upload a video file.
      7. Click on 'Save changes'.
      8. Click on the name of the assignment at the top.
      9. Click on the 'Grade' button.
      10. Confirm the feedback loads with the data you had entered previously.
      11. Edit the feedback (add a new image, make a new comment, delete an image etc) and save. Do this multiple times.
      12. Visit the gradebook.
      13. Go to the 'User report'.
      14. Confirm it is updated with the correct information.
      15. Go to the 'Grade history' report.
      16. Confirm the history is correct and shows the changes and the media/files.
      17. Add the attached file test_export_user_data.php to your wwwroot.
      18. Run php test_export_user_data.php --username=XYZ where XYZ is the login for your student (eg, s1, s2, s3).
      19. Open the directory that is shown in the output.
      20. Open index.html.
      21. Browse to 'Category' > 'Course' > 'Grades' (where Category and Course are the ones you used in this test).
      22. Click on data.json and confirm you see the media.
      23. Click on history.json and confirm you see the media.
      Show
      Prerequisite. A course with a user enrolled as a student. A course with a user enrolled as a teacher. An assignment with default settings. An audio file on your computer. A video file on your computer. A server set-up to allow you to upload enough data to upload the audio file, video file. This may require you updating your settings in php.ini, eg. ; Maximum allowed size for uploaded files. upload_max_filesize = 40M   ; Must be greater than or equal to upload_max_filesize post_max_size = 40M Once changed you will need to restart your web server. Use Firefox. Test 1. Log in as a teacher. Click on the assignment. Click the 'Grade' button. Add an image. Upload an audio file. Upload a video file. Click on 'Save changes'. Click on the name of the assignment at the top. Click on the 'Grade' button. Confirm the feedback loads with the data you had entered previously. Edit the feedback (add a new image, make a new comment, delete an image etc) and save. Do this multiple times. Visit the gradebook. Go to the 'User report'. Confirm it is updated with the correct information. Go to the 'Grade history' report. Confirm the history is correct and shows the changes and the media/files. Add the attached file test_export_user_data.php to your wwwroot. Run php test_export_user_data.php --username=XYZ where XYZ is the login for your student (eg, s1, s2, s3). Open the directory that is shown in the output. Open index.html. Browse to 'Category' > 'Course' > 'Grades' (where Category and Course are the ones you used in this test). Click on data.json and confirm you see the media. Click on history.json and confirm you see the media.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-63591_master

      Description

      MDL-63590 introduced the ability to add files to the gradebook area (GRADE_FILE_COMPONENT) with two new file areas GRADE_FEEDBACK_FILEAREA and GRADE_HISTORY_FEEDBACK_FILEAREA). These need to be exported for users.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m