-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.9
-
Fix Version/s: 2.9
-
Component/s: JavaScript
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_29_STABLE
-
Fixed Branches:MOODLE_29_STABLE
-
Epic Link:
-
Pull from Repository:
-
Pull Master Branch:
MDL-49163-master -
Pull Master Diff URL:
Create a core ajax script handler (and AMD wrapper) with these features:
- Can call any registered webservice using sesskey as a token
- Can call multiple functions in one request and return separate responses
- Can register callbacks to receive the response from:
- Success of all requests
- Any single failure
- Success or failure of any specific request
It will be a big improvement if we can stop building separate AJAX apis and web service APIs, as well as many separate AJAX handlers with no consistent responses/error handling.