Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.1
    • Fix Version/s: DEV backlog
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Create an advanced upload assignment.
      login as a student, submit some files.
      log back in as teacher, view submissions page and hit "download all assignments" in top right

      make some changes to the files in the zip - annotations etc, zip files up again (make sure there isn't an extra folder and all files are in the root of the zip)
      use the bulk upload form to upload response files (link under the download all submissions page)
      then click on "update" links in submissions view to see the response file has been uploaded.

      Show
      Create an advanced upload assignment. login as a student, submit some files. log back in as teacher, view submissions page and hit "download all assignments" in top right make some changes to the files in the zip - annotations etc, zip files up again (make sure there isn't an extra folder and all files are in the root of the zip) use the bulk upload form to upload response files (link under the download all submissions page) then click on "update" links in submissions view to see the response file has been uploaded.
    • Affected Branches:
      MOODLE_21_STABLE
    • Pull Master Branch:
      master_MDL-28335

      Description

      We have a requirement for our academics to be able to bulk upload feedback files. This may be annotated student submissions, or new files. We also need to be able to upload feedback for students that have not submitted. We have already developed this feature for 1.9 but it has to be rewritten for 2.1 due to the major changes on the file system.

      Below is a brief outline of the proposal:

      Edit the existing bulk download code:
      To include blank files for students that have not submitted? Need to decide which file extension to use, maybe txt? Naming convention would be no_submission_<userid>.txt

      Create a form object for bulk upload which has a filemanager element
      (similar to class mod_assignment_upload_response_form - mod/assignment/type/upload/assignment.class.php ln 1170)

      On upload:
      Write new function upload_responses() similar to upload_response() - mod/assignment/type/upload/assignment.class.php ln 498
      Stores zip file in virtual temp location
      Unzips
      Loops through the contents
      Extracts the student id from the file name
      Uses function file_postupdate_standard_filemanager() to move each file to the correct virtual location

      Error checking:
      Log and give message regarding any files which fail eg if student id is not valid

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: