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

Multiple entries in the students at risk report when a user has multiple enrolment methods for a single course

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      Firstly, you will need to generate some insights for a certain model.

      1. Login as Admin.
      2. Create a M size test Course (Site administration > Development > Make test course)
      3. Edit the course:
        • Set the course start date to yesterday
        • Set the course end date an hour from now
      4. Remove manually ~250 users (you can filter them and use the bulk option "With selected users" "Delete selected user enrolments" in the "Manual enrolments" section to make it faster).
      5. Enrol the admin user as student.
      6. Check course Participants and remember one of the students enrolled.
      7. Go to Site administration > Users > Cohorts
      8. Add a new cohort
      9. Add the student from step 3 as cohort member
      10. Go to the course 'Enrolment methods' management.
      11. Add a new 'Cohort sync' method for the Cohort created in step 6
      12. Go to Site administration > Analytics > Analytics settings
        • Set "Analytics processes execution via command line only" = "No"
        • Save changes.

      Test

      1. Go to Site administration > Analytics > Analytics models
      2. Enable 'Students at risk of dropping out' model in case is disabled using 'Edit' action.
        1. Enabled = true
        2. Analysis interval = From start to end
        3. Save changes
      3. For 'Students at risk of dropping out' choose 'Execute scheduled analysis' action (it may take a little bit long to run it).
      4. Click on 'Continue'
      5. From 'Students at risk of dropping out' Insights drop down select 'Execute scheduled analysis' the course created in step 6
      6. Confirm the student added to the cohort has one entry only in the insights table.

       
       
       
       

      Show
      Setup Firstly, you will need to generate some insights for a certain model. Login as Admin. Create a M size test Course (Site administration > Development > Make test course) Edit the course: Set the course start date to yesterday Set the course end date an hour from now Remove manually ~250 users (you can filter them and use the bulk option "With selected users" "Delete selected user enrolments" in the "Manual enrolments" section to make it faster). Enrol the admin user as student. Check course Participants and remember one of the students enrolled. Go to Site administration > Users > Cohorts Add a new cohort Add the student from step 3 as cohort member Go to the course 'Enrolment methods' management. Add a new 'Cohort sync' method for the Cohort created in step 6 Go to Site administration > Analytics > Analytics settings Set "Analytics processes execution via command line only" = "No" Save changes. Test Go to Site administration > Analytics > Analytics models Enable 'Students at risk of dropping out' model in case is disabled using 'Edit' action. Enabled = true Analysis interval = From start to end Save changes For 'Students at risk of dropping out' choose 'Execute scheduled analysis' action (it may take a little bit long to run it). Click on 'Continue' From 'Students at risk of dropping out' Insights drop down select 'Execute scheduled analysis' the course created in step 6 Confirm the student added to the cohort has one entry only in the insights table.        
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-67119-310
    • Pull 3.11 Branch:
      MDL-67119-311
    • Pull Master Branch:
      MDL-67119-master
    • Sprint:
      Moppies Kanban

      Description

      When a user is enrolled in a course using multiple enrolment methods (e.g. two different enrolment cohort instances in the course) the students at risk report shows one entry for each of the methods used to enrol the user in the course.

      The user enrolment identified is the primary key used in analytics to identify students in courses.

        Attachments

          Activity

            People

            Assignee:
            amaia Amaia Anabitarte
            Reporter:
            dmonllao David Monllaó
            Peer reviewer:
            Dan Marsden
            Integrator:
            Sara Arjona (@sarjona)
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Elizabeth Dalton, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Fix Release Date:
              8/Mar/21

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 45 minutes
                1d 3h 45m