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

Gradebook does not import if target course has gradebook categories

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.3, 2.6.6
    • Fix Version/s: None
    • Component/s: Backup, Gradebook
    • Testing Instructions:
      Hide

      Simple restore of a course

      1. Create a course.
      2. Enrol some students
      3. Add some assignments, lessons, or quizzes.
      4. Grade students to put grades into the gradebook.
      5. Backup the course.
      6. Restore as a new course.
      7. Check the gradebook and make sure that the grades are the same.

      Simple restore of a course with categories

      1. With the course created above add some grade categories.
        1. In a course go to the grades page (Boost - in the side navigation)
        2. Click the setup tab.
        3. At the bottom click the "Add category" button.
        4. Add a category name and click "Save changes"
      2. Move one of the activities into the grade category.
      3. Backup the course.
      4. Restore as a new course.
      5. Check the gradebook and make sure that the grades are the same.

      Restore of a course with categories into another course (no categories - merge).

      1. Create a new second course.
      2. Restore the original course into this new empty course.
        1. When choosing where to restore the course pick "Restore into an existing course"
        2. Keep the default of "Merge the backup course into the existing course"
        3. Select the new second course and click continue.
      3. Check the gradebook and make sure that the grades are the same.

      Restore of a course with categories into another course (with categories - merge).

      1. Create a new third course.
      2. Go to the gradebook and add some grade categories.
      3. Restore the original course into this new empty course.
        1. When choosing where to restore the course pick "Restore into an existing course"
        2. Keep the default of "Merge the backup course into the existing course"
        3. Select the new third course and click continue.
      4. Check the gradebook and make sure that the grades are combined and all categories are present.

      Restore of a course with categories into another course (with categories - merge - same category name).

      1. Create a new fourth course.
      2. Go to the gradebook and add some grade categories. Make sure that one of the grade category names is the same as one in the original course that we will be restoring.
      3. Restore the original course into this new empty course.
        1. When choosing where to restore the course pick "Restore into an existing course"
        2. Keep the default of "Merge the backup course into the existing course"
        3. Select the new fourth course and click continue.
      4. Check the gradebook and make sure that the grades are the same. Check that there are now two grade categories with the same name.

      Restore of a course with categories into another course (deleting target course).

      1. Create a new fifth course.
      2. Go to the gradebook and add some grade categories. Make sure that one of the grade category names is the same as one in the original course that we will be restoring.
      3. Restore the original course into this new empty course.
        1. When choosing where to restore the course pick "Restore into an existing course"
        2. This time select "Delete the contents of the existing course and then restore"
        3. Select the new fifth course and click continue.
      4. Check the gradebook and make sure that the grades are just from the original course.
      Show
      Simple restore of a course Create a course. Enrol some students Add some assignments, lessons, or quizzes. Grade students to put grades into the gradebook. Backup the course. Restore as a new course. Check the gradebook and make sure that the grades are the same. Simple restore of a course with categories With the course created above add some grade categories. In a course go to the grades page (Boost - in the side navigation) Click the setup tab. At the bottom click the "Add category" button. Add a category name and click "Save changes" Move one of the activities into the grade category. Backup the course. Restore as a new course. Check the gradebook and make sure that the grades are the same. Restore of a course with categories into another course (no categories - merge). Create a new second course. Restore the original course into this new empty course. When choosing where to restore the course pick "Restore into an existing course" Keep the default of "Merge the backup course into the existing course" Select the new second course and click continue. Check the gradebook and make sure that the grades are the same. Restore of a course with categories into another course (with categories - merge). Create a new third course. Go to the gradebook and add some grade categories. Restore the original course into this new empty course. When choosing where to restore the course pick "Restore into an existing course" Keep the default of "Merge the backup course into the existing course" Select the new third course and click continue. Check the gradebook and make sure that the grades are combined and all categories are present. Restore of a course with categories into another course (with categories - merge - same category name). Create a new fourth course. Go to the gradebook and add some grade categories. Make sure that one of the grade category names is the same as one in the original course that we will be restoring. Restore the original course into this new empty course. When choosing where to restore the course pick "Restore into an existing course" Keep the default of "Merge the backup course into the existing course" Select the new fourth course and click continue. Check the gradebook and make sure that the grades are the same. Check that there are now two grade categories with the same name. Restore of a course with categories into another course (deleting target course). Create a new fifth course. Go to the gradebook and add some grade categories. Make sure that one of the grade category names is the same as one in the original course that we will be restoring. Restore the original course into this new empty course. When choosing where to restore the course pick "Restore into an existing course" This time select "Delete the contents of the existing course and then restore" Select the new fifth course and click continue. Check the gradebook and make sure that the grades are just from the original course.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_26_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-34790-311
    • Pull Master Branch:
      MDL-34790-master
    • Story Points:
      3
    • Sprint:
      Activity Sprint 4, 4.0 holding pattern, 4.0 holding pattern 2, 4.0 holding pattern 12, 4.0 Navigation blitz

      Description

      When you create a blank course and add gradebook categories, then you try to import a course into it that has an existing gradebook structure it only imports the activities and adds them to the bottom of the gradebook list. Thus not importing the gradebook.

      Steps to Recreate:

      1. Create a Course, do nothing to it
      2. Go to the grade book
      3. Add Gradebook categories (Example: Make 3 called Fing, Fang, Foo)
      4. Go to the main course page and import a course that has a completely set up grade book, including its own (different) categories containing grade items
      5. Use default import settings
      6. Look at grade book

      Activities imported but categories did not so they are all listed under the categories created in course before import

      If you create a course and do not do anything to the gradebook, it imports fine.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              kmccarthy Kevin McCarthy
              Peer reviewer:
              Mihail Geshoski
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              8 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 weeks, 4 hours
                  2w 4h