1688 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
6eb9e03872 MDL-50176 repository_youtube: delay loading google service stuff
Loading Google client services is a little monster, eating around
2MB (opcache enabled) of memory. As far as we instantiate the
repository instances really early, no matter they are not used
later (editor, file picker, admin...).. we are delaying the
load of the service until we know we are going to use it.

Surely applying this very same (sort of lazy load) techinque
to other repositories could lead to a nice memory reduction
in lots of pages.

MDL-50176 repository_youtube: also delay the inclusion of client.

While memory was fixed with previous commit, still some extra included
files where being reported, so go crazy and move all the stuff to
the new init delayed method.
2015-06-12 10:27:30 +02:00
Adam Olley
b8264f5b2b MDL-50176 repository_youtube: Switch to using YouTube Data API
As of April 20, 2015, the old API used by repository_youtube is no longer
accessible. This change switches over to using the standard Google Data
API v3.

Unfortunately this means that to search YouTube, a developer api key is now
*required*.

Special thanks to UNSW for sponsoring this work.
2015-06-01 09:25:40 +09:30
Eloy Lafuente (stronk7)
b758ab3053 MDL-50183 upgrade: add 2.9.0 separation line to all upgrade scripts 2015-05-12 00:21:05 +02:00
Eloy Lafuente (stronk7)
26ea380d24 MDL-50102 versions: bump all versions and requires near release
version = planned 2015051100 release version
requires= current 2015050500 rc1 version

Note: On purpose, the course format social wrong version (2015102100)
has been kept unmodified. Looking forward a solution right now.
2015-05-05 17:43:19 +02:00
John Okely
4887d15228 MDL-49983 navigation: Remove 'my' from user context navigation 2015-05-04 12:38:50 +08:00
Rajesh Taneja
0fe86bbdbb MDL-49799 behat: replaced asd.com with example.com
asd.com is a valid domain, we should use reserved domain names for testing
2015-04-20 11:21:20 +08:00
Damyon Wiese
46a2fbc4b7 MDL-49412 Navigation: Remaining behat fixed for nav branch
Behat is passing after this change.

Part of MDL-45774.
2015-04-10 17:19:28 +08:00
Simey Lameze
a1e9151a1a MDL-49412 repository: Behat fixes for repository
Part of MDL-45744
2015-04-10 17:18:24 +08:00
Frederic Massart
fa3ca5e204 MDL-45902 repository: Improving breadcrumb and title of manage page
Part of MDL-45774
2015-04-10 17:17:06 +08:00
Eloy Lafuente (stronk7)
c790542885 MDL-49519 Google API: use autoload everywhere
Update core (repository & portfolio) to use autoload facilities,
getting rid of not-needed-anymore requires.

Clarify a bit the readme_moodle information and expected use.
2015-04-08 20:29:03 +02:00
Dave Cooper
fa48383bfa MDL-49519 libraries: Update references to new Google API library 2015-04-08 02:26:16 +02:00
Andrew Nicols
2b53b13ff7 MDL-49627 core: Update uses of generate_image_thumbnail
This removes the need to write tempfiles in these locations.
2015-04-01 11:05:19 +08:00
David Monllao
47d333857d Merge branch 'MDL-23296-master' of git://github.com/FMCorz/moodle 2015-04-01 10:41:41 +08:00
Marina Glancy
1c4f42e1b2 MDL-47729 repository_filesystem: smarter sync of references
It was noticed that if file content was once imported the following
synchronisations do not discover the changes
2015-03-13 11:01:02 +08:00
Frederic Massart
7a79030f48 MDL-23296 repository_local: Implementing search through server files 2015-03-05 13:41:47 +01:00
Helen Foster
428330da1c MDL-49241 lang: Merge English strings from the en_fix language pack 2015-02-24 11:15:15 +01:00
Eloy Lafuente (stronk7)
5eb6047eae NOBUG: Fixed file access permissions 2015-02-19 10:44:24 +01:00
Eloy Lafuente (stronk7)
0a84773c52 MDL-49115 repository_s3: add endpoint default to generator 2015-02-17 16:30:43 +01:00
Dan Bennett
d908797918 MDL-49115 repository_s3: Fixed endpoint not saving 2015-02-17 15:43:13 +08:00
Eloy Lafuente (stronk7)
21c7e25a94 Merge branch 'MDL-48889-master' of git://github.com/jethac/moodle 2015-02-10 01:36:27 +01:00
Dan Poltawski
1fabe95e59 NOBUG: Fixed file access permissions 2015-02-05 10:07:11 +00:00
Andrew Nicols
48bac91be8 Merge branch 'MDL-48929-master' of git://github.com/FMCorz/moodle 2015-02-03 13:55:32 +08:00
David Monllao
9afe4eb556 MDL-43752 repository_s3: Using setDefault 2015-02-03 11:04:51 +08:00
Dan Bennett
9b71e3aff0 MDL-43752 repository_s3: added endpoint select box to settings page 2015-02-02 15:34:36 +00:00
Jetha Chan
20a263ecfa MDL-48889 repository_s3: pipe S3Exception messages into moodle
When processing S3Exceptions thrown by the S3 library, pass
the exception messages into the moodle_exceptions being
created in order to actually tell people what went wrong.
2015-01-29 17:41:32 +08:00
Nelson Moller
413907cff3 MDL-48929 repository_filesystem: Valide relative path against realpath
On Windows systems, there could have been a mix of back and forward
slashes, causing the validation of the relative path to fail. Now
we will always get the realpath before comparing.
2015-01-23 17:26:32 +08:00
Eloy Lafuente (stronk7)
6775497181 Merge branch '37680-29' of git://github.com/samhemelryk/moodle 2015-01-08 00:40:00 +01:00
Dan Poltawski
9835839186 Merge branch 'MDL-46124-master' of git://github.com/FMCorz/moodle 2014-12-23 10:20:44 +00:00
Eloy Lafuente (stronk7)
b44a858ff1 Merge branch 'MDL-48639' of git://github.com/timhunt/moodle 2014-12-22 19:09:43 +01:00
Tim Hunt
16282275d1 MDL-48639 behat upload: support absolute paths & better errors
In a custom step I needed to be able to upload a file I had previously
saved to $CFG->dataroot/temp, but that was not possible.

Also, the failure was not at all obvious. I have made it throw a clear
exception if the file you are trying to upload does not exist.
2014-12-19 11:58:59 +00:00
John Okely
e6904efc52 MDL-42166 repositories: Finalise deprecation of repository sync methods 2014-12-16 15:57:50 +08:00
Frederic Massart
6b61c2c45f MDL-46124 libraries: Final deprecation of text libs and plugin libs
- textlib_get_instance
- textlib
- collatorlib
- plugin_manager
- plugininfo_base
2014-12-15 17:02:31 +08:00
Sam Hemelryk
60f35a82e1 MDL-37680 repositories: added blocks to manage page 2014-12-12 13:36:45 +13:00
Dan Poltawski
c676a343a5 Merge branch 'MDL-41846-master' of git://github.com/xow/moodle 2014-12-09 10:25:15 +00:00
Dan Poltawski
d2c33655b6 Merge branch 'MDL-35983_equella_filename_dev' of git://github.com/dongsheng/moodle 2014-12-08 14:23:49 +00:00
John Okely
be305dc13a MDL-41846 repository_url: Escape > < ' " in input url
And throw an exception when a url is incorrectly formatted
2014-12-05 11:15:30 +08:00
John Okely
80a0fee266 MDL-41846 repository_url: Convert spaces to %20 in input url 2014-12-05 10:24:46 +08:00
Andrew Nicols
64e7aa4de1 MDL-28286 JavaScript: Convert all uses of M.str to M.util.get_string 2014-12-01 08:32:04 +13:00
Eloy Lafuente (stronk7)
147bae8f7c MDL-48144 upgrade: add v2.8.0 sep lines 2014-11-10 18:08:15 +01:00
Eloy Lafuente (stronk7)
de881693f7 MDL-48021 bump: Bump all versions to planned release
This bumps all versions to planned 2.8 release
(2014111000) version and all the dependencies to
current 2.8rc1 (2014110400)
2014-11-04 17:52:35 +01:00
Dan Poltawski
6469803f68 MDL-47960 behat: fix my private files navigation
Caused by the my private files link being in user menu too..
2014-10-30 10:56:16 +08:00
Frederic Massart
28cdc0439f MDL-47297 repository_googledocs: Use the newer Google API 2014-10-08 19:15:09 +08:00
Tony Butler
1e31f11852 MDL-28484 core_lib: Add function for https detection
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-10-03 13:02:29 +01:00
Frederic Massart
16e7b52642 MDL-47294 repository_s3: Update S3 library to 0.5.1-dev 2014-09-25 14:11:09 +08:00
Frederic Massart
385de04b10 MDL-47209 repository_skydrive: Use new oauth URLs 2014-09-11 15:16:31 +08:00
Dan Poltawski
c5afe577c9 Merge branch 'MDL-42752-master' of git://github.com/phalacee/moodle 2014-07-14 16:06:13 +01:00
Dan Poltawski
d3181cc8b5 Merge branch 'm28_MDL-46250' of https://github.com/totara/moodle 2014-07-14 13:12:43 +01:00
Marina Glancy
e29bb97c07 MDL-45616 repositories: API changes to avoid serialized data in user input 2014-07-07 14:41:20 +08:00
Marina Glancy
56964b7948 MDL-45616 repositories: use json encoding instead of serialization 2014-07-07 14:41:20 +08:00
Marina Glancy
5ad3f3c61e MDL-45616 repositories: more clearly distinguish when we use source and when reference
Function repository::get_moodle_file() should always be called on packed reference and not on the source received from user.
Also added phpdocs to some other methods that were confusing source and reference
2014-07-07 14:41:20 +08:00