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

Add delegate section fields to the course_section table

XMLWordPrintable

    • 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.

            tusefomal Ferran Recio
            tusefomal Ferran Recio
            Mikel Martín Corrales Mikel Martín Corrales
            Amaia Anabitarte Amaia Anabitarte
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            9 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, 5 hours, 50 minutes
                4d 5h 50m

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