23790 Commits

Author SHA1 Message Date
Damyon Wiese
d29be32000 MDL-59801 users: Behat fixes
Firstly - the list of roles to filter needs to be a combination of the assignable roles and the existing roles in the course.
Secondly - the auto-complete behat step needs to search for entire strings, not substrings.
2017-08-31 12:32:03 +08:00
Damyon Wiese
5c1d5a6d7c MDL-59828 inplaceeditable: CSS class fix
The form-autocomplete-original-select was applied to the wrong element.

inplaceeditable selects => inplaceeditable autocompletes
2017-08-31 10:16:53 +08:00
Jun Pataleta
9e22016778 Merge branch 'MDL-59884-master' of git://github.com/lameze/moodle 2017-08-30 10:10:30 +08:00
Simey Lameze
8dc85f9c04 MDL-59884 core: add new overlay_loading template 2017-08-30 09:44:22 +08:00
Eloy Lafuente (stronk7)
a4cdbff86c MDL-59713 forms: prevent php warning when 'optional' option is missing 2017-08-29 20:12:41 +02:00
Dan Poltawski
e517eb100c Merge branch 'MDL-59951-master' of git://github.com/damyon/moodle 2017-08-29 14:32:43 +01:00
Dan Poltawski
253ea6621a Merge branch 'MDL-59615-master' of git://github.com/damyon/moodle 2017-08-29 10:58:42 +01:00
Jun Pataleta
4f9dfd0f8d Merge branch 'MDL-59628-master' of git://github.com/damyon/moodle 2017-08-29 13:49:55 +08:00
Andrew Nicols
d3e6c398f4 Merge branch 'MDL-35290-master' of https://github.com/snake/moodle 2017-08-29 13:14:22 +08:00
Damyon Wiese
26c4d2bf79 MDL-59628 forms: Get a valid zindex for datepicker
We have a way to determine a valid zindex when adding things to a page. Find all the moodle-has-zindex things and
choose a value bigger all of them. This needs doing in javascript whenever a thing is opened. It's not possible to
fix generically in CSS (remember the historic z-index wars).
2017-08-29 12:09:59 +08:00
Andrew Nicols
85419c5b2e Merge branch 'MDL-59828-master' of git://github.com/damyon/moodle 2017-08-29 11:56:28 +08:00
Jun Pataleta
c5830051e5 Merge branch 'MDL-59855-master' of git://github.com/junpataleta/moodle 2017-08-29 11:43:36 +08:00
Jun Pataleta
7927138d50 MDL-59855 oauth2: More PHPDocs fixes
* Fix PHPDoc return type for api::get_system_account()
* Fix PHPDoc for the $contenttype parameter in \core\oauth2\rest::call()
2017-08-29 11:18:23 +08:00
Jake Dallimore
7a170fad85 MDL-35290 files: File manager reports files which can't be read 2017-08-29 11:15:30 +08:00
Jun Pataleta
909ae42d7d Merge branch 'MDL-59869-master' of git://github.com/Dagefoerde/moodle 2017-08-29 10:40:30 +08:00
Eloy Lafuente (stronk7)
f0e6ff9a8e Merge branch 'MDL-59669-master-3' of git://github.com/ryanwyllie/moodle 2017-08-29 02:15:18 +02:00
Eloy Lafuente (stronk7)
25f24df793 Merge branch 'MDL-59265_master' of git://github.com/dmonllao/moodle 2017-08-29 01:16:42 +02:00
Damyon Wiese
b78968ab79 MDL-59951 analytics: Don't link to deleted page. 2017-08-28 13:57:54 +08:00
Mark Nelson
7948dae160 MDL-59904 core: add missing FKs to analytics tables 2017-08-28 11:13:38 +08:00
Jan Dageförde
8aa17e1347
MDL-59869 oauth2: Fix notification method 2017-08-26 15:42:12 +02:00
Jan Dageförde
efbe24f5a8
MDL-59869 oauth2: Send expiry notification on exceptions, too 2017-08-26 15:42:12 +02:00
Jan Dageförde
bd0b987338
MDL-59855 oauth2: Fix PHPDoc type hints 2017-08-26 15:42:04 +02:00
David Monllao
381c670894 MDL-59265 mlbackend: Splitting up predictor interface in 2 2017-08-25 13:50:34 +02:00
David Monllao
5c5cb3ee15 MDL-59265 analytics: Rename machine learning backend method
- Method names renamed to avoid interface changes once
  we support regression and unsupervised learning
- Adding regressor interface even if not implemente
- predictor interface comments expanded
- Differentiate model's required accuracy from predictions quality
- Add missing get_callback_boundary call
- Updated datasets' metadata to allow 3rd parties to code
  regressors themselves
- Add missing option to exception message
- Include target data into the dataset regardless of being a prediction
  dataset or a training dataset
- Explicit in_array and array_search non-strict calls
- Overwrite discrete should_be_displayed implementation with the binary one
- Overwrite no_teacher get_display_value as it would otherwise look
  wrong
- Other minor fixes
2017-08-25 13:17:22 +02:00
David Monllao
0f5fa169b1 MDL-59265 analytics: Switch prediction field to float
For future regression support
2017-08-25 13:17:18 +02:00
Damyon Wiese
d8e57f02a7 MDL-59828 autocomplete: Sizing issues on themes
We want to avoid page jumps wherever possible. This change uses the original select element as a "proxy" to reserve the space
in the DOM for the enhanced auto-complete when the JS runs.

It uses visibility: hidden to make the select not rendered - but still take up space.

The exact sizing for the CSS was determined by testing and reverse engineering the bootstrap calculations.

The size of user pictures in selectors was reduced to avoid flicker when switching between no selection and a selected user. I
could have reserved a larger amount of space, but it looks worse for pickers with no pictures.
2017-08-25 15:07:40 +08:00
Ryan Wyllie
7ce44d8edc MDL-59669 forms: add helper to get submission keys for unit tests 2017-08-24 04:49:26 +00:00
John Okely
7757d27805 MDL-36985 atto: removeorphaneddrafts should be optional 2017-08-24 08:28:55 +08:00
Eloy Lafuente (stronk7)
8839739680 Merge branch 'MDL-59790-master' of git://github.com/lameze/moodle 2017-08-23 11:34:22 +02:00
Andrew Nicols
fc7467e5a1 Merge branch 'MDL-57412-master' of https://github.com/xow/moodle 2017-08-23 11:15:34 +02:00
John Okely
e46fde42ab MDL-57412 upgrade: Set linkcoursesections to 1 if boost in use 2017-08-23 15:05:32 +08:00
Jun Pataleta
ac150167c3 Merge branch 'MDL-59733-master-fix' of github.com:xow/moodle 2017-08-23 10:52:44 +08:00
Jun Pataleta
b6f7efb368 Merge branch 'MDL-59784-master' of git://github.com/andrewnicols/moodle 2017-08-23 10:47:54 +08:00
John Okely
025bf573c9 MDL-59733 assignsubmission_file: Add title to filetypes setting modal 2017-08-23 10:25:49 +08:00
Andrew Nicols
e5bdf51ce5 MDL-59784 core: Check for non-promises rather than string
If a malformed value was passed, it may be that we can still display it.
We should not assume that, if a string is not passed, that we are
dealing with a promise.
2017-08-23 10:25:15 +08:00
Simey Lameze
b45ca55d6b MDL-59790 core: fix tooltip for pie chart 2017-08-23 10:03:00 +08:00
Andrew Nicols
8cb6a55147 Merge branch 'MDL-53848_form_hideif' of git://github.com/davosmith/moodle 2017-08-23 09:56:00 +08:00
Andrew Nicols
6ca4e64606 Merge branch 'MDL-59393-master-2' of git://github.com/ryanwyllie/moodle 2017-08-23 09:44:01 +08:00
Ryan Wyllie
c6fb931088 MDL-59393 calendar: add update_event_start_day external function 2017-08-23 00:56:27 +00:00
Eloy Lafuente (stronk7)
a7417383fa Merge branch 'MDL-59067_master' of git://github.com/dmonllao/moodle 2017-08-23 02:55:20 +02:00
David Monllao
0690a271c3 MDL-59067 analytics: Store indicator calculations
This was supposed to be split into multiple commits to make it easier to understand
but I failed to do it properly. So this is the list of changes:

- New analytics_indicator_calc db table to store indicators calculations
- Reuse previous calculations during prediction/training; other models
  previous calculations should also be reused as long as they belong to
  the same sample (sampleid depends on sampleorigin), time range and indicator
- Allow bulk inserting of these calculations as this can hurt database performance
- Block the same analysable to be analysed for training and for prediction
- Use a new instance of the target and use it for is_valid_* functions
  as using ::is_valid_sample can lead to problems if people
  uses it to cache stuff
2017-08-22 22:28:04 +02:00
Eloy Lafuente (stronk7)
fae154ea39 Merge branch 'MDL-59859-master' of git://github.com/andrewnicols/moodle 2017-08-22 12:36:48 +02:00
Eloy Lafuente (stronk7)
faa509dfb2 Merge branch 'MDL-59784-master' of git://github.com/andrewnicols/moodle 2017-08-22 12:28:32 +02:00
Andrew Nicols
1bf96e2388 MDL-59848 auth: Remove config for old plugins
Note: (stronk7@moodle.org) Amended slightly from original to update versions.
2017-08-22 12:20:19 +02:00
Andrew Nicols
4508e143d8 Merge branch 'MDL-59826-master' of https://github.com/snake/moodle 2017-08-22 15:49:11 +08:00
Andrew Nicols
474c7ee757 Merge branch 'MDL-36985-master' of https://github.com/snake/moodle 2017-08-22 14:37:55 +08:00
Jake Dallimore
81ed702156 MDL-36985 atto: show file removal text on managefiles plugin
Shows a text warning in the manage files plugin window when an editor
has set the 'removeorphaneddrafts' option to true. The text tells the
user that unused files will be automatically deleted on save.
2017-08-22 13:19:52 +08:00
Jake Dallimore
f3c2afd0e8 MDL-36985 core_files: added option to remove draft files on save
text areas can now specify $options['removeorphaneddrafts'] when saving
their data using file_postupdate_standard_editor(). If set to true,
this option clears all user drafts which are not referenced in the text
2017-08-22 13:15:30 +08:00
Jun Pataleta
f8de8cb314 Merge branch 'MDL-59204_master_v2' of git://github.com/markn86/moodle 2017-08-22 12:46:23 +08:00
Andrew Nicols
17137d471d MDL-59859 core: Accept Promise for save button
Accept either a promise, or a string for the content of the save button
in the save / cancel modal.
2017-08-21 12:54:34 +08:00