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

Display delegated sections in course Activity report

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-81771-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-81771-main https://github.com/aanabit/mod_subsection mod/subsection
      1. Login as admin and install the plugin
      2. Disable welcome messages (they are enabled by default and they affect course creation):
        1. Go to the site administration and search "sendcoursewelcomemessage"
        2. You should get two results (one from enrol_manual and one from enrol_self). Change both values to "No" and Save changes
      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
      1. Confirm all tests pass.
      2. Run Unit Tests 
        /usr/bin/php admin/tool/phpunit/cli/util.php --run mod/subsection/tests/courseformat/sectiondelegatemodule_test.php
      1. Confirm all tests pass.

       

      Setup

      1. Download the attached MDL-81771-scenario.featurefile
      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 "MDL-81771 test" course. Navigate to Reports > Activity report.
      3. Confirm the look and feel of the report is similar to the attached image, paying special attention to the following:
        1. The background color is the same for all table rows.
        2. There is no hover effect on the rows.
        3. 'First page' is shown before 'Subsection1' and has the same left margin.
        4. 'Last page' is shown after 'Subsection1' and all its content ('Subactivity1.1 and Subactivity1.2') and has the same left margin as 'Subsection1'.
        5. 'Subactivity1.1' is shown after 'Subsection1' and has a larger left margin than it.
        6. 'New section' font size is larger than the 'Activity' column header and 'Subsection1'.
        7. 'Activity' column header and 'Subsection1' font size are larger than 'Subactivity1.1'.
        8. Activities have an icon representing the module type.
        9. 'First page' and 'Subactivity1.2' have a 'Hidden from students' label.
        10. There is no 'Empty subsection' listed.

      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-81771 -main https://github.com/aanabit/mod_subsection mod/subsection Login as admin and install the plugin Disable welcome messages (they are enabled by default and they affect course creation): Go to the site administration and search "sendcoursewelcomemessage" You should get two results (one from enrol_manual and one from enrol_self). Change both values to "No" and Save changes 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.   Setup Download the attached MDL-81771-scenario.feature file 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 " MDL-81771 test" course. Navigate to Reports > Activity report. Confirm the look and feel of the report is similar to the attached image, paying special attention to the following: The background color is the same for all table rows. There is no hover effect on the rows. 'First page' is shown before 'Subsection1' and has the same left margin. 'Last page' is shown after 'Subsection1' and all its content ('Subactivity1.1 and Subactivity1.2') and has the same left margin as 'Subsection1'. 'Subactivity1.1' is shown after 'Subsection1' and has a larger left margin than it. 'New section' font size is larger than the 'Activity' column header and 'Subsection1'. 'Activity' column header and 'Subsection1' font size are larger than 'Subactivity1.1'. Activities have an icon representing the module type. 'First page' and 'Subactivity1.2' have a 'Hidden from students' label. There is no 'Empty subsection' listed.
    • 3
    • HQ 2024 Sprint I2.3 Moppies

      This issue is part of the course hierarch project.

      Issue goals

      Now that mod_subsection is implemented in the core, the course report should be able to display delegated sections in the correct position of the course structure. For now, reports are not adapted to subsections, and all sections are listed, keeping the delegated sections at the end.

      The goal of this issue is to add subsections to the Activity report of the course, as shown in MDL-81799

            amaia Amaia Anabitarte
            tusefomal Ferran Recio
            Mikel Martín Corrales Mikel Martín Corrales
            Ferran Recio Ferran Recio
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 50 minutes
                1d 3h 50m

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