-
Improvement
-
Resolution: Fixed
-
Minor
-
4.4
-
MOODLE_404_STABLE
-
MOODLE_404_STABLE
-
MDL-80186-main -
-
2
-
HQ 2023 Sprint I4.2 Moppies
This issue is part of the course hierarch project.
Issue goals
The main goal is to incorporate the delegate plugin information into course sections. The fields will imitate the same structure Moodle uses for files.
- Add two new fields to the course_sections table:
- varchar component (default null)
- integer itemid (default null)
- Add an index to find sections by course, component and itemid
- Incorporate both component and itemid to the sectioninfo cache.
- Add has_component, get_component_instance and get_itemid to section_info class.
- Ensure the delegate fields are written in the course backup and can be restored. For now with no effect.
Future uses of this fields
This fields will be the foundation of the delegated sections feature. By defining a section is delegated a plugin can take control of all section behaviours. Things like being listed in the course page, creating, destroying and checking permissions will be controlled by a delegate class inside the delegate component.
This logic will be used later on the mod_subsection plugin. However, it could be used by other plugins to create private sections in courses separated from the format ones.
- blocks
-
MDL-80187 Implement course section API methods to create and destroy delegated sections from a plugin
- Closed
-
MDL-80190 Delegated sections should not be listed in course page as regular sections
- Closed
-
MDL-80191 Enable delegate plugins to include delegated sections in the backup
- Closed
-
MDL-80203 Delegate editing options for delegated sections
- Closed
- caused a regression
-
MDL-80553 New test doesnt configure backup step appropriately
- Closed
-
MDL-81124 Bump is_major_upgrade_required() - 202401
- Closed
- has a non-specific relationship to
-
MDL-82310 Fix Moodle 4.4 restore when the backup contains delegated sections
- Closed
- is blocked by
-
MDL-79999 Course_modinfo should index sections by id, not just by section number
- Closed