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

Create core_courseformat subsystem

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-71863-master-v02
    • Hide

      Most of the changes are tested using behat and phpunit.

      Testing scenario 1: Manual testing for the reactive library:

      1. Download the code from this project branch (you can use the github download zip button in the "code" dropdown): https://github.com/ferranrecio/moodle-format_editortest/tree/subsystem
      2. Deploy the code form the plugin in "course/format/editortest"
      3. Create a course in "Course Editor Test" format
      4. Access the course and wait for like 5~10 seconds until all the tests are passed.
      5. Check all the tests in Editor tests results section are passed (Test passed: 275/275).

       

      Testing scenario 2: Missing argument in deprecated course format renderer methods

      1. Install third party course format from plugin database. E.g. The Soft course course format.
      2. Turn on debugging.
      3. Create a course with course format set to the third party format you installed in step #1.
      4. Save and return to the main course page.
      5. Turn editing on.
      6. Verify that deprecation messages are visible. For instance:

        Method print_multiple_section_page is deprecated,
        

      7. Verify that coding exception is NOT shown.

        Warning: method_exists() expects exactly 2 parameters, 1 given

      Show
      Most of the changes are tested using behat and phpunit. Testing scenario 1: Manual testing for the reactive library : Download the code from this project branch (you can use the github download zip button in the "code" dropdown): https://github.com/ferranrecio/moodle-format_editortest/tree/subsystem Deploy the code form the plugin in "course/format/editortest" Create a course in "Course Editor Test" format Access the course and wait for like 5~10 seconds until all the tests are passed. Check all the tests in Editor tests results section are passed (Test passed: 275/275).   Testing scenario 2: Missing argument in deprecated course format renderer methods Install third party course format from plugin database. E.g. The  Soft course  course format. Turn on debugging. Create a course with course format set to the third party format you installed in step #1. Save and return to the main course page. Turn editing on. Verify that deprecation messages are visible. For instance: Method print_multiple_section_page is deprecated, Verify that coding exception is NOT shown. Warning: method_exists() expects exactly 2 parameters, 1 given
    • Moppies Kanban

    Description

      With the new course formats structrue (output components, templates, and modules and classes) a new core_courseformat subsystem appears to group all the functionalities related to course formats. The new subsystem will be located in the same "course/format" folder with the rest of the plugins.

      For now, the new sub system will have:

      • All templates and output renderers to render the course content
      • A replace for the base course_format class all format plugins must extend
      • The base format_renderer and the specific site and legacy renderers.
      • All the AMD modules for the reactive course interface
      • The course index code and API
      • The external services to serve the new course frontend
      • All the course format plugins

      Attachments

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              tusefomal Ferran Recio
              Ilya Tregubov Ilya Tregubov
              Andrew Lyons Andrew Lyons
              Gladys Basiana Gladys Basiana
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 6 hours, 3 minutes
                  1w 6h 3m