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

Add import function for grouping

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: Groups
    • Affected Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      MDL-69574-Master
    • Testing Instructions:
      Hide

      CSV files

      1. Download all attached csv files.

      Import Groupings

      1. Create a course: Course A
      2. Go to course setting > Users > Group >  select Groupings tab
      3. Import groupings using "grouping_only_empty.csv" Expected:
        • "Empty file" error is displayed.
      4. Import groupings using "grouping_invalid_field.csv" Expected:
        • "Invalid field" error is displayed.
      5. Import groupings using "grouping_none_required.csv" Expected:
        • "required grouping header" error is displayed
      6. Import groupings using "grouping_only.csv". Expected:
        • 2 groupings are created: grouping A, grouping B
        • Warning message for existing grouping (Group A)
      7. Import groupings using "grouping_with_group.csv". Expected:
        • 3 groupings are created: grouping C, grouping D,  grouping E
        • There is 1 group in grouping C: Group 1
        • There are 2 groups in grouping D: Group 2, Group 3
      8. Remove all groups and groupings:
      9. Import groupings using "grouping_with_group_alternative_header.csv". Expected:
        • 3 groupings are created: grouping C, grouping D,  grouping E
        • There is 1 group in grouping C: Group 1
        • There are 2 groups in grouping D: Group 2, Group 3

      Import groups (Need to test as I have also refactored it)

      1. Set ID number for course A (we will this ID number for testing later)
      2. Create another course: Course B
      3. Go to course B setting > Users > Group >  select Group tab
      4. Import groups using "groups_invalid_field.csv" Expected:
        • "Invalid field" error is displayed.
      5. Import groups using "groups_none_required.csv" Expected:
        • "required groupname header" error is displayed
      6. Import groups using "groups_only.csv" Expected:
        • Group 1 and group 2 are created in course B
      7. Remove all groups in Course A
      8. Edit "groups_with_idnumber.csv", replace the idnumber with the idnumber of course A
      9. Import groups using "groups_with_idnumber.csv" Expected:
        • Group 1 and group 2 are created in course A
      10. Edit "groups_with_course_shortname.csv", replace the shortname with the shortname of course A
      11. Import groups using "groups_with_course_shortname.csv" Expected:
        • Group 1 and group 2 are created in course A
      12. Import groups using "groups_with_grouping.csv" Expected:
        • "Group 1" is assigned to "grouping A"
        • "Group 2" is assigned to "grouping B"
      Show
      CSV files Download all attached csv files. Import Groupings Create a course: Course A Go to course setting > Users > Group >  select Groupings tab Import groupings using " grouping_only_empty.csv " Expected: "Empty file" error is displayed. Import groupings using " grouping_invalid_field.csv " Expected: "Invalid field" error is displayed. Import groupings using " grouping_none_required.csv " Expected: "required grouping header" error is displayed Import groupings using " grouping_only.csv ". Expected: 2 groupings are created: grouping A, grouping B Warning message for existing grouping (Group A) Import groupings using " grouping_with_group.csv ". Expected: 3 groupings are created: grouping C, grouping D,  grouping E There is 1 group in grouping C: Group 1 There are 2 groups in grouping D: Group 2, Group 3 Remove all groups and groupings: Import groupings using " grouping_with_group_alternative_header.csv ". Expected: 3 groupings are created: grouping C, grouping D,  grouping E There is 1 group in grouping C: Group 1 There are 2 groups in grouping D: Group 2, Group 3 Import groups (Need to test as I have also refactored it) Set ID number for course A (we will this ID number for testing later) Create another course: Course B Go to course B setting > Users > Group >  select Group tab Import groups using " groups_invalid_field.csv " Expected: "Invalid field" error is displayed. Import groups using " groups_none_required.csv " Expected: "required groupname header" error is displayed Import groups using " groups_only.csv " Expected: Group 1 and group 2 are created in course B Remove all groups in Course A Edit " groups_with_idnumber.csv ", replace the idnumber with the idnumber of course A Import groups using " groups_with_idnumber.csv " Expected: Group 1 and group 2 are created in course A Edit " groups_with_course_shortname.csv ", replace the shortname with the shortname of course A Import groups using " groups_with_course_shortname .csv " Expected: Group 1 and group 2 are created in course A Import groups using " groups_with_grouping.csv " Expected: "Group 1" is assigned to "grouping A" "Group 2" is assigned to "grouping B"

      Description

      It would be great if we can import grouping by uploading csv file

        Attachments

        1. buttons no padding.png
          buttons no padding.png
          14 kB
        2. grouping_invalid_field.csv
          0.1 kB
        3. grouping_none_required.csv
          0.0 kB
        4. grouping_only_empty.csv
          0.0 kB
        5. grouping_only.csv
          0.0 kB
        6. grouping_with_groups_alternative_header.csv
          0.1 kB
        7. grouping_with_groups.csv
          0.1 kB
        8. groups_invalid_field.csv
          0.2 kB
        9. groups_none_required.csv
          0.2 kB
        10. groups_only.csv
          0.1 kB
        11. groups_with_course_idnumber.csv
          0.2 kB
        12. groups_with_course_shortname.csv
          0.2 kB
        13. groups_with_grouping.csv
          0.2 kB
        14. MDL-69574 import form.png
          MDL-69574 import form.png
          53 kB
        15. MDL-69574 proposed.png
          MDL-69574 proposed.png
          35 kB
        16. MDL-69574 wording.png
          MDL-69574 wording.png
          22 kB

          Activity

            People

            Assignee:
            Nguyen Nathan Nguyen
            Reporter:
            Nguyen Nathan Nguyen
            Peer reviewer:
            Simey Lameze Simey Lameze
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 18 minutes
                4h 18m