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

Standard block plugins use legacy cron

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: Blocks
    • Labels:
    • Testing Instructions:
      Hide
      • This test requires making alterations directly to the database.

      Refresh RSS feeds

      1. Create a course
      2. Add the remote rss feeds block.
      3. edit it and add the following feed : https://www.safetyandquality.gov.au/feed/
      4. Go to the scheduled tasks page (Site administration > Server > Scheduled tasks)
      5. Run the task for Refresh RSS feeds task. There should be a link that says "Run now"
      6. Check the output (of the scheduled task) that the rss feed has been refreshed.

      Recent activity block cleanup

      1. Add the recent activity block
      2. As a teacher create an activity.
      3. Update the time created field for the entry in block_recent_activity to be greater than two days ago.
      4. Go to the scheduled tasks page (Site administration > Server > Scheduled tasks)
      5. Run the scheduled task Cleanup taks for recent activity block. There should a linkk that says "Run now"
      6. Check back to the updated db entry.
      7. Check that the entry has been removed.
      Show
      This test requires making alterations directly to the database. Refresh RSS feeds Create a course Add the remote rss feeds block. edit it and add the following feed : https://www.safetyandquality.gov.au/feed/ Go to the scheduled tasks page (Site administration > Server > Scheduled tasks) Run the task for Refresh RSS feeds task. There should be a link that says "Run now" Check the output (of the scheduled task) that the rss feed has been refreshed. Recent activity block cleanup Add the recent activity block As a teacher create an activity. Update the time created field for the entry in block_recent_activity to be greater than two days ago. Go to the scheduled tasks page (Site administration > Server > Scheduled tasks) Run the scheduled task Cleanup taks for recent activity block. There should a linkk that says "Run now" Check back to the updated db entry. Check that the entry has been removed.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
      MDL-61960-master

      Description

      As described in https://tracker.moodle.org/browse/MDL-61164 we need to convert legacy cron functions to scheduled tasks

       

      The blocks rss_client and recent_activity are still using legacy cron.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              farhan6318 Farhan Karmali
              Reporter:
              farhan6318 Farhan Karmali
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Andrew Nicols
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18