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

Delegate editing options for delegated sections

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-80203-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-80203-main 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
      5. Check 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-80203-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.

       

      Manual test

      1. Login as admin.
      2. Go to the Subsection activity page, by clicking on its name.
      3. Edit mode on.
      4. Open the Subsection action menu (near the Bulk actions button).
      5. Check the module menu is displayed (replacing the section menu).
      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- 80203 -main 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 Check  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-80203-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.   Manual test Login as admin. Go to the Subsection activity page, by clicking on its name. Edit mode on. Open the Subsection action menu (near the Bulk actions button). Check the module menu is displayed (replacing the section menu).
    • 3
    • HQ 2024 Sprint I1.2 Moppies

      This issue is part of the course hierarchy project.

      Issue goals

      • Create a sectiondelegate::public function get_section_action_menu(course_format $format, controlmenu $controlmenu, renderer_base $output): ?action_menu to allow the delegate plugin to modify the available section actions. The $defaults are the expected options for regular sections. It can return a new list of options o null if no options are available.
      • Update the section options rendering so it takes into consideration the sectiondelegate::get_section_action_menu for delegated sections.
      • Override this method in the mod_subsection repository.

      Future issues

      Mod_subsection will use this integration to replace section options for activity ones. This is especially important when a section page is rendered.

            sarjona Sara Arjona (@sarjona)
            tusefomal Ferran Recio
            Mikel Martín Corrales Mikel Martín Corrales
            Shamim Rezaie Shamim Rezaie
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 2 hours, 49 minutes
                4d 2h 49m

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