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

Handle import/exporting of gradebook when files are present

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.6
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide

      PHPUnit tests provided.

      Assuming the following:

      1. You have a course that has an assignment
      2. The assignment should have the Feedback comments setting enabled.
      3. You have a student that has submitted the assignment

      Testing instructions - for export functionality(w/ openDoc, plain text, xls and xml)

      1. Login into as the teacher/admin
      2. Go to the course and click on the assignment 
      3. Grade the assignment from the student providing a combo of text and image/audio/video link with files stored on the server and not imported into the server and save
      4. Go back to the assignment and export the gradebook with feedback
      5. You should get a file with the img/audio/video links stripped and should only contain the text components from 3
      6. Confirm that there's no markup (from the debugging message i.e. "Before calling format_text(), the content must be processed with file_rewrite_pluginfile_urls()" ) on the exported files
      7. Confirm that the URLs in the feedback comments point correctly to the files.
      Show
      PHPUnit tests provided. Assuming the following: You have a course that has an assignment The assignment should have the Feedback comments setting enabled. You have a student that has submitted the assignment Testing instructions - for export functionality(w/ openDoc, plain text, xls and xml) Login into as the teacher/admin Go to the course and click on the assignment  Grade the assignment from the student providing a combo of text and image/audio/video link with files stored on the server and not imported into the server and save Go back to the assignment and export the gradebook with feedback You should get a file with the img/audio/video links stripped and should only contain the text components from 3 Confirm that there's no markup (from the debugging message i.e. "Before calling format_text(), the content must be processed with file_rewrite_pluginfile_urls()"  ) on the exported files Confirm that the URLs in the feedback comments point correctly to the files.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-63488-master

      Description

      MDL-27520 added the ability to leave files as feedback in the gradebook. We need to decide what to do when we 'Import' or 'Export' these in the gradebook. Currently it breaks the process. One option would be to ignore any files and deal with them at a later stage. I think this is the most reasonable for us to make the 3.6 deadline.

      This issue was created before MDL-27520 was integrated, it is a follow-up.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 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 - 1 hour, 30 minutes
                  1h 30m