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

Empty $predictions array in add_bulk_actions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.8
    • Component/s: Analytics
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to site admin > development > make test course and create an S-size course
      2. Set the course start date to -10 days from now
      3. Go to the participants page of the course and set the enrolment start date of two students to -5 days from now. Remember their names
      4. Go to site admin > analytics > analytics models
      5. Click on "Edit" for the "Students who have not accessed the course recently" model
      6. Set the analysis interval to "Past 3 days"
      7. Click on "Execute analysis interval" for the "Students who have not accessed the course recently" model
      8. Unenrol one of the students whose enrolment start date was updated a few steps above
      9. Go to site admin > analytics > analytics models and select the 'S' course from the dropdown in the column insights for the model "Students who have not accessed the course recently"
      10. Select the student in the list (there should be only 1 student if you only updated the enrolment start of two users) and click on "Accept"
      11. You SHOULD see "No insights reported"
      Show
      Go to site admin > development > make test course and create an S-size course Set the course start date to -10 days from now Go to the participants page of the course and set the enrolment start date of two students to -5 days from now. Remember their names Go to site admin > analytics > analytics models Click on "Edit" for the "Students who have not accessed the course recently" model Set the analysis interval to "Past 3 days" Click on "Execute analysis interval" for the "Students who have not accessed the course recently" model Unenrol one of the students whose enrolment start date was updated a few steps above Go to site admin > analytics > analytics models and select the 'S' course from the dropdown in the column insights for the model "Students who have not accessed the course recently" Select the student in the list (there should be only 1 student if you only updated the enrolment start of two users) and click on "Accept" You SHOULD see "No insights reported"
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-67039_master

      Description

      We got an error in https://hq.moodle.com:

      Exception - Call to a member function get_prediction_data() on boolean
       
      line 104 of /report/insights/classes/output/actions_exporter.php: Error thrownline
       126 of /report/insights/classes/output/insights_list.php: call to 
      report_insights\output\actions_exporter::add_bulk_actions()line 49 of /report/insights/classes/output/renderer.php: call to report_insights\output\insights_list->export_for_template()line 462 of /lib/outputrenderers.php: call to report_insights\output\renderer->render_insights_list()line 158 of /report/insights/insights.php: call to plugin_renderer_base->render()

      This should be caused by an empty $predictions array returned by get_predictions and it may have to do something with pagination.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Peter Dias
              Integrator:
              Jun Pataleta
              Tester:
              Gladys Basiana
              Participants:
              Component watchers:
              Elizabeth Dalton, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/19

                  Time Tracking

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