-
Improvement
-
Resolution: Done
-
Minor
-
4.3.0
-
-
MOODLE_403_STABLE
-
MOODLE_404_STABLE
-
Moodle Apps - 2024 i1.2, Moodle Apps - 2024 i1.3, Moodle Apps - 2024 i1.4
In MDL-81065, a new WebService has been created to obtain the states of filters in the site. This WebService will only return the default values for the site and then the specific overrides for particular contexts.
Using this WebService we can avoid calling core_filters_get_available_in_context most of the times, and this is the WS call that is used the most in the app.
When we want to retrieve the filters in a specific context, we'll use this WebService to check if there is an "override" for this particular context and the parent contexts to determine the list of filters to use instead of calling core_filters_get_available_in_context.
The only case where we won't know the filters to use is when a site has an override at category level. In most places of the app we don't know the category of the context (e.g. of an activity), so we won't be able to determine the correct parent configuration. In that case we'll still use core_filters_get_available_in_context.
- is blocked by
-
MDL-81065 Create a new Web Service to be able to retrieve filter configuration and specific overrides per context
- Closed