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

        1. image-2021-05-20-14-22-33-943.png
          273 kB
          Mikhail Golenkov
        2. image-2021-05-20-14-33-46-274.png
          93 kB
          Mikhail Golenkov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mikhailgolenkov Mikhail Golenkov
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: