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

Add one more filter for Task logs page to search by classname column only

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE

    Description

      When retrieving logs for a scheduled task it might take up to 10 seconds to display the report.

      Steps to replicate:

      1. Navigate to Site administration > Server > Tasks > Scheduled tasks page.
      2. Choose some task and click "View logs for <task name>" link.
      3. Check how long does it take to display the report.

      Profiling gives the following:

       

       

      This is because Task logs page searches by both classname and output columns by default: https://github.com/moodle/moodle/blob/0b69b37f04c055d7a81c38f3279555c1f51a61f3/admin/classes/task_log_table.php#L95-L96

      It's okay when you are navigating to this page directly and looking for all logs that have some string mentioned. However, it would be enough to search by classname only when you need to get all logs for a given scheduled or adhoc task.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mikhailgolenkov Misha Golenkov
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), 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: