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

Indicators with discrete values are broken

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.5.3, 3.6, 3.7
    • 3.5.5, 3.6.3
    • Analytics
    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-64320_master
    • Hide
      1. Install https://github.com/dmonllao/moodle-local_latesubmissions
      2. Log in as admin and go to to site admin > analytics > analytics settings
      3. Add "Two days before the end" to the list of enabled time splitting methods
      4. Now go to site admin > analytics > analytics models and select Actions > Edit for "Students at risk of missing assignment due dates"
      5. Add the indicator "Activity weight in the gradebook" to the model if it is not already there and save changes
      6. Use an existing course in your site with enrolments
      7. Set the course start date to 2 weeks ago
      8. Create 2 assignments with a due date (a few days after the course start date)
      9. Go to CLI and run "php admin/tool/analytics/cli/evaluate_model.php"
      10. You SHOULD see a list of models, "Students at risk of missing assignment due dates" SHOULD be one of these models. Remember its id. You will need it for the next step
      11. Again in CLI run "php admin/tool/analytics/cli/evaluate_model.php --modelid=YEAH --timesplitting='\local_latesubmissions\analytics\time_splitting\really_close_to_deadline'". Where YEAH is the modelid
      12. The process SHOULD finish without any PHP fatal error nor exception. If there is a problem you will probably get the locking exception that masks the real problem
      Show
      Install https://github.com/dmonllao/moodle-local_latesubmissions Log in as admin and go to to site admin > analytics > analytics settings Add "Two days before the end" to the list of enabled time splitting methods Now go to site admin > analytics > analytics models and select Actions > Edit for "Students at risk of missing assignment due dates" Add the indicator "Activity weight in the gradebook" to the model if it is not already there and save changes Use an existing course in your site with enrolments Set the course start date to 2 weeks ago Create 2 assignments with a due date (a few days after the course start date) Go to CLI and run "php admin/tool/analytics/cli/evaluate_model.php" You SHOULD see a list of models, "Students at risk of missing assignment due dates" SHOULD be one of these models. Remember its id. You will need it for the next step Again in CLI run "php admin/tool/analytics/cli/evaluate_model.php --modelid=YEAH --timesplitting='\local_latesubmissions\analytics\time_splitting\really_close_to_deadline'". Where YEAH is the modelid The process SHOULD finish without any PHP fatal error nor exception. If there is a problem you will probably get the locking exception that masks the real problem

    Description

      Discrete indicators return classes, not a value between -1 and 1. We should add a indicator-type-dependant method to validate the values returned by indicators.

      Attachments

        Activity

          People

            dmonllao David Monllaó
            dmonllao David Monllaó
            Victor Déniz Falcón Victor Déniz Falcón
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Shamim Rezaie Shamim Rezaie
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Mar/19