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

Refactor portfolio queue system to prevent usage of events_trigger()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.7
    • Component/s: Events API, Portfolio
    • Labels:
    • Testing Instructions:
      Hide

      1/ Set up the portfolio Flickr
      2/ Set portfolio_moderate_filesize_threshold and portfolio_high_filesize_threshold to 10kb
      3/ Create a forum post with an image (more than 10kb)
      4/ Export the image to Flickr portfolio and choose Don't wait on the export page
      7/ execute cron and verify there are no errors coming from cron
      8/ verify the file got exported

      9/ repeat for portfolio that does not queue - such as the simple download and make sure it still works

      Show
      1/ Set up the portfolio Flickr 2/ Set portfolio_moderate_filesize_threshold and portfolio_high_filesize_threshold to 10kb 3/ Create a forum post with an image (more than 10kb) 4/ Export the image to Flickr portfolio and choose Don't wait on the export page 7/ execute cron and verify there are no errors coming from cron 8/ verify the file got exported 9/ repeat for portfolio that does not queue - such as the simple download and make sure it still works
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w07_MDL-42541_m27_portevent
    • Story Points:
      20
    • Sprint:
      BACKEND Sprint 10

      Description

      The portfolio queue system is using the old events_trigger in order to register a cron job. We have to refactor the code to get rid of the usage of events_trigger().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14