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

Add a new admin setting for scheduled tasks

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-70230-master
    • Testing Instructions:
      Hide
      1. Go to "admin/settings.php?section=langsettings" URL as admin.
      2. Check that the bottom item is the description of the status of the langimport task.
      3. Click on the "details" link and check that the scheduledtasks.php page is loaded, pointing to the row of the langimport task, just below the fixed header.
      Show
      Go to "admin/settings.php?section=langsettings" URL as admin. Check that the bottom item is the description of the status of the langimport task. Click on the "details" link and check that the scheduledtasks.php page is loaded, pointing to the row of the langimport task, just below the fixed header.

      Description

      Context

      Sometimes admin settings define values that affect the behaviour of scheduled tasks.

      Problem/Idea to improve

       It would be very good to have the status (active, inactive) of the related scheduled task, and a shortcut for the configuration of the shcheduled task.

      Proposal

      Add an admin header-like setting that provides a plain admin setting informing about its status (it's running or not) and a link to its configuration, as a shortcut for updating the task if necessary.

      This admin setting, together with the rest of admin settings related to that, would provide the whole big picture of the task status and settings.

      The class could have this constructor: "admin_setting_scheduled_task(string $name, string $scheduledtaskname[, string $extradescription])" where:

      1. $name is the setting name, as always.
      2. $scheduledtaskname is the name of the scheduled task, as full classpath name.
      3. (optional) $extradescription is a string which can help adding context to the setting page for this given task. This admin setting already provides some lines with the status, the class name and its description. However, we could imagine several tasks settings in a single page, and would help admin users to understand/remember what they do or are related to.

       

        Attachments

        1. task_status.png
          task_status.png
          30 kB
        2. screenshot-1.png
          screenshot-1.png
          15 kB
        3. positioning_in_tasks_list.png
          positioning_in_tasks_list.png
          28 kB
        4. not applied-1.png
          not applied-1.png
          33 kB
        5. not applied.png
          not applied.png
          33 kB
        6. move-to-the-right.png
          move-to-the-right.png
          124 kB
        7. MDL-70230_Test Passed.png
          MDL-70230_Test Passed.png
          163 kB

          Issue Links

            Activity

              People

              Assignee:
              jpahullo Jordi Pujol-Ahulló
              Reporter:
              jpahullo Jordi Pujol-Ahulló
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 25 minutes
                  25m