moodle.git
6 years agoMDL-64573 calendar: behat fix, validation is now on client
Marina Glancy [Thu, 25 Apr 2019 09:49:03 +0000 (11:49 +0200)]
MDL-64573 calendar: behat fix, validation is now on client

6 years agoMDL-64573 output: ajax form event
Damyon Wiese [Wed, 3 Apr 2019 07:10:44 +0000 (15:10 +0800)]
MDL-64573 output: ajax form event

Add an event that can be fired when an mform is about to be submitted via ajax.
This allows custom field types to perform an action when the form is submitted.

The atto text editor will reset any autosaves when the form is submitted.

6 years agoon-demand release 3.7dev+
Eloy Lafuente (stronk7) [Fri, 5 Apr 2019 16:33:19 +0000 (18:33 +0200)]
on-demand release 3.7dev+

6 years agoMDL-64779 tool_analytics: Nice styles for the export modal
David Monllaó [Fri, 5 Apr 2019 11:18:50 +0000 (13:18 +0200)]
MDL-64779 tool_analytics: Nice styles for the export modal

6 years agoMDL-64506 mod_choice: fix behat issue with screensize
Mathew May [Fri, 5 Apr 2019 09:37:23 +0000 (17:37 +0800)]
MDL-64506 mod_choice: fix behat issue with screensize

We found issues in FireFox where Behat could not scroll to select
the student two checkbox.

6 years agoMDL-65019 core_course: Update to fix whitespace.
Adrian Greeve [Fri, 5 Apr 2019 01:33:13 +0000 (09:33 +0800)]
MDL-65019 core_course: Update to fix whitespace.

6 years agoMerge branch 'MDL-65019-master' of git://github.com/jleyva/moodle
Adrian Greeve [Fri, 5 Apr 2019 01:14:23 +0000 (09:14 +0800)]
Merge branch 'MDL-65019-master' of git://github.com/jleyva/moodle

6 years agoMerge branch 'MDL-65024-master' of git://github.com/jleyva/moodle
Adrian Greeve [Fri, 5 Apr 2019 01:09:16 +0000 (09:09 +0800)]
Merge branch 'MDL-65024-master' of git://github.com/jleyva/moodle

6 years agoMerge branch 'MDL-65029-master' of git://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Thu, 4 Apr 2019 22:39:10 +0000 (00:39 +0200)]
Merge branch 'MDL-65029-master' of git://github.com/timhunt/moodle

6 years agoMerge branch 'MDL-65127-master' of git://github.com/sarjona/moodle
Eloy Lafuente (stronk7) [Thu, 4 Apr 2019 22:21:20 +0000 (00:21 +0200)]
Merge branch 'MDL-65127-master' of git://github.com/sarjona/moodle

6 years agoMerge branch 'MDL-65094-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Thu, 4 Apr 2019 20:32:52 +0000 (22:32 +0200)]
Merge branch 'MDL-65094-master' of git://github.com/rezaies/moodle

6 years agoMerge branch 'MDL-65114-master' of https://github.com/snake/moodle
Eloy Lafuente (stronk7) [Thu, 4 Apr 2019 18:41:40 +0000 (20:41 +0200)]
Merge branch 'MDL-65114-master' of https://github.com/snake/moodle

6 years agoMerge branch 'MDL-65038_master' of https://github.com/maksudr/moodle
Eloy Lafuente (stronk7) [Thu, 4 Apr 2019 18:30:40 +0000 (20:30 +0200)]
Merge branch 'MDL-65038_master' of https://github.com/maksudr/moodle

6 years agoMerge branch 'MDL-22077-master' of git://github.com/peterRd/moodle
Adrian Greeve [Thu, 4 Apr 2019 04:59:51 +0000 (12:59 +0800)]
Merge branch 'MDL-22077-master' of git://github.com/peterRd/moodle

6 years agoMDL-22077 mod_forum: external unit tests and vault updates
Peter [Wed, 3 Apr 2019 02:46:11 +0000 (10:46 +0800)]
MDL-22077 mod_forum: external unit tests and vault updates

* Unit tests for external functions
* Use the new dml_table to fetch a table's columns

6 years agoMerge branch 'MDL-65087' of git://github.com/stronk7/moodle
Jake Dallimore [Thu, 4 Apr 2019 03:37:07 +0000 (11:37 +0800)]
Merge branch 'MDL-65087' of git://github.com/stronk7/moodle

6 years agoMDL-22077 mod_forum: Grammatical and formatting updates
Peter [Sun, 31 Mar 2019 22:52:29 +0000 (06:52 +0800)]
MDL-22077 mod_forum: Grammatical and formatting updates

6 years agoMDL-22077 forum: Update post.php to respect private replies
Andrew Nicols [Wed, 20 Mar 2019 07:20:48 +0000 (15:20 +0800)]
MDL-22077 forum: Update post.php to respect private replies

6 years agoMDL-22077 forum: Add forum private replies
Andrew Nicols [Sat, 19 Mar 2016 01:25:35 +0000 (09:25 +0800)]
MDL-22077 forum: Add forum private replies

This patch adds new capabilities:
'mod/forum:postprivatereply'   - whether a user is able to post private replies; and
'mod/forum:readprivatereplies' - whether a user is able to read private replies.

Private replies are only visible to the intended recipient (the author of
the parent post), the author of the private reply, and those with the
ability to read private replies.

If a post is private then it cannot be replied to further.

6 years agoMDL-22077 forum: Deprecate unused helper trait
Andrew Nicols [Tue, 19 Mar 2019 02:53:50 +0000 (10:53 +0800)]
MDL-22077 forum: Deprecate unused helper trait

6 years agoMerge branch 'MDL-64506' of git://github.com/Chocolate-lightning/moodle
Jake Dallimore [Thu, 4 Apr 2019 03:16:42 +0000 (11:16 +0800)]
Merge branch 'MDL-64506' of git://github.com/Chocolate-lightning/moodle

6 years agoMDL-64506 mod_data: correct behat issue for saving items with tags
Mathew May [Thu, 4 Apr 2019 03:00:09 +0000 (11:00 +0800)]
MDL-64506 mod_data: correct behat issue for saving items with tags

6 years agoMerge branch 'MDL-64243' of https://github.com/Dagefoerde/moodle
Jake Dallimore [Thu, 4 Apr 2019 02:41:42 +0000 (10:41 +0800)]
Merge branch 'MDL-64243' of https://github.com/Dagefoerde/moodle

6 years agoMerge branch 'MDL-65204_oraclemssql_assert_equals' of git://github.com/stronk7/moodle
Jun Pataleta [Thu, 4 Apr 2019 01:08:06 +0000 (09:08 +0800)]
Merge branch 'MDL-65204_oraclemssql_assert_equals' of git://github.com/stronk7/moodle

6 years agoMDL-65087 behat: Select the proper search button via xpath
Eloy Lafuente (stronk7) [Wed, 3 Apr 2019 22:54:45 +0000 (00:54 +0200)]
MDL-65087 behat: Select the proper search button via xpath

By adding the "Search" aria label to a number of elements
any search of "Search" buttons, previously working in other
parts of the UI are not found anymore (because the hidden
ones are found before).

So, moving to click via xpath. Ideally we should be able to
find the target button in an easier, human readable way. But
there aren't many ids, names around to make it easier.

6 years agoMDL-65204 phpunit: more isEqual() strict string fixes
Eloy Lafuente (stronk7) [Wed, 3 Apr 2019 15:09:05 +0000 (17:09 +0200)]
MDL-65204 phpunit: more isEqual() strict string fixes

This is a followup of 85f47ba, where we were relaxing
the (new since phpunit 7.x) strict (===) isEqual()
comparison for strings. Copying the explanations for
easier understanding.

Link: https://github.com/sebastianbergmann/phpunit/issues/3185
Solution here is one of:
  a) Return to the previous situation, making the comparison
     softer. That can achieved by forcing different types, so
     float == string works.
  b) Changing APIs (both forms and database return strings) to
     perform some conversion to floats. That would make float
     comparison (with floats or strings) to work too.
The patch here follows the a) approach. Changing all the internals
for proper float handling sounds excesive when it has been working
perfectly since ever. So we went the easier route, just getting
rid of the new === comparisons when needed by changing expectation
types to float.

6 years agoMerge branch 'MDL-64506' of git://github.com/Chocolate-lightning/moodle
Sara Arjona [Wed, 3 Apr 2019 17:30:28 +0000 (19:30 +0200)]
Merge branch 'MDL-64506' of git://github.com/Chocolate-lightning/moodle

6 years agoMDL-64506 templates: BS2 pull-x -> BS4 float-x
Mathew May [Fri, 29 Mar 2019 04:16:36 +0000 (12:16 +0800)]
MDL-64506 templates: BS2 pull-x -> BS4 float-x

6 years agoMDL-64506 templates: replace spans where and col-x appears
Mathew May [Fri, 29 Mar 2019 04:10:09 +0000 (12:10 +0800)]
MDL-64506 templates: replace spans where and col-x appears

6 years agoMDL-64506 templates: BS2 m-x-x to BS4 mx-x
Mathew May [Fri, 29 Mar 2019 03:39:23 +0000 (11:39 +0800)]
MDL-64506 templates: BS2 m-x-x to BS4 mx-x

6 years agoMDL-64506 behat: Modify usertours behat.
Mathew May [Wed, 13 Mar 2019 01:54:10 +0000 (09:54 +0800)]
MDL-64506 behat: Modify usertours behat.

Original test relied on a 3rd theme to test against.
With only two themes in core now we need to make the test
theme/ suite specific.

6 years agoMDL-64506 Javascript: Remove docking JS.
Mathew May [Tue, 12 Mar 2019 03:09:06 +0000 (11:09 +0800)]
MDL-64506 Javascript: Remove docking JS.

Deprecate related lang strings & base functions now return false.

6 years agoMDL-64506 templates: Move BS2 labels to BS4 badges
Mathew May [Thu, 7 Mar 2019 02:42:32 +0000 (10:42 +0800)]
MDL-64506 templates: Move BS2 labels to BS4 badges

6 years agoMDL-64506 templates: Move BS2 btns' to BS4 btns'
Mathew May [Thu, 7 Mar 2019 01:54:01 +0000 (09:54 +0800)]
MDL-64506 templates: Move BS2 btns' to BS4 btns'

well bs2 class is now card in bs4

6 years agoMDL-64506 templates: Remove BS2 spans from elements.
Mathew May [Thu, 7 Mar 2019 01:40:47 +0000 (09:40 +0800)]
MDL-64506 templates: Remove BS2 spans from elements.

6 years agoMDL-64506 upgrade: Add upgrade steps to remove BS2 themes.
Mathew May [Wed, 6 Mar 2019 08:38:29 +0000 (16:38 +0800)]
MDL-64506 upgrade: Add upgrade steps to remove BS2 themes.

6 years agoMDL-64506 grades: Fix regression of MDL-58428
Mathew May [Wed, 6 Mar 2019 03:57:32 +0000 (11:57 +0800)]
MDL-64506 grades: Fix regression of MDL-58428

6 years agoMDL-64506 theme: Update BSB references and upgrade texts
Mathew May [Fri, 1 Mar 2019 06:14:47 +0000 (14:14 +0800)]
MDL-64506 theme: Update BSB references and upgrade texts

6 years agoMDL-64506 Grunt: Remove old Bootstrapbase tasks
Mathew May [Fri, 1 Mar 2019 06:02:04 +0000 (14:02 +0800)]
MDL-64506 Grunt: Remove old Bootstrapbase tasks

6 years agoMDL-64506 phpunit: Update unit tests to use classic
Mathew May [Thu, 28 Feb 2019 05:42:23 +0000 (13:42 +0800)]
MDL-64506 phpunit: Update unit tests to use classic

6 years agoMDL-64506 theme_bootstrapbase: Remove bootstrapbase from core
Mathew May [Thu, 28 Feb 2019 04:03:38 +0000 (12:03 +0800)]
MDL-64506 theme_bootstrapbase: Remove bootstrapbase from core

6 years agoMerge branch 'MDL-62307_master' of https://github.com/maksudr/moodle
Jun Pataleta [Wed, 3 Apr 2019 08:50:31 +0000 (16:50 +0800)]
Merge branch 'MDL-62307_master' of https://github.com/maksudr/moodle

6 years agoMerge branch 'MDL-65168' of git://github.com/stronk7/moodle
Jun Pataleta [Wed, 3 Apr 2019 08:42:41 +0000 (16:42 +0800)]
Merge branch 'MDL-65168' of git://github.com/stronk7/moodle

6 years agoMerge branch 'MDL-65112-master' of https://github.com/dmitriim/moodle
Jun Pataleta [Wed, 3 Apr 2019 08:19:35 +0000 (16:19 +0800)]
Merge branch 'MDL-65112-master' of https://github.com/dmitriim/moodle

6 years agoMerge branch 'session-debug' of https://github.com/tsmilan/moodle
Adrian Greeve [Wed, 3 Apr 2019 06:57:38 +0000 (14:57 +0800)]
Merge branch 'session-debug' of https://github.com/tsmilan/moodle

6 years agoMerge branch 'MDL-65087-master' of git://github.com/sarjona/moodle
Jake Dallimore [Wed, 3 Apr 2019 06:12:24 +0000 (14:12 +0800)]
Merge branch 'MDL-65087-master' of git://github.com/sarjona/moodle

6 years agoMerge branch 'MDL-65247-master' of git://github.com/junpataleta/moodle
Jake Dallimore [Wed, 3 Apr 2019 05:46:05 +0000 (13:46 +0800)]
Merge branch 'MDL-65247-master' of git://github.com/junpataleta/moodle

6 years agoMerge branch 'MDL-65130-master' of git://github.com/andrewnicols/moodle
Adrian Greeve [Wed, 3 Apr 2019 05:39:28 +0000 (13:39 +0800)]
Merge branch 'MDL-65130-master' of git://github.com/andrewnicols/moodle

6 years agoMDL-64449 core: Added Session lock debugging option
Trisha Milan [Tue, 2 Apr 2019 12:17:18 +0000 (23:17 +1100)]
MDL-64449 core: Added Session lock debugging option

6 years agoMerge branch 'MDL-65204-master' of git://github.com/junpataleta/moodle
Jun Pataleta [Wed, 3 Apr 2019 02:57:12 +0000 (10:57 +0800)]
Merge branch 'MDL-65204-master' of git://github.com/junpataleta/moodle

6 years agoMDL-65204 phpunit: Fix valid CiBoT errors and warnings
Jun Pataleta [Wed, 3 Apr 2019 02:44:24 +0000 (10:44 +0800)]
MDL-65204 phpunit: Fix valid CiBoT errors and warnings

6 years agoMDL-65204 phpunit: tweak constraint_object_is_equal_with_exceptions
Eloy Lafuente (stronk7) [Thu, 28 Mar 2019 00:37:28 +0000 (01:37 +0100)]
MDL-65204 phpunit: tweak constraint_object_is_equal_with_exceptions

In PHPUnit 7.x and above, IsEqual->value became private and, as far
as our with exceptions class inherits from it, we cannot access to
that anymore.

So, in order to avoid that, we are overriding the constructor, capturing
the original value for own use and forgetting.

A more formal, alternative, solution would be to make our
exceptional class to inherit from Constraint and make the
class a pure dispatcher to different constraints, with IsEqual being
just one of them.

But we followed the easiest path here. Not ideal, but efective.

6 years agoMDL-65204 phpunit: various fixes to assertions
Eloy Lafuente (stronk7) [Wed, 27 Mar 2019 12:05:35 +0000 (13:05 +0100)]
MDL-65204 phpunit: various fixes to assertions

 Namely:
   - 3rd param of assertEquals() cannot be null.
   - Some incorrect uses of assertNotEmpty().
   - Comparing 2 strings now uses strict (===) evaluation.
Link: https://github.com/sebastianbergmann/phpunit/issues/3185
     Solution here is one of:
       a) Return to the previous situation, making the comparison
          softer. That can achieved by forcing different types, so
          float == string works.
       b) Changing APIs (both forms and database return strings) to
          perform some conversion to floats. That would make float
          comparison (with floats or strings) to work too.
     The patch here follows the a) approach. Changing all the internals
     for proper float handling sounds excesive when it has been working
     perfectly since ever. So we went the easier route, just getting
     rid of the new === comparisons when needed by changing expectation
     types to float.

6 years agoMDL-65204 phpunit: make testcases match their expected signature
Eloy Lafuente (stronk7) [Sun, 24 Mar 2019 22:21:48 +0000 (23:21 +0100)]
MDL-65204 phpunit: make testcases match their expected signature

6 years agoMDL-65204 phpunit: update composer to use phpunit 7.5.x
Eloy Lafuente (stronk7) [Sun, 24 Mar 2019 22:11:35 +0000 (23:11 +0100)]
MDL-65204 phpunit: update composer to use phpunit 7.5.x

To generate a new composer.lock for a given Moodle branch:
- Remove composer.lock
- Remove vendor
- Remove composer caches:
      php composer.phar clearcache
- Using lower PHP version supported (7.1.x for Moodle 3.7), update:
      php composer.phar update

https://docs.moodle.org/dev/Composer#How_to_prepare_and_submit_composer_changes

6 years agoMDL-64506 theme: Move templates from lib/form
Mathew May [Wed, 6 Mar 2019 04:01:27 +0000 (12:01 +0800)]
MDL-64506 theme: Move templates from lib/form

6 years agoMDL-64506 theme: Create empty form templates
Mathew May [Wed, 6 Mar 2019 04:01:15 +0000 (12:01 +0800)]
MDL-64506 theme: Create empty form templates

6 years agoMDL-64506 theme_clean: Remove Clean from core
Mathew May [Thu, 28 Feb 2019 04:02:50 +0000 (12:02 +0800)]
MDL-64506 theme_clean: Remove Clean from core

6 years agoMDL-64506 theme_more: Remove More from core
Mathew May [Thu, 28 Feb 2019 04:01:40 +0000 (12:01 +0800)]
MDL-64506 theme_more: Remove More from core

6 years agoMerge branch 'MDL-65214' of git://github.com/stronk7/moodle
Jun Pataleta [Wed, 3 Apr 2019 01:48:00 +0000 (09:48 +0800)]
Merge branch 'MDL-65214' of git://github.com/stronk7/moodle

6 years agoMerge branch 'MDL-63569-email-header-master' of https://github.com/pauldamiani/moodle
Jake Dallimore [Wed, 3 Apr 2019 01:43:51 +0000 (09:43 +0800)]
Merge branch 'MDL-63569-email-header-master' of https://github.com/pauldamiani/moodle

6 years agoMDL-65247 core: Fix action_modal Behat tests
Jun Pataleta [Wed, 3 Apr 2019 00:42:01 +0000 (08:42 +0800)]
MDL-65247 core: Fix action_modal Behat tests

6 years agoMerge branch 'MDL-65213-master' of git://github.com/sarjona/moodle
Eloy Lafuente (stronk7) [Tue, 2 Apr 2019 22:22:54 +0000 (00:22 +0200)]
Merge branch 'MDL-65213-master' of git://github.com/sarjona/moodle

6 years agoMerge branch 'MDL-64994-master-pythonmlversion' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Tue, 2 Apr 2019 22:09:28 +0000 (00:09 +0200)]
Merge branch 'MDL-64994-master-pythonmlversion' of git://github.com/mudrd8mz/moodle

6 years agoMerge branch 'MDL-64693-master' of https://github.com/vmdef/moodle
Eloy Lafuente (stronk7) [Tue, 2 Apr 2019 21:46:24 +0000 (23:46 +0200)]
Merge branch 'MDL-64693-master' of https://github.com/vmdef/moodle

6 years agoMerge branch 'MDL-64779_master' of git://github.com/dmonllao/moodle
Eloy Lafuente (stronk7) [Tue, 2 Apr 2019 21:23:13 +0000 (23:23 +0200)]
Merge branch 'MDL-64779_master' of git://github.com/dmonllao/moodle

6 years agoMDL-65213 core_message: fix random failures when declining contacts
Sara Arjona [Tue, 2 Apr 2019 18:26:26 +0000 (20:26 +0200)]
MDL-65213 core_message: fix random failures when declining contacts

6 years agoMDL-64693 analytics: new course_competencies target
Víctor Déniz Falcón [Tue, 2 Apr 2019 16:46:39 +0000 (17:46 +0100)]
MDL-64693 analytics: new course_competencies target

Added new target to predict which students are at risk of not achieving the
competencies assigned to a course.

6 years agoon-demand release 3.7dev+
Eloy Lafuente (stronk7) [Tue, 2 Apr 2019 13:54:35 +0000 (15:54 +0200)]
on-demand release 3.7dev+

6 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Eloy Lafuente (stronk7) [Tue, 2 Apr 2019 13:54:29 +0000 (15:54 +0200)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

6 years agoMerge branch 'MDL-64331-master' of git://github.com/damyon/moodle
Jun Pataleta [Tue, 2 Apr 2019 02:58:15 +0000 (10:58 +0800)]
Merge branch 'MDL-64331-master' of git://github.com/damyon/moodle

6 years agoMerge branch 'MDL-65138-master' of git://github.com/lameze/moodle
Adrian Greeve [Tue, 2 Apr 2019 02:37:34 +0000 (10:37 +0800)]
Merge branch 'MDL-65138-master' of git://github.com/lameze/moodle

6 years agoMerge branch 'MDL-65144-master' of git://github.com/damyon/moodle
Adrian Greeve [Tue, 2 Apr 2019 02:15:18 +0000 (10:15 +0800)]
Merge branch 'MDL-65144-master' of git://github.com/damyon/moodle

6 years agoMDL-64331 modals: Be careful closing modals
Damyon Wiese [Thu, 28 Mar 2019 01:14:10 +0000 (09:14 +0800)]
MDL-64331 modals: Be careful closing modals

Don't close a modal when the user clicks outside of it and the modal contains a form.

6 years agoMDL-63569 email: New setting to prefix the subject of outgoing emails
Paul Damiani [Thu, 10 Jan 2019 06:18:00 +0000 (17:18 +1100)]
MDL-63569 email: New setting to prefix the subject of outgoing emails

6 years agoMerge branch 'MDL-61667-master-modelsinstall' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Mon, 1 Apr 2019 22:20:47 +0000 (00:20 +0200)]
Merge branch 'MDL-61667-master-modelsinstall' of git://github.com/mudrd8mz/moodle

6 years agoMerge branch 'MDL-64636-master' of https://github.com/vmdef/moodle
Eloy Lafuente (stronk7) [Mon, 1 Apr 2019 22:01:22 +0000 (00:01 +0200)]
Merge branch 'MDL-64636-master' of https://github.com/vmdef/moodle

6 years agoMDL-61667 analytics: Remove duplicated capability checks
David Monllaó [Mon, 1 Apr 2019 09:57:14 +0000 (11:57 +0200)]
MDL-61667 analytics: Remove duplicated capability checks

\core_analytics\model::create and \core_analytics\model::enable methods
are called from install/upgrade scripts. Therefore, they should not
include any capability check. Their capability checks are actually
redundant, as the user capabilities are already checked in the
entry-point scripts.

6 years agoMDL-61667 analytics: Fix coding style issues in the existing code
David Mudrák [Wed, 6 Mar 2019 11:20:20 +0000 (12:20 +0100)]
MDL-61667 analytics: Fix coding style issues in the existing code

These coding style issues were spotted while working on the issue. No
real changes here, just the coding style fixes attached to the patchset
for convenience.

6 years agoMDL-61667 analytics: Create missing models on install/upgrade
David Mudrák [Tue, 12 Mar 2019 08:45:26 +0000 (09:45 +0100)]
MDL-61667 analytics: Create missing models on install/upgrade

Similarly to how the scheduled tasks work, we now automatically check
and make sure that all the models specified in the component's
db/analytics.php file exist during the installation or upgrade of the
component.

6 years agoMDL-61667 analytics: Fix checking that a given model does not exist
David Mudrák [Tue, 12 Mar 2019 08:09:26 +0000 (09:09 +0100)]
MDL-61667 analytics: Fix checking that a given model does not exist

The original implementation did not work well for checking that the
given model does NOT exist. If no record was found in the
analytics_models table, the code execution continued and it reached the
moment when indicators were checked. If no indicators were provided, the
call ended up with error 'array_keys() expects parameter 1 to be array,
boolean given' (because indicators were set to false).

6 years agoMDL-61667 analytics: Deprecate the add_builtin_models() method
David Mudrák [Tue, 12 Mar 2019 07:50:47 +0000 (08:50 +0100)]
MDL-61667 analytics: Deprecate the add_builtin_models() method

The functionality of the \core_analytics\manager::add_builtin_models()
method is to be replaced with automatic update of models provided by the
core moodle component. There is no need to call this method explicitly
any more. Instead, adding new models will be done by updating the
lib/db/analytics.php file and bumping the core version.

6 years agoMDL-61667 analytics: Add method to actually create a declared model
David Mudrák [Mon, 11 Mar 2019 13:11:17 +0000 (14:11 +0100)]
MDL-61667 analytics: Add method to actually create a declared model

This is simply a wrapper around the model's create() method that works
with the model declaration syntax from the db/analytics.php file.

6 years agoMDL-61667 analytics: Add methods to read and validate model declarations
David Mudrák [Wed, 6 Mar 2019 19:24:06 +0000 (20:24 +0100)]
MDL-61667 analytics: Add methods to read and validate model declarations

Allow every component to declare prediction models it provides via the
db/analytics.php file.

6 years agoMDL-61667 analytics: Don't autoenable models with time splitting defined
David Mudrák [Mon, 25 Mar 2019 11:57:31 +0000 (12:57 +0100)]
MDL-61667 analytics: Don't autoenable models with time splitting defined

When the API had originally been designed, it was assumed that the
presence of the time splitting method implies no requirement for the
machine learning backend and that it is a sign of less performance
demanding models. So it seemed to be safe and useful to have such models
automatically enabled. That assumption did not prove to be valid. Most
of the time is spent calculating indicators that depend on log tables.

We realized it would be useful to be able to specify the default time
splitting method without the need to have such models auto-enabled.

6 years agoMDL-64779 tool_analytics: Export selector
David Monllaó [Tue, 26 Mar 2019 12:57:09 +0000 (13:57 +0100)]
MDL-64779 tool_analytics: Export selector

6 years agoMerge branch 'MDL-65050-master-fix' of git://github.com/lameze/moodle
Adrian Greeve [Mon, 1 Apr 2019 08:05:34 +0000 (16:05 +0800)]
Merge branch 'MDL-65050-master-fix' of git://github.com/lameze/moodle

6 years agoMDL-65050 core: add missing lib file include
Simey Lameze [Mon, 1 Apr 2019 07:28:30 +0000 (15:28 +0800)]
MDL-65050 core: add missing lib file include

6 years agoMDL-65144 output: Add img-fluid to logo
Damyon Wiese [Fri, 22 Mar 2019 01:06:56 +0000 (09:06 +0800)]
MDL-65144 output: Add img-fluid to logo

Extra wide logos do not scale to the screen size - this change adds the bootstrap class
img-fluid to logos on the loginpage, signupform and in the context header.

Thanks to Maksud R for working on this.

6 years agoMDL-65138 course: add a setting for course publishing
Simey Lameze [Tue, 26 Mar 2019 01:46:23 +0000 (09:46 +0800)]
MDL-65138 course: add a setting for course publishing

6 years agoMerge branch 'MDL-65089_master' of https://github.com/dvdcastro/moodle
Jake Dallimore [Mon, 1 Apr 2019 07:28:48 +0000 (15:28 +0800)]
Merge branch 'MDL-65089_master' of https://github.com/dvdcastro/moodle

6 years agoMerge branch 'MDL-64194-37_block_myoverview_incorrect_pagination' of https://github...
Jake Dallimore [Mon, 1 Apr 2019 06:36:01 +0000 (14:36 +0800)]
Merge branch 'MDL-64194-37_block_myoverview_incorrect_pagination' of https://github.com/tomdickman/moodle

6 years agoMerge branch 'MDL-64524-master' of git://github.com/damyon/moodle
Jun Pataleta [Mon, 1 Apr 2019 05:46:48 +0000 (13:46 +0800)]
Merge branch 'MDL-64524-master' of git://github.com/damyon/moodle

6 years agoMerge branch 'MDL-65050-master' of git://github.com/lameze/moodle
Adrian Greeve [Mon, 1 Apr 2019 05:32:38 +0000 (13:32 +0800)]
Merge branch 'MDL-65050-master' of git://github.com/lameze/moodle

6 years agoMDL-65050 core: delete orphaned files and functions
Simey Lameze [Thu, 28 Mar 2019 08:38:49 +0000 (16:38 +0800)]
MDL-65050 core: delete orphaned files and functions

6 years agoMDL-65050 core: add question_stats_cleanup_task scheduled task
Simey Lameze [Thu, 28 Mar 2019 08:32:21 +0000 (16:32 +0800)]
MDL-65050 core: add question_stats_cleanup_task scheduled task

This commit also removes orphaned question/engine/statisticslib.php

6 years agoMDL-65050 core: move function code to question_preview_cleanup_task
Simey Lameze [Thu, 28 Mar 2019 08:28:04 +0000 (16:28 +0800)]
MDL-65050 core: move function code to question_preview_cleanup_task

This commit also deletes the legacy question_preview_cron() function.

6 years agoMDL-65050 core: rename task to question_preview_cleanup_task
Simey Lameze [Thu, 28 Mar 2019 08:15:37 +0000 (16:15 +0800)]
MDL-65050 core: rename task to question_preview_cleanup_task

6 years agoMDL-64524 gradingform_guide: Marking guide comments
Damyon Wiese [Wed, 9 Jan 2019 02:28:02 +0000 (10:28 +0800)]
MDL-64524 gradingform_guide: Marking guide comments

When there are too many comments, scroll the list so they still fit in the dialogue.

6 years agoMDL-64524 assign: Styles editpdf comments
Damyon Wiese [Wed, 9 Jan 2019 02:19:55 +0000 (10:19 +0800)]
MDL-64524 assign: Styles editpdf comments

Properly display the list of comments, but limiting their size (use title to indicate the full comments).
When there are too many comments, show a scrollbar in the menu.