-
Improvement
-
Resolution: Fixed
-
Minor
-
2.8.3
-
MOODLE_28_STABLE
-
MOODLE_29_STABLE
-
MDL-49242-master -
I detected cases when the JSON response is about 7MBytes (for courses using a lot of file resources as mini-htmlsites), this makes the app unresponsive (and other clients unable to process that amount of data)
We need to filter the JSON data returned by the external function to reduce the size.
The core_course_get_contents has an option variable (unused) we should add there options for AND filters
Filters:
- excludemodules - Do not return modules, return only the sections structure
- excludecontents - Do not return course contents (the list of files in a resource file)
- sectionid - Return only the section with id = X
- sectionnumber - Return only the section with number (order) = X
- cmid - Return only this module information (among the whole sections structure)
- modname - Return only modules with this name "label, forum, etc..."
- cminstance - Return only module with id = X (to be used with modname)
- cmidnumber - Return only modules with idnumber = X
Additional benefits are that this will speed up how we retrieve course contents, because we will have lightweight web services to return only the sections structure, modules inside a section and module contents (files)
- has a QA test
-
MDLQA-8155 Test core_course_get_contents webservice
-
- Open
-