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

Allow the delegate plugin to add new breadcrumb nodes

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-81648-main
    • Hide

      Testing scenario

      Some features of this issue are not used by core plugins yet. To test it you need to use the alpha version of mod_subsection:

      1. Install the mod_subsection. From your Moodle root folder run:

        git clone -b MDL-81648 https://github.com/aanabit/mod_subsection mod/subsection
        

      2. Login as admin and install the plugin
      3. In the terminal, init behat and run selenium.
      4. Execute all behats using the option --tags=@mod_subsection

        /usr/bin/php admin/tool/behat/cli/run.php --tags=@mod_subsection

      5. Confirm all tests pass.
      6. Run Unit Tests

        /usr/bin/php admin/tool/phpunit/cli/util.php --run mod/subsection/tests/courseformat/sectiondelegatemodule_test.php

      7. Confirm all tests pass.

       

      MANUAL TESTING IS NOT REQUIRED (because the patch is covered by automated tests).
      However, these are the steps for manually checking how it works:

      Setup

      1. Download the attached MDL-81648-scenario.feature.
      2. Run the following command to create a course with a few subsection activities:

      php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature"

      It might fail while trying to create the users if s1 and s2 already exist in your local instance. If that's the case, this error can be ignored.

      Test

      1. Login as admin
      2. Go to the Subsection activity page
      3. Confirm that the "Section" is displayed in the breadcrumb
      4. Click on any activity in the Subsection
      5. Confirm that the "Section" and "Subsection" is displayed in the breadcrumb
      6. Change the theme to "Classic"
      7. Go to the course page
      8. Confirm that the "Navigation" block displays the "Section > Subsection > Activities" hierarchy correctly
      Show
      Testing scenario Some features of this issue are not used by core plugins yet. To test it you need to use the alpha version of mod_subsection: Install the mod_subsection. From your Moodle root folder run: git clone -b MDL-81648 https://github.com/aanabit/mod_subsection mod/subsection Login as admin and install the plugin In the terminal, init behat and run selenium. Execute all behats using the option --tags=@mod_subsection /usr/bin/php admin/tool/behat/cli/run.php --tags=@mod_subsection Confirm  all tests pass. Run Unit Tests /usr/bin/php admin/tool/phpunit/cli/util.php --run mod/subsection/tests/courseformat/sectiondelegatemodule_test.php Confirm  all tests pass.   MANUAL TESTING IS NOT REQUIRED (because the patch is covered by automated tests). However, these are the steps for manually checking how it works: Setup Download the attached MDL-81648-scenario.feature . Run the following command to create a course with a few subsection activities: php admin/tool/generator/cli/runtestscenario.php --feature= "absolute/path/to/file.feature" It might fail while trying to create the users if s1 and s2 already exist in your local instance. If that's the case, this error can be ignored. Test Login as admin Go to the Subsection activity page Confirm that the "Section" is displayed in the breadcrumb Click on any activity in the Subsection Confirm that the "Section" and "Subsection" is displayed in the breadcrumb Change the theme to "Classic" Go to the course page Confirm that the "Navigation" block displays the "Section > Subsection > Activities" hierarchy correctly
    • 3
    • HQ 2024 Sprint I2.2 Moppies

      This issue is part of the course hierarch project.

      Issue goals

      Any delegates section (like the future mod_subsection) must be able to add new breadcrumb nodes in the navigation. This includes the section page, but also any inner activity page.

      Future issues

      Delegates sections will act as subsections, so activities inside a delegates section have an extra navigation to go the section delegate instance.

       

        1. (1) 2 Passed -- (Main)MDL-81648.png
          (1) 2 Passed -- (Main)MDL-81648.png
          49 kB
        2. (1) 7 Passed -- (Main)MDL-81648.png
          (1) 7 Passed -- (Main)MDL-81648.png
          38 kB
        3. MDL-81648-scenario.feature
          1 kB
        4. screenshot-1.png
          screenshot-1.png
          27 kB
        5. screenshot-2.png
          screenshot-2.png
          29 kB
        6. screenshot-3.png
          screenshot-3.png
          72 kB

            mikelmartíncorrales Mikel Martín Corrales
            tusefomal Ferran Recio
            Laurent David Laurent David
            Amaia Anabitarte Amaia Anabitarte
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 4 hours, 36 minutes
                3d 4h 36m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.