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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.7
    • 3.7
    • Analytics
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65601_master
    • 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

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

        1. MDL-65601.jpg
          47 kB
          Anna Carissa Sadia

            dmonllao David Monllaó
            dmonllao David Monllaó
            Victor Déniz Falcón Victor Déniz Falcón
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.