-
Improvement
-
Resolution: Fixed
-
Minor
-
5.0
-
MOODLE_500_STABLE
-
MOODLE_500_STABLE
-
MDL-83214-main -
-
-
-
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.