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

Scheduled tasks admin: show the defaults in the form where you edit the settings for a task

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      All this is covered by Behat.

      Manual coverage:

      1. Log in as admin.
      2. Go to Administration > Server > Tasks > Scheduled tasks
      3. Click the edit icon for a task.
      4. Verify that at the top of the form, you can see both the task human-readable name in the heading, and the class name below.
      5. Verify you can see both the component human-readable name (e.g. Forum) and the internal name (e.g. mod_forum).
      6. Verify that you can see the default for each of the time settings next to the corresponding input box.
      7. Verify that the page scrolls to the task you edited, and that table row is highlighted.
      8. Click edit on a different task.
      9. Click Cancel.
      Show
      All this is covered by Behat. Manual coverage: Log in as admin. Go to Administration > Server > Tasks > Scheduled tasks Click the edit icon for a task. Verify that at the top of the form, you can see both the task human-readable name in the heading, and the class name below. Verify you can see both the component human-readable name (e.g. Forum) and the internal name (e.g. mod_forum). Verify that you can see the default for each of the time settings next to the corresponding input box. Verify that the page scrolls to the task you edited, and that table row is highlighted. Click edit on a different task. Click Cancel.
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:

      Description

      On the screen where you edit the settings for a particular scheduled task (e.g. .../admin/tool/task/scheduledtasks.php?action=edit&task=...) it would be helpful to show the defaults (from the corresponding .../db/tasks/php file) in the form.

      Also, at the top of this form, it should give the full name of the task (e.g. \core\task\analytics_cleanup_task) as well as the human-readable name (e.g. Analytics cleanup). It would probably also help to show the component name, as in the scheduled tasks table.

      This is similar to the way that the roles UI shows you the defaults from the corresponding role archetype.

      This would help admins editing the settings, to know how their current settings compare to the defaults.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Mark Johnson
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 55 minutes
                  55m