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

Prevent activity chooser from creating activities with subsections inside a subsection.

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-81675-main
    • Hide

      Testing scenario

      The feature added 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 main https://github.com/aanabit/mod_subsection mod/subsection

       

      1. Login as admin and install the plugin
      2. Create a course with a couple of activities.
      3. 'Add a new activity or resource' at the end of an existing section in the course page.
      4. Confirm the 'Subsection' resource is shown in the Activity Chooser
      5. Mark 'Subsection' resource as favourite.
      6. Confirm 'Subsection' resource is shown in the Starred tab of the Activity Chooser.
      7. Add a new activity or resource between 2 activities of a section using the + button.
      8. Confirm the 'Subsection' resource is shown in the Activity Chooser
      9. Confirm 'Subsection' resource is shown in the Starred tab of the Activity Chooser.
      10. Create a Subsection activity.
      11. Click in the created Subsection activity.
      12. 'Add a new activity or resource' at the end of the subsection page.
      13. Confirm there is no 'Subsection' resource in the Activity Chooser
      14. Confirm there is no Starred tab.
      15. Add a new activity or resource between 2 activities of a section using the + button.
      16. Confirm there is no 'Subsection' resource in the Activity Chooser
      17. Confirm there is no Starred tab.
      Show
      Testing scenario The feature added 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 main https://github.com/aanabit/mod_subsection mod/subsection   Login as admin and install the plugin Create a course with a couple of activities. 'Add a new activity or resource' at the end of an existing section in the course page. Confirm the 'Subsection' resource is shown in the Activity Chooser Mark 'Subsection' resource as favourite. Confirm 'Subsection' resource is shown in the Starred tab of the Activity Chooser. Add a new activity or resource between 2 activities of a section using the + button. Confirm the 'Subsection' resource is shown in the Activity Chooser Confirm 'Subsection' resource is shown in the Starred tab of the Activity Chooser. Create a Subsection activity. Click in the created Subsection activity. 'Add a new activity or resource' at the end of the subsection page. Confirm there is no 'Subsection' resource in the Activity Chooser Confirm there is no Starred tab. Add a new activity or resource between 2 activities of a section using the + button. Confirm there is no 'Subsection' resource in the Activity Chooser Confirm there is no Starred tab.
    • 2
    • C->HQ 2024 Sprint I2.2 Moppies

      This issue is part of the course hierarch project.

      Issue context

      Some activities, like mod_subsection, can act as subsections inside the course (called delegated sections). However, this kind of activity cannot be created inside an existing subsection.

      This limitation is defined at a UX level but also prevents unnecessary complexity and content loops.

      Issue goals

      The goal of this issue is to modify the activity chooser when it is displayed inside a delegated section.

      The activity chooser should not show any activity with a delegated section integration when the final section is a delegated one.

       

            amaia Amaia Anabitarte
            tusefomal Ferran Recio
            Carlos Escobedo Carlos Escobedo
            Ferran Recio Ferran Recio
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 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, 1 hour, 32 minutes
                1d 1h 32m

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