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

Add more filters to task log /admin/tasklogs.php

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Manual testing

      1. Run cron (either manually, or wait for it to run) to ensure tasks have executed on a site
      2. Login as admin
      3. Navigate to Server > Tasks > Task logs in site administration
      4. Sort by the Duration column so that those tasks with longest duration are listed first
      5. Press Filters
      6. Toggle the Duration filter to only include tasks above a certain threshold (e.g. Greater than 5 seconds)
      7. Press Apply
        1. Confirm only those tasks above this threshold are listed in the report
      8. Invert the Duration filter (change to Less than 5 seconds)
      9. Press Apply
        1. Confirm only those tasks below this threshold are listed in the report
      10. Set the Duration filter to Any value
      11. Press Apply
        1. Confirm all tasks are now listed

      Automated testing (Performed by CIBOT)

      1. $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Filter task logs by duration"
        

      2. $ vendor/bin/phpunit reportbuilder/tests/local/filters/duration_test.php
        

      Show
      Manual testing Run cron (either manually, or wait for it to run) to ensure tasks have executed on a site Login as admin Navigate to Server > Tasks > Task logs in site administration Sort by the Duration column so that those tasks with longest duration are listed first Press Filters Toggle the Duration filter to only include tasks above a certain threshold (e.g. Greater than 5 seconds ) Press Apply Confirm only those tasks above this threshold are listed in the report Invert the Duration filter (change to Less than 5 seconds ) Press Apply Confirm only those tasks below this threshold are listed in the report Set the Duration filter to Any value Press Apply Confirm all tasks are now listed Automated testing (Performed by CIBOT) $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Filter task logs by duration" $ vendor/bin/phpunit reportbuilder/tests/local/filters/duration_test.php

      Typical business questions:

      1) what happened for a particular task, somewhere around 3 days ago

      2) what are all the slow tasks?

      3) which tasks are busted

       

      Proposed filters:

      a) start / stop time aka beginning / end of period of any task overla

      b) minimum duration time, ie find all tasks which took longer than 5 mins

      c) result status, ie show all tasks with a faildelay

       

            pholden Paul Holden
            brendanheywood Brendan Heywood
            David Carrillo David Carrillo
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 10 minutes
                3h 10m

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