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

Evaluate if section_info::is_delegated can be consistent with section_info::get_component_instance

XMLWordPrintable

    • HQ 2024 Sprint I4.3 Moppies

      Since MDL-82541 the get_component_instance method validates whether the component plugin is enabled. This is essential to avoid exceptions when a section gets orphaned because the delegated plugin cannot be used.

      However, the is_delegated method does not validate the plugin; it only checks the section "component" field. This situation is less than ideal because any developer will expect both methods to be consistent, introducing unexpected errors.

      This task is about checking all uses of is_delegated and planning the best way to make them consistent.

      We also need to check the use of is_delegated in process such as backup/restore for which we do not necessary want to check if component is enabled or not but just the field.

            amaia Amaia Anabitarte
            tusefomal Ferran Recio
            Carlos Escobedo Carlos Escobedo
            Ferran Recio Ferran Recio
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 weeks, 1 day, 2 hours, 43 minutes
                6w 1d 2h 43m

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