Web services

Removing deprecated web services

 
Picture of David Monllaó
Removing deprecated web services
Core developersMoodle Course Creator Certificate holdersMoodle HQParticularly helpful MoodlersPlugin developersTesters

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: -
Picture of Juan Leyva
Re: Removing deprecated web services
Core developersMoodle HQParticularly helpful MoodlersPlugin developersTesters

Hello,

note that this will break custom versions of the Moodle Mobile app since it uses the deprecated services for backwards compatibility.

If you've developed a custom version of Moodle Mobile please read: https://moodle.org/mod/forum/discuss.php?d=276469

Cheers, Juan

 
Average of ratings: -
Picture of David Monllaó
Re: Removing deprecated web services
Core developersMoodle Course Creator Certificate holdersMoodle HQParticularly helpful MoodlersPlugin developersTesters

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

 
Average of ratings: -
Picture of Praveen Pendyala
Re: Removing deprecated web services
 

Thanks for the update David. This buys enough time for client developers.


Best,

Praveen

https://github.com/praveendath92

 
Average of ratings: -