31 Commits

Author SHA1 Message Date
Dani Palou
b2497a1dd0 MOBILE-3109 addon: Add return types to all addons except mod 2019-09-25 13:15:54 +02:00
Dani Palou
0c6c1b6383 MOBILE-3109 scripts: Create a script to convert PHP to TS 2019-09-25 12:26:34 +02:00
Albert Gasset
a7c2d22cb8 MOBILE-3147 doc: Remove jsdoc types from all typescript files 2019-09-12 11:15:56 +02:00
Dani Palou
add7792d24 MOBILE-3127 core: Allow defining a different timeout in wifi/3g 2019-08-22 13:20:09 +02:00
Dani Palou
a983d1c14b MOBILE-3106 core: Use GET as fallback in get public config 2019-07-19 11:45:12 +02:00
Tim Hunt
6243eda097 MOBILE-2951 web-services: make it easier to debug web service calls
We add a redundant &wsfunction=web_service_method_name to the URL
for web service requests, so that it is easier to find the call you
are interested in when debugging using brower tools.

Similarly, we add info= to calls to lib/ajax/service.php, matching what
is done in Moodle web application JavaScript.
2019-04-26 14:33:45 +01:00
Albert Gasset
76bbc30ed9 MOBULE-2838 ws: convertValuesToString improvements
- Skip null and undefined values. They were ignored when sent as POST parameters but are not accepted when sent as JSON.
- Return null instead if some string become empty after stripping Unicode. Previously we were throwing an exception.
- Convert boolean to "0" and "1". Previously we wre using "true" and "false", which are only accepted as POST parameters.
2019-04-04 14:47:21 +02:00
Albert Gasset
9134933217 MOBILE-2838 ws: Don't store POST request promises
Since MOBILE-2900 POST request promises are not reused in CoreWSProvider.
2019-04-04 12:04:30 +02:00
Albert Gasset
f2784cb659 MOBILE-2908 site: Check for duplicate requests 2019-03-07 16:42:39 +01:00
Dani Palou
b8526f585b MOBILE-2795 ws: Fix handle exception in ajax request 2019-01-08 08:20:10 +01:00
Dani Palou
2a439224f2 MOBILE-2795 login: Fix forgot password in 3.3 or older 2019-01-04 13:02:28 +01:00
dpalou
e7e48ee78a MOBILE-2640 errors: Display backtrace for AJAX calls 2018-10-05 15:35:59 +02:00
Dani Palou
b2648612af MOBILE-2376 ws: Treat PHP as an invalid extension 2018-06-06 15:04:21 +02:00
Dani Palou
92e9193157 MOBILE-2381 core: Fix getMimeTypeFromUrl 2018-05-18 12:27:01 +02:00
Dani Palou
5793af108d MOBILE-2350 scorm: Fix unzip in browser and sync WS calls 2018-04-27 09:23:34 +02:00
Pau Ferrer Ocaña
d02b97b913 MOBILE-2349 ws: Fix expected type of WS post calls 2018-03-14 13:41:25 +01:00
Dani Palou
489de4fc09 MOBILE-2333 core: Use parseJSON from text utils 2018-03-13 09:13:31 +01:00
Dani Palou
0669ba9592 MOBILE-2333 siteaddons: Improve logs and remove addon manager 2018-03-12 13:45:13 +01:00
Pau Ferrer Ocaña
f938b37f73 MOBILE-2327 messages: Fix errors from Peer review 2018-03-09 10:49:47 +01:00
Pau Ferrer Ocaña
11d052e659 MOBILE-2327 core: Change all import paths 2018-03-01 17:08:05 +01:00
Dani Palou
01ddf7019c MOBILE-2317 core: Fix tslint warnings 2018-01-29 10:09:34 +01:00
Pau Ferrer Ocaña
debfb5c6c6 MOBILE-2317 user: Solve PR errors and lints 2018-01-25 15:48:18 +01:00
Dani Palou
0960ce92d4 MOBILE-2310 core: Improve documentation of interfaces 2018-01-19 10:11:33 +01:00
Dani Palou
2194c8e294 MOBILE-2310 core: Apply constant and protected guidelines 2018-01-19 10:11:33 +01:00
Dani Palou
5aef9af45b MOBILE-2310 core: Fix issues with WS cache 2018-01-19 10:11:32 +01:00
Dani Palou
03f1614856 MOBILE-2253 core: Use core prefix instead of mm in lang strings 2017-12-18 11:07:13 +01:00
Dani Palou
b65b3278fc MOBILE-2253 ws: Fix HEAD requests 2017-12-18 11:07:13 +01:00
Dani Palou
a4adffe94d MOBILE-2253 core: Implement HTTP interceptor for WS calls 2017-12-15 08:09:28 +01:00
Dani Palou
39a1623f8d MOBILE-2261 core: Support progress in download/upload/unzip 2017-12-15 08:05:24 +01:00
Dani Palou
c8935be6fe MOBILE-2261 site: Implement sites factory and events provider 2017-12-13 16:19:56 +01:00
Dani Palou
4089a85f94 MOBILE-2261 ws: Implement WS provider and FT Mock 2017-11-21 12:11:01 +01:00