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

The first analysis time is not correctly retrieved by the upcoming_periodic time-splitting method

    XMLWordPrintable

    Details

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

      For this test you need to use an existing site with existing users. (This is required to make it easy to check that the predictions are generated from the first time the prediction is generated instead of from the moment when the user was created)

      1. Log in as admin
      2. Set up a course with at least 1 student enrolled and an assigment with due date in 2 days
      3. Go to site admin > analytics > analytics settings and untick onlycli setting
      4. Go to site admin > analytics > analytics models
      5. Click on "Actions > Edit" for the model "Upcoming activities due"
      6. Tick "Enabled", select "Upcoming 3 days" as "Time-splitting method" and save changes
      7. Click on "Actions > Get predictions" for the model "Upcoming activities due". Click on "Continue" once finished
      8. Select a user from the menu in the "Insights" column for the "Upcoming activities due" model
      9. The time displayed in the "Time predicted" row, in the "Prediction details" table SHOULD be just a few seconds ago.
      10. The time displayed in the "Time range" row, in the "Prediction details" table SHOULD be the same time than in "Time predicted" and the to ... part SHOULD be the same time but with +3 days
      Show
      For this test you need to use an existing site with existing users. (This is required to make it easy to check that the predictions are generated from the first time the prediction is generated instead of from the moment when the user was created) Log in as admin Set up a course with at least 1 student enrolled and an assigment with due date in 2 days Go to site admin > analytics > analytics settings and untick onlycli setting Go to site admin > analytics > analytics models Click on "Actions > Edit" for the model "Upcoming activities due" Tick "Enabled", select "Upcoming 3 days" as "Time-splitting method" and save changes Click on "Actions > Get predictions" for the model "Upcoming activities due". Click on "Continue" once finished Select a user from the menu in the "Insights" column for the "Upcoming activities due" model The time displayed in the "Time predicted" row, in the "Prediction details" table SHOULD be just a few seconds ago. The time displayed in the "Time range" row, in the "Prediction details" table SHOULD be the same time than in "Time predicted" and the to ... part SHOULD be the same time but with +3 days
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-65601_master

      Description

      This is a bug introduced in MDL-65348. Part of the patch was not unit tested.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                20/May/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 20 minutes
                6h 20m