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

Improve how we calculate to which activities the user had access during a period of time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Analytics
    • Labels:
    • Testing Instructions:
      Hide

      Unit tests should cover most of this issue changes but guess course start and end dates script.

      1. Set course format weeks for one of your courses
      2. Execute php admin/tool/analytics/cli/guess_course_start_and_end.php --guessall --update
      3. You SHOULD NOT get any PHP error
      Show
      Unit tests should cover most of this issue changes but guess course start and end dates script. Set course format weeks for one of your courses Execute php admin/tool/analytics/cli/guess_course_start_and_end.php --guessall --update You SHOULD NOT get any PHP error
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59256_master

      Description

      This is closely related to MDL-59067

      Community of inquiry indicators' calculations are based on:

      • The % of activities that were expected to be completed during a specific period that the user interacted with
      • How "deep" was this interaction

      As we calculate indicators once the target is ready (the end of the course for students at risk of dropping out courses) we need to guess the activities that were available at that time. MDL-59067 could solve this but sites will still have a lot of finished courses we want to use to train machine learning algorithms. This issue is about improving the current "guess" system that can be used as a fallback in case the system can not find indicators calculations stored as part of MDL-59067.

      Some comments copied from code TODOs:

      • In completed_by: Use course_modules_completion's timemodified + COMPLETION_COMPLETE* to discard activities that have already been completed.
      • In availability_completely_by: Would be nice to expand \availability_date\condition API for this calling a save that does not save is weird.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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