Jun Pataleta
1e324a4a88
Merge branch 'MDL-58749-master-enfix' of git://github.com/mudrd8mz/moodle
2017-05-04 14:45:08 +08:00
Damyon Wiese
00879eca66
MDL-58800 repository_googledocs: Switch oauth clients
...
We need to ensure we use the correct oauth client to download files. This change
is the same as the one made to the onedrive repository where a usesystem flag
is added to the file reference if the file has been copied to the system account.
2017-05-04 12:57:23 +08:00
Helen Foster
06d0aa4432
MDL-58749 lang: Merge English strings from the en_fix language pack
...
Significant string changes:
* errorinvalidbyhour,core_calendar - correcting number from 59 to 23
* cron_help,core_admin - updated recommendation to run cron every minute
* tour1_content_end, tour1_content_welcome, tour2_content_end,
tour2_content_welcome all in tool_usertours - removing reference to
3.2
* invalidsesskey,core_error and invalidsesskey,mod_wiki - more
understandable error message
* pluginname_help and pluginnamesummary in qtype_essay - explaining that
the question type can be used for file uploads
* formatnoinline, mustattach and mustrequire in qtype_essay - changing
the word 'inline' to 'online'
2017-05-03 22:05:51 +02:00
Damyon Wiese
f942de3c8a
MDL-58535 repository_onedrive: Use correct user
...
If the file was copied to a system account, we need to use the system oauth when accessing it.
2017-05-02 11:45:57 +08:00
Damyon Wiese
13d21db324
MDL-58535 repository_onedrive: Use the weblink
...
The permission has it's own weblink which is different from the link on the original doc.
2017-05-01 16:15:36 +08:00
Damyon Wiese
c0a4efdce2
MDL-58535 repository_onedrive: Better error
...
When OneDrive has never been initialised the Graph API returns an error. Detect this and
direct the user to log in to OneDrive.
2017-05-01 16:15:36 +08:00
Damyon Wiese
8381b05d49
MDL-58535 repository_onedrive: Integration review fixes
...
Fixes for some missing imports and unused variables.
2017-05-01 16:15:36 +08:00
Damyon Wiese
68c6fd20a7
MDL-58535 onedrive: Fix upload to system account
...
This was failing for personal accounts (but was fine for business).
2017-05-01 16:15:35 +08:00
Damyon Wiese
536ed579b9
MDL-58535 repository_onedrive: Controlled link fixes
...
It is impossible to reliable copy a file between users without downloading and uploading the file.
This sucks but it's true...
2017-05-01 16:15:35 +08:00
Jan Dageförde
c7de40a8ed
MDL-58372 repository_webdav: Explicitly pass some filename
...
Not passing anything triggers PHP 7.1 "Too few arguments" exception.
2017-04-26 11:28:41 +02:00
Jun Pataleta
089810fb06
MDL-58538 repository_onedrive: Use image_url() instead of pix_url()
2017-04-19 12:29:22 +08:00
Jake Dallimore
84fb93a77e
Merge branch 'MDL-58297-master' of git://github.com/andrewnicols/moodle
2017-04-11 10:49:07 +08:00
Andrew Nicols
e6a4780452
MDL-58297 core: Update to use new hashing functions
2017-04-07 10:40:23 +08:00
Dan Poltawski
1e4e5c52d7
Merge branch 'MDL-55611-master' of git://github.com/danpoltawski/moodle
2017-04-04 17:07:41 +01:00
Damyon Wiese
bcd08003fa
MDL-58220 lang: Add / fix lang strings
...
The refactoring during integration caused some lang string errors.
2017-04-04 10:28:14 +08:00
Damyon Wiese
aa89bf2e6c
MDL-58220 repo: Dont expect file info for any file
...
Some plugins do not implement the file info callback so expect and handle null in this case.
2017-04-03 13:43:27 +08:00
Damyon Wiese
e7688f559a
MDL-58220 onedrive: Add import from skydrive
...
If the skydrive repo exists - show a button on the config page for the onedrive repo to "steal" all the files
from the other repo and disable it.
2017-04-03 13:43:27 +08:00
Damyon Wiese
86a5f1efe1
MDL-58220 repository_skydrive: Add deprecation warning
2017-04-03 13:43:27 +08:00
Damyon Wiese
e518ea7949
MDL-58220 repository_onedrive: rename from skydrive
...
Update all references from skydrive to onedrive in the code / lang strings.
2017-04-03 13:43:27 +08:00
Damyon Wiese
9b8a36e882
MDL-58220 repository_skydrive: put back existing
...
Restore the existing skydrive repo from integration / master.
Because we cannot upgrade cleanly - it's better not to touch the existing repo.
2017-04-03 13:43:27 +08:00
Damyon Wiese
0931acf96b
MDL-58220 repository: Move skydrive -> onedrive
2017-04-03 13:43:27 +08:00
Damyon Wiese
33536fb2b7
MDL-58220 repositories: missing/disabled issuer
...
This makes the code checking for a missing / disabled issuer a bit cleaner.
2017-04-03 13:43:26 +08:00
Dan Poltawski
5afb4f0e50
MDL-58220 repository: prevent repo breaking when issuer doesn't exist
2017-04-03 13:43:26 +08:00
Damyon Wiese
ba3b0145ff
MDL-58220 repository_skydrive: Remove references to google
2017-04-03 13:43:26 +08:00
Damyon Wiese
eb47ad4a6e
MDL-58220 repository: More docs / comments
...
More docs / comments for the reference_file_selected function used by controlled links.
2017-04-03 13:43:26 +08:00
Damyon Wiese
6f8a03f196
MDL-58220 skydrive: Upgrade from old settings
...
Upgrade the oauth2 settings to an oauth2 issuer.
2017-04-03 13:43:26 +08:00
Damyon Wiese
13b449f4a5
MDL-58220 oauth2: cibot cleanups
2017-04-03 13:43:25 +08:00
Damyon Wiese
d5bb9f1ffc
MDL-58334 repositories: Offline downloads
...
Support an optional param for offline downloads for repositories supporting external links (googledrive and skydrive).
Part of MDL-58220
2017-04-03 13:43:25 +08:00
Damyon Wiese
092304a3de
MDL-58220 oauth2: Cibot fixes
...
Missing phpdocs.
2017-04-03 13:43:25 +08:00
Damyon Wiese
eca128bf47
MDL-58220 oauth2: Global enable/disable for issuers.
2017-04-03 13:41:19 +08:00
Damyon Wiese
ffda3e395c
MDL-58127 skydrive: Upgrades to new oauth2
...
Support for controlled links workflow.
Part of MDL-58220
2017-04-03 13:41:19 +08:00
Damyon Wiese
af28b22892
MDL-58219 googledocs: Use google file extensions
...
Only rename on export for download.
Part of MDL-58220
2017-04-03 13:41:19 +08:00
Damyon Wiese
72643dc688
MDL-58219 googledocs: Update to new model for controlledlinks
...
Part of MDL-58220
2017-04-03 13:41:19 +08:00
Damyon Wiese
141ee541ca
MDL-58219 repository: Change how controlled links work
...
Files are copied to the system user as soon as they are uploaded. Write access is then controlled when
serving links to the file.
Part of MDL-58220
2017-04-03 13:41:19 +08:00
Damyon Wiese
72fd103add
MDL-58219 cibot: Fixes
...
Fixes for cibot warnings.
Part of MDL-58220
2017-04-03 13:41:19 +08:00
Damyon Wiese
ec504d94f6
MDL-58219 googledocs: Fix upgrade script nesting
...
Part of MDL-58220
2017-04-03 13:41:18 +08:00
Damyon Wiese
39f60f6c00
MDL-58219 googledocs: Use a cache
...
Speed up folder operations with a simple cache.
Part of MDL-58220
2017-04-03 13:41:18 +08:00
Damyon Wiese
6da1c55ba8
MDL-58219 googledocs: Keep original name on copy
...
Also - only add writers to files that have been "claimed" (prevent_changes_to_external_files)
Part of MDL-58220
2017-04-03 13:41:18 +08:00
Damyon Wiese
5823a27e7e
MDL-58131 googledocs: Add manage url -> drive
...
Part of MDL-58220
2017-04-03 13:40:13 +08:00
Damyon Wiese
151b0f9409
MDL-58132 repositories: Controlled link file type
...
This introduces a new "controlled link" file type where the file is not
stored in Moodle - but Moodle will control the access permissions on the file.
Plugins can "freeze" a filearea which means Moodle will take ownership of all the remote
files of this type.
When accessing a file, if the "filebrowser" infomation indicates the current user can write to the file, they
will be granted temporary write access.
Part of MDL-58220
2017-04-03 13:40:13 +08:00
Damyon Wiese
8ece1d70d8
MDL-58128 googledocs: Don't copy files
...
When linking - add the moodle account to the file and
organise it on the moodle side. Also allow read access with link,
but don't make any other changes to the perm/ownership.
Part of MDL-58220
2017-04-03 13:40:13 +08:00
Damyon Wiese
989e14fea0
MDL-58128 googledocs: Support reference files.
...
Add options so the admin can control the types of files this repository can support (and the default).
Part of MDL-58220
2017-04-03 13:40:13 +08:00
Damyon Wiese
6c9cd495a2
MDL-58128 googledocs: Upgrade repo config
...
Part of MDL-58220
2017-04-03 13:40:13 +08:00
Damyon Wiese
0e59638bdb
MDL-58126 googledocs: Re-implement the google docs repo
...
Use latest REST API (v3) - but avoid the google client libraries
(too big, too much to update, not integrated with auth).
Part of MDL-58220
2017-04-03 13:40:13 +08:00
Simey Lameze
fdeeaff954
MDL-58265 core_test: replace I turn editing on steps
...
Also remove few more unnecessary steps that redirects behat to
site home page to actually get to the course.
Part of MDL-55611 epic.
2017-04-03 11:37:07 +08:00
Simey Lameze
93be3f730c
MDL-58265 core_test: remove unnecessary steps
...
This commmit removes steps that take behat to site home page
to actually get to a course page.
Part of MDL-55611 epic.
2017-04-03 11:37:07 +08:00
Simey Lameze
c987d1b2ef
MDL-58265 core_test: replace all uses of I follow course steps
...
Part of MDL-55611 epic.
2017-04-03 11:37:07 +08:00
Damyon Wiese
663640f5b3
MDL-40759 icons: convert uses of pix_url to pix_icon
...
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08:00
Andrew Nicols
b117fb3db9
MDL-33483 repository: Coding style tidyup
2017-02-27 11:31:00 +08:00
Andrew Nicols
eccbea3dd0
Merge branch 'MDL-33483_m33v2' of https://github.com/sbourget/moodle
2017-02-27 10:40:21 +08:00