105 Commits

Author SHA1 Message Date
Dani Palou
3f40127661 MOBILE-2272 quiz: Support viewing attachments and inline files 2020-11-06 11:54:02 +01:00
Dani Palou
5452ce6cff MOBILE-3571 core: Split calls with too many parameters 2020-10-16 14:30:39 +02:00
Dani Palou
02da06a0fe MOBILE-3338 course: Always get stored data and adapt strings 2020-09-22 14:54:55 +02:00
Dani Palou
bb88252822 MOBILE-3188 core: Rename getModuleTotalSize to getModuleStoredSize 2020-09-02 10:21:34 +02:00
Dani Palou
838e611dab MOBILE-3188 core: Use usual format in new name of wscache table 2020-09-02 10:21:34 +02:00
sam marshall
069c402ba5 MOBILE-3188 Settings: Consistently show total size estimate for site
Changes the two settings pages that show the size of a site (from the
main menu, these are 'App settings / Space usage' and 'Preferences')
so that they:

a) do not show the number of cache entries (not very informative for
   end users)
b) show an estimate for 'space usage' that includes the total size
   of data in ws_cache

The space usage estimate is not perfect (it doesn't include the
per-row overhead in the ws_cache table, or other cached data that
can be deleted such as calendar events or user data) but it will
probably be good enough, and I don't think the 'number of entries'
things was helpful to anyone.
2020-09-02 10:21:34 +02:00
sam marshall
eced391288 MOBILE-3188 Download interface: Show and delete total downloaded data
When showing downloaded sizes in the context menu and in the 'Manage
storage' screen, show the total size including downloaded files plus
cached web service data.

When deleting the downloaded data in either location, delete both
kinds of data.
2020-09-02 10:21:34 +02:00
sam marshall
d0c93f6416 MOBILE-3188 Web services: Record component that owns WS cache item
This commit adds optional component and componentId fields to the
preSets variable, which are recorded in the wscache table.

These are then used by (a) core site plugins where a module cmid
is available, and (b) the forum (as an example core implementation)
so that module site plugins and forum provide the new data.

(Note that this is not going to be very useful where we retrieve
data for multiple activities at once, which happens for activities
like Page. Still, it is optional.)
2020-09-02 10:21:34 +02:00
Dani Palou
5978f25495 MOBILE-3412 core: Fix auto-login for H5P activity 2020-06-11 07:44:41 +02:00
Dani Palou
92247d04e1 MOBILE-3384 login: Accept null in local_mobile check response 2020-04-28 10:28:10 +02:00
Dani Palou
8b9635e675 MOBILE-3101 core: Install and use cordova-plugin-advanced-http 2020-04-21 11:47:05 +02:00
Dani Palou
f5a28ad584 MOBILE-2853 login: Hide password in reconnect if OAuth 2020-01-23 10:02:27 +01:00
Dani Palou
80c2aef0d0 MOBILE-2853 core: Let app DB tables define a scheme to handle updates 2020-01-23 09:59:08 +01:00
Juan Leyva
be8a3a2b66
Merge pull request #2206 from dpalou/MOBILE-3213
MOBILE-3213 core: Don't use tokenpluginfile for customcert
2019-12-11 15:40:05 +01:00
Dani Palou
4c09231e14 MOBILE-3213 core: Don't use tokenpluginfile for customcert 2019-12-11 15:24:41 +01:00
Juan Leyva
40fac1b6a3
Merge pull request #2203 from dpalou/MOBILE-3213
Mobile 3213
2019-12-11 10:53:49 +01:00
Dani Palou
8d30c0be97 MOBILE-3213 core: Run script that removes types from JSDoc 2019-12-11 08:21:20 +01:00
Pau Ferrer Ocaña
0824045e9a MOBILE-3213 lang: Fix minimum version type 2019-12-10 15:11:20 +01:00
Pau Ferrer Ocaña
6e5f8319e4 MOBILE-3213 lang: Use a variable to determine minimum version 2019-12-10 12:27:15 +01:00
Pau Ferrer Ocaña
6219947374 MOBILE-2267 forum: Add open in browser link to posts 2019-11-22 12:09:06 +01:00
Dani Palou
961c873d80 MOBILE-3164 files: Use tokenpluginfile if possible 2019-11-08 13:48:37 +01:00
Dani Palou
7471f54f9c MOBILE-3163 core: Check site URL when treating pluginfile URLs 2019-10-17 17:27:55 +02:00
Dani Palou
08c8487646 MOBILE-2491 filter: Add memory caches to speed up filter 2019-10-08 12:40:01 +02:00
Pau Ferrer Ocaña
a809f624fe MOBILE-3175 other: Change Copyright author 2019-10-02 09:08:21 +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
78d512f92e MOBILE-3068 course: Fix not enrolled error when prefetch course 2019-08-21 16:23:42 +02:00
Dani Palou
4ee4692cd6 MOBILE-3106 login: Check redirect if get site info fails 2019-08-21 11:16:14 +02:00
Juan Leyva
123f74ca0a
Merge pull request #2023 from dpalou/MOBILE-3052
MOBILE-3052 glossary: Don't prefetch get_by_id
2019-07-31 12:57:45 +02:00
Dani Palou
ecd918a0d7 MOBILE-3052 glossary: Don't prefetch get_by_id 2019-07-22 13:05:36 +02:00
Dani Palou
a983d1c14b MOBILE-3106 core: Use GET as fallback in get public config 2019-07-19 11:45:12 +02:00
Dani Palou
d0beca075a MOBILE-3039 core: Fix reconnect screen shown again when it shouldn't 2019-05-29 15:24:43 +02:00
Dani Palou
24fb3d999c MOBILE-3039 core: Don't force WS queue 2019-05-27 16:36:52 +02:00
Dani Palou
235297ca28 MOBILE-3036 core: Define different cache expiration times 2019-05-24 08:26:57 +02:00
Dani Palou
072d6dde3e MOBILE-2969 quiz: Fix review attempt when it shouldn't 2019-05-17 15:59:19 +02:00
Dani Palou
cab44018a6 MOBILE-3013 core: Support handling root URLs 2019-05-16 18:01:52 +02:00
Dani Palou
e413c95698 MOBILE-2851 core: Fix promise never finished when retry request 2019-05-14 14:02:35 +02:00
Albert Gasset
3cbc07e376 MOBILE-2900 core: Update Moodle 3.7 version number 2019-05-10 15:02:35 +02:00
Juan Leyva
e854306d57
Merge pull request #1865 from dpalou/MOBILE-2984
MOBILE-2984 config: Allow overriding site name
2019-04-30 20:43:07 +02:00
Juan Leyva
0daf5191ff
Merge pull request #1855 from albertgasset/MOBILE-2838
MOBILE-2838 site: Fix checking whether no response is expected
2019-04-29 10:03:48 +02:00
Albert Gasset
44eb98da3e MOBILE-2838 site: Fix checking whether no response is expected 2019-04-26 16:51:43 +02:00
Juan Leyva
a11a194b33
Merge pull request #1842 from albertgasset/MOBILE-2900
MOBILE-2900 courses: Exclude enrolled user count from WS call
2019-04-26 11:15:33 +02:00
Dani Palou
dd4688f3d4 MOBILE-2984 config: Allow overriding site name 2019-04-18 08:51:28 +02:00
Albert Gasset
c682ff8673 MOBILE-2838 site: Skip request queue for "core_webservice_get_site_info" calls 2019-04-04 15:13:02 +02:00
Albert Gasset
c3e0164038 MOBILE-2838 site: Use "tool_mobile_call_external_functions" for all calls 2019-04-04 15:06:29 +02:00
Albert Gasset
21971a9ab4 MBOILE-2838 site: Batch WS calls to reduce the number of HTTP requests 2019-04-04 14:47:21 +02: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
732e3fccb6 MOBILE-2838 site: Index functions by name to speed up wsAvailable 2019-04-04 12:04:30 +02:00
Dani Palou
5c4fcaf09e MOBILE-2915 core: Fix multiple change password errors 2019-03-27 17:06:38 +01:00
Albert Gasset
a9299b1560 MOBILE-2915 site: Fix clearing of cached request promises 2019-03-25 17:15:55 +01:00