Removing deprecated web services

Removing deprecated web services

by David Monllaó -
Number of replies: 3

Hi all,


As I guess you are aware of, when we list Moodle web services (Site administration -> Plugins -> Web services -> API documentation) we see some deprecated services whose names starts with moodle_*, they are pointing to other web services following the current naming conventions as decided in https://tracker.moodle.org/browse/MDL-29106


We finally pushed to the current sprint the final deprecation of these services https://tracker.moodle.org/browse/MDL-43535 as they were initially deprecated in Moodle 2.2. Hopefully, after a few years, most of you already switched to the non-deprecated ones, just a heads up in case you didn't. This changes will take effect on Moodle 2.9 onwards and this second stage deprecation means that they will return an exception rather that forwarding the execution flow to the replacement funcion.


In case you are interested in following the issue: https://tracker.moodle.org/browse/MDL-43535


Cheers

Average of ratings: -
In reply to David Monllaó

Re: Removing deprecated web services

by David Monllaó -

Hi,

After considering the number of affected users we decided to change the issue's purpose and defer the final deprecation (where the functions are removed) to Moodle 3.0 (MDL-49414 for reference)

The changes introduced in Moodle 2.9 (MDL-43535) are just restricting new or existing web services to add deprecated functions, note that the web services already using deprecated web services will continue working until Moodle 3.0.


Attaching the list of deprecated web services: https://github.com/moodle/moodle/blob/master/webservice/upgrade.txt#L6