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

Convert task logs report to a system report

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide
      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. Confirm report has 'View' and 'Download' action icons on each row
      5. Click on the Download icon on the first row
      6. Confirm a log file is downloaded with the individual task content of that row
      7. Confirm clicking on columns sorts them
      8. Confirm you are able to page through the report
      9. Press Filters button
      10. Set the Name filter to Contains:forum
      11. Press Apply
      12. Confirm report is now filtered to match
      13. Set various filters to confirm they work as expected
      14. Select 'Comma separated values (.csv)' in the Download table data as select
      15. Press Download
      16. Confirm filtered data is downloaded
      17. Press Filters button
      18. Press Reset all
      19. Confirm report is now showing all content
      20. Confirm you can toggle between showing "Show all X" vs. "Show 30 per page"

      Automatic filtering by URL

      1. Navigate to Server > Tasks > Scheduled tasks in site administration
      2. Find "Sync external blogs" row and click on the Logs column icon (View logs for Sync external blogs)
      3. Confirm that you are on the task logs report page and you can only see "Sync external blogs" rows on the report

      Automated tests

      $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="View task logs report and use its filters"
      

      Show
      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 Confirm report has 'View' and 'Download' action icons on each row Click on the Download icon on the first row Confirm a log file is downloaded with the individual task content of that row Confirm clicking on columns sorts them Confirm you are able to page through the report Press Filters button Set the Name filter to Contains: forum Press Apply Confirm report is now filtered to match Set various filters to confirm they work as expected Select 'Comma separated values (.csv)' in the Download table data as select Press Download Confirm filtered data is downloaded Press Filters button Press Reset all Confirm report is now showing all content Confirm you can toggle between showing "Show all X" vs. "Show 30 per page" Automatic filtering by URL Navigate to Server > Tasks > Scheduled tasks in site administration Find "Sync external blogs" row and click on the Logs column icon (View logs for Sync external blogs) Confirm that you are on the task logs report page and you can only see "Sync external blogs" rows on the report Automated tests $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="View task logs report and use its filters"

    Description

      As part of MDL-70343 epic, we will convert the task logs report to a system report defined using Report builder including the following:

      1. Filters
      2. Column callbacks
      3. Actions

      Attachments

        Issue Links

          Activity

            People

              davidmatamoros David Matamoros
              pholden Paul Holden
              Paul Holden Paul Holden
              Adrian Greeve Adrian Greeve
              Gladys Basiana Gladys Basiana
              David Matamoros, Mikel Martín Corrales, Paul Holden, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 weeks, 3 days, 1 hour, 16 minutes
                  2w 3d 1h 16m