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

Completion enabled indicator should work at course module level if course module data is available, not only when the samples origin is a course_module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Analytics
    • Labels:
    • Testing Instructions:
      Hide
      1. Install (or pull latest) testanalytics plugin:
        • git clone git://github.com/dmonllao/moodle-local_testanalytics.git local/testanalytics
        • cd local/testanalytics
        • git checkout late-assign-submissions
      2. Install a new site
      3. Go to admin/settings.php?section=analyticssettings and
        • Add "Close to the deadline" in "Time splitting methods" setting
        • Disable "Analytics processes execution via command line only"
      4. Go to admin/tool/generator/maketestcourse.php and create a 'S' size course
      5. Go to the course settings page
        • start date: last month
        • completion tracking: enabled
      6. Go to one of the course assignment; now access its settings page and select: 
        • under "Availability"
          • Due date: yesterday
        • under "Activity completion"
          • Completion tracking: "Show activity as complete when conditions are met"
          • Require view: Tick "Student must view this activity to complete it"
      7. Access as student to this assignment
      8. As admin, go to admin/tool/analytics/index.php and select "Actions > Get predictions" for "Late assignment submission" model
      9. You SHOULD see "Training process finished" this means that at least 1 assignment could be used for training
      10. Execute in DB: select value from mdl_analytics_indicator_calc where indicator = '\core_course\analytics\indicator\completion_enabled'
      11. All rows value fields SHOULD be 1 or 1.00; they SHOULD NOT be -1
      Show
      Install (or pull latest) testanalytics plugin: git clone git://github.com/dmonllao/moodle-local_testanalytics.git local/testanalytics cd local/testanalytics git checkout late-assign-submissions Install a new site Go to admin/settings.php?section=analyticssettings and Add "Close to the deadline" in "Time splitting methods" setting Disable "Analytics processes execution via command line only" Go to admin/tool/generator/maketestcourse.php and create a 'S' size course Go to the course settings page start date: last month completion tracking: enabled Go to one of the course assignment; now access its settings page and select:  under "Availability" Due date: yesterday under "Activity completion" Completion tracking: "Show activity as complete when conditions are met" Require view: Tick "Student must view this activity to complete it" Access as student to this assignment As admin, go to admin/tool/analytics/index.php and select "Actions > Get predictions" for "Late assignment submission" model You SHOULD see "Training process finished" this means that at least 1 assignment could be used for training Execute in DB: select value from mdl_analytics_indicator_calc where indicator = '\core_course\analytics\indicator\completion_enabled' All rows value fields SHOULD be 1 or 1.00; they SHOULD NOT be -1
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60596_master

      Description

      Completion enabled indicator calculates whether a course or a course module are using completion. The problem is that it only works at course module level when course_module is the sample origin. This means that it would only check the completion at course module level when the analysable elements are course modules (e.g. assignment activities)

      There will definitely be models where the samples are identified by course module id (e.g. check how useful was a specific activity) but it most of the cases the course module will be part of the info attached to a sample of another origin (e.g. assignment submissions origin, where the sample id is the assignment submission id; or grade_grades where the sample id would be the grade grade id)

      This indicator should use the course_module when available.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17