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

Changing group membership via "upload users" reports no users modified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1, 3.7.3, 3.8
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Have a course with shortname "Activity examples" and groups 'Group A' and 'Group B'.
      2. Have a user with username s1 and email address s1@example.com enrolled in this course.
      3. Add s1 to 'Group A'
      4. As administrator, go to 'Upload users' admin/tool/uploaduser
      5. Upload the attached csv and click 'Upload users'
      6. Under Settings,
        1. Set Upload type to 'Update existing users only'
        2. "Existing user details" to "Override with file"
        3. "Allow renames" to "Yes"
      7. Click 'Upload users'.
      8. Verify that in the results 'Users updated: 1' does appear.

      Show
      Have a course with shortname "Activity examples" and groups 'Group A' and 'Group B'. Have a user with username s1 and email address s1@example.com enrolled in this course. Add s1 to 'Group A' As administrator, go to 'Upload users' admin/tool/uploaduser Upload the attached csv and click 'Upload users' Under Settings, Set Upload type to 'Update existing users only' "Existing user details" to "Override with file" "Allow renames" to "Yes" Click 'Upload users'. Verify that in the results 'Users updated: 1' does appear.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull 3.8 Branch:
    • Pull 3.9 Branch:
    • Pull Master Branch:
      MDL-37652-master

      Description

      If you go to Site admin > users > Accounts > upload users you can upload a csv containing user details. See http://docs.moodle.org/22/en/Upload_users#Valid_upload_file_for_testing for example.

      If you alter a user's group membership this way the upload result screen reports 0 users modified. See attached screenshot for an example.

      The group membership is actually updated and updating something like the user's suspended flag causes the count to be incremented correctly. It's just that if all you've done is modified group membership the number of modified users is mis-reported creating doubt as to whether or not everything worked.

        Attachments

        1. MDL-37652.csv
          0.1 kB
        2. MDL-37652-after.png
          MDL-37652-after.png
          145 kB
        3. UploadUserOddity.png
          UploadUserOddity.png
          156 kB

          Issue Links

            Activity

              People

              Assignee:
              lucaboesch Luca Bösch
              Reporter:
              andyjdavis Andrew Davis
              Peer reviewer:
              Peter Dias
              Integrator:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 5 minutes
                  2h 5m