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

Import fails if grade import data contains nonexistent user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.6.5, 2.7.2
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide

      In a course with at least one gradable activity and at least one student do a txt grade export.

      Modify the export. Change a student's email address to an address that doesn't exist.

      Import that file. Map email address to email address. Map one of the activities to itself.

      You should get an error telling you the student that caused the import to fail and stating that no data was actually imported.

      Show
      In a course with at least one gradable activity and at least one student do a txt grade export. Modify the export. Change a student's email address to an address that doesn't exist. Import that file. Map email address to email address. Map one of the activities to itself. You should get an error telling you the student that caused the import to fail and stating that no data was actually imported.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-46600_import_failed
    • Story Points:
      13
    • Sprint:
      BACKEND Sprint 15

      Description

      When matching all the data records in the file, mapping the user, if there is even one record which can’t be matched in Moodle, the entire import fails. There is adequate diagnostic, displaying the first user it couldn’t find, but doesn’t tell the instructor no data was imported.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Sep/14