moodle.git
2 years agoMerge branch 'MDL-29895' of https://github.com/enovation/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 22:29:16 +0000 (00:29 +0200)]
Merge branch 'MDL-29895' of https://github.com/enovation/moodle

2 years agoMerge branch 'MDL-62395-master' of git://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 21:06:28 +0000 (23:06 +0200)]
Merge branch 'MDL-62395-master' of git://github.com/junpataleta/moodle

2 years agoMDL-51803 core: sortable list, fix for touch devices
Marina Glancy [Tue, 9 Oct 2018 12:26:32 +0000 (14:26 +0200)]
MDL-51803 core: sortable list, fix for touch devices

2 years agoMDL-51803 autoscroll: Fix incorrect reference to function
David Monllao [Tue, 9 Oct 2018 11:58:51 +0000 (13:58 +0200)]
MDL-51803 autoscroll: Fix incorrect reference to function

2 years agoMerge branch 'MDL-51803-master-mouse' of git://github.com/marinaglancy/moodle
David Monllao [Tue, 9 Oct 2018 11:53:29 +0000 (13:53 +0200)]
Merge branch 'MDL-51803-master-mouse' of git://github.com/marinaglancy/moodle

2 years agoMDL-51803 core: fix for touchstart
Marina Glancy [Tue, 9 Oct 2018 11:25:33 +0000 (13:25 +0200)]
MDL-51803 core: fix for touchstart

2 years agoMDL-51803 core: sortable list singleton
Marina Glancy [Mon, 8 Oct 2018 16:38:32 +0000 (18:38 +0200)]
MDL-51803 core: sortable list singleton

2 years agoMerge branch 'MDL-63427-master' of git://github.com/mihailges/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 11:21:11 +0000 (13:21 +0200)]
Merge branch 'MDL-63427-master' of git://github.com/mihailges/moodle

2 years agoMerge branch 'MDL-63401-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 09:35:29 +0000 (11:35 +0200)]
Merge branch 'MDL-63401-master' of git://github.com/andrewnicols/moodle

2 years agoMerge branch 'MDL-62738_master' of https://github.com/mfabriczy/moodle
David Monllao [Tue, 9 Oct 2018 07:23:57 +0000 (09:23 +0200)]
Merge branch 'MDL-62738_master' of https://github.com/mfabriczy/moodle

2 years agoMerge branch 'MDL-51969-master' of https://github.com/dmitriim/moodle
David Monllao [Tue, 9 Oct 2018 07:19:53 +0000 (09:19 +0200)]
Merge branch 'MDL-51969-master' of https://github.com/dmitriim/moodle

2 years agoMerge branch 'MDL-60710-master' of git://github.com/abias/moodle
David Monllao [Tue, 9 Oct 2018 07:00:42 +0000 (09:00 +0200)]
Merge branch 'MDL-60710-master' of git://github.com/abias/moodle

2 years agoMerge branch 'MDL-61378-master' of git://github.com/damyon/moodle
David Monllao [Tue, 9 Oct 2018 06:57:49 +0000 (08:57 +0200)]
Merge branch 'MDL-61378-master' of git://github.com/damyon/moodle

2 years agoMerge branch 'MDL-62491-master-fix' of git://github.com/abgreeve/moodle
Jun Pataleta [Tue, 9 Oct 2018 06:09:28 +0000 (14:09 +0800)]
Merge branch 'MDL-62491-master-fix' of git://github.com/abgreeve/moodle

2 years agoMerge branch 'MDL-63241-master-take2' of https://github.com/lucaboesch/moodle
Jun Pataleta [Tue, 9 Oct 2018 04:49:07 +0000 (12:49 +0800)]
Merge branch 'MDL-63241-master-take2' of https://github.com/lucaboesch/moodle

2 years agoMDL-61378 forum: Upgrade notes
Damyon Wiese [Mon, 8 Oct 2018 00:51:57 +0000 (08:51 +0800)]
MDL-61378 forum: Upgrade notes

Tell developers to correctly nest calls to forum_print_post

2 years agoMDL-61378 forum: Standardize HTML output for posts
Damyon Wiese [Mon, 10 Sep 2018 07:52:07 +0000 (15:52 +0800)]
MDL-61378 forum: Standardize HTML output for posts

Improve the format of the HTML representing a forum post.

1. Use <article> tag to mark it correctly.
2. Use <time> tag to include the real datetime information.
3. Use <address> tag to specify who and when the post came from.
4. Use heading level tags to mark the subject of each post.
5. Properly nest reply posts within their parent <article>
6. Use a header tab for each article to split the metadata from the content.
7. Use CSS to separate links, not text content.

Because posts are now nested properly, the heading for each one refers to it's own article
and we don't need to generate arbitrary heading level tags depending on how deep the post
is nested.

2 years agoMDL-62491 privacy: Fix running the download script.
Adrian Greeve [Tue, 9 Oct 2018 01:31:13 +0000 (09:31 +0800)]
MDL-62491 privacy: Fix running the download script.

Previously running the code to generate the download file
was very fagile. Now the code can be run anywhere without
problems occuring copying files.

2 years agoMerge branch 'MDL-63194' of https://github.com/timhunt/moodle
Jun Pataleta [Tue, 9 Oct 2018 00:56:02 +0000 (08:56 +0800)]
Merge branch 'MDL-63194' of https://github.com/timhunt/moodle

2 years agoMDL-63401 tool_dataprivacy: Change default for require end date
Andrew Nicols [Tue, 9 Oct 2018 00:31:57 +0000 (08:31 +0800)]
MDL-63401 tool_dataprivacy: Change default for require end date

We should preserve the existing behaviour.

2 years agoMDL-63401 tool_dataprivacy: Simplify where processing
Andrew Nicols [Tue, 9 Oct 2018 00:21:38 +0000 (08:21 +0800)]
MDL-63401 tool_dataprivacy: Simplify where processing

2 years agoMDL-63401 tool_dataprivacy: Move final cap check to endpoint
Andrew Nicols [Tue, 9 Oct 2018 00:21:25 +0000 (08:21 +0800)]
MDL-63401 tool_dataprivacy: Move final cap check to endpoint

2 years agoMDL-63427 block_myprofile: My profile block UI improvements
Mihail Geshoski [Tue, 9 Oct 2018 00:09:11 +0000 (08:09 +0800)]
MDL-63427 block_myprofile: My profile block UI improvements

2 years agoMDL-60710 course: Overhaul of Behat tests
Alexander Bias [Mon, 8 Oct 2018 20:49:36 +0000 (22:49 +0200)]
MDL-60710 course: Overhaul of Behat tests

2 years agoMDL-60710 course: Refine strings
Alexander Bias [Mon, 8 Oct 2018 20:49:13 +0000 (22:49 +0200)]
MDL-60710 course: Refine strings

2 years agoMDL-63194 quiz editing: subtle drag-drop bug if moving between sections
Tim Hunt [Fri, 21 Sep 2018 16:56:34 +0000 (17:56 +0100)]
MDL-63194 quiz editing: subtle drag-drop bug if moving between sections

2 years agoMDL-63401 tool_dataprivacy: Allow expiriration of users without end date
Andrew Nicols [Thu, 27 Sep 2018 04:05:39 +0000 (12:05 +0800)]
MDL-63401 tool_dataprivacy: Allow expiriration of users without end date

2 years agoMDL-63401 tool_dataprivacy: Rewrite expired deletion handling
Andrew Nicols [Thu, 20 Sep 2018 01:10:38 +0000 (09:10 +0800)]
MDL-63401 tool_dataprivacy: Rewrite expired deletion handling

This change rewrites the way in which expiry is calculated and addresses
a number of closely related issues:

Users can customise, and add blocks with data to, their dashboard.  When
a user had done so, the user could be flagged for deletion, but the
blocks in their Dashboard were subject to the default block retention
policy. In addition there is no way to override the retention policy for
user blocks.

This change modifies the structure of the expiry mechanism:
- to consider any subcontext of the user context to be a part of the user
  context during calculation. User child contexts are not the property
  of the system, and should not be treated separately.
- the way in which the context expiry mechanism worked was to select
  use a multiple different managers based solely on the context level.
  Because of the use of user blocks, this proved to be unreliable as
  blocks has been attributed purely to courses.
  This has been changed to a single manager which is aware of hierarchy
  and deletions as a whole.
- to prepare for upcoming work relating to more detailed expiry
  mechanisms, a new expiry_info class is introduced and used to
  merge the expiry of child contexts into a working in-memory view.

This changeset includes extensive unit tests.

2 years agoMDL-63401 core: Do not delete the user context
Andrew Nicols [Fri, 28 Sep 2018 06:39:17 +0000 (14:39 +0800)]
MDL-63401 core: Do not delete the user context

As long as we have a user record, we should not delete the context which
relates to it.

2 years agoMDL-63401 tool_dataprivacy: Move cap checks to endpoints from API
Andrew Nicols [Thu, 20 Sep 2018 03:03:35 +0000 (11:03 +0800)]
MDL-63401 tool_dataprivacy: Move cap checks to endpoints from API

2 years agoMDL-60425 blog: Remove empty line
David Monllao [Mon, 8 Oct 2018 10:52:04 +0000 (12:52 +0200)]
MDL-60425 blog: Remove empty line

2 years agoMerge branch 'MDL-60425-master' of git://github.com/jleyva/moodle
David Monllao [Mon, 8 Oct 2018 10:51:05 +0000 (12:51 +0200)]
Merge branch 'MDL-60425-master' of git://github.com/jleyva/moodle

2 years agoMDL-51803 core: integration review
Marina Glancy [Wed, 3 Oct 2018 12:07:48 +0000 (14:07 +0200)]
MDL-51803 core: integration review

2 years agoMDL-51803 core: integration review
Marina Glancy [Tue, 2 Oct 2018 09:23:18 +0000 (11:23 +0200)]
MDL-51803 core: integration review

2 years agoMDL-51803 core: reusable element for sorting lists
Marina Glancy [Mon, 10 Sep 2018 12:38:21 +0000 (14:38 +0200)]
MDL-51803 core: reusable element for sorting lists

2 years agoMDL-51803 core: autoscroll module from OU
Marina Glancy [Tue, 12 Jun 2018 04:11:23 +0000 (12:11 +0800)]
MDL-51803 core: autoscroll module from OU

2 years agoMerge branch 'MDL-63323-wrong-classes-attribute-into-activity_navigation' of https...
David Monllao [Mon, 8 Oct 2018 09:30:15 +0000 (11:30 +0200)]
Merge branch 'MDL-63323-wrong-classes-attribute-into-activity_navigation' of https://github.com/davidherney/moodle

2 years agoMDL-62491 navigation: Update to tree.js to allow callbacks.
Adrian Greeve [Tue, 2 Oct 2018 05:02:30 +0000 (13:02 +0800)]
MDL-62491 navigation: Update to tree.js to allow callbacks.

2 years agoMDL-62491 mod_assign: Fill in the rewrite plugin urls properly.
Adrian Greeve [Fri, 14 Sep 2018 02:22:40 +0000 (10:22 +0800)]
MDL-62491 mod_assign: Fill in the rewrite plugin urls properly.

2 years agoMDL-62491 core_privacy: Add html files to the user data export.
Adrian Greeve [Fri, 14 Sep 2018 02:22:14 +0000 (10:22 +0800)]
MDL-62491 core_privacy: Add html files to the user data export.

This adds html to the data export that allows for easier navigation
and reading of data.

2 years agoMDL-63241 calendar: Add missing table alias in SQL query.
Luca Bösch [Sat, 29 Sep 2018 08:37:31 +0000 (10:37 +0200)]
MDL-63241 calendar: Add missing table alias in SQL query.

2 years agoMDL-62738: editor_tinymce: Fix call stack size bug on Safari
Marcus Fabriczy [Fri, 28 Sep 2018 02:47:59 +0000 (12:17 +0930)]
MDL-62738: editor_tinymce: Fix call stack size bug on Safari

The call stack size was being exceeded via a recursive loop brought
by MDL-61189.

To fix, this item removes MDL-36803 and MDL-41328 as the iOS keyboard works
nicely on Safari with TinyMCE.

2 years agoMDL-51969 mod_lti: Fixed missing tool proxy GUID
Dmitrii Metelkin [Wed, 3 Oct 2018 00:13:02 +0000 (10:13 +1000)]
MDL-51969 mod_lti: Fixed missing tool proxy GUID

2 years agoweekly release 3.6dev
Jun Pataleta [Fri, 5 Oct 2018 02:29:01 +0000 (10:29 +0800)]
weekly release 3.6dev

2 years agoNOBUG: Fixed SVG browser compatibility
Jun Pataleta [Fri, 5 Oct 2018 02:29:00 +0000 (10:29 +0800)]
NOBUG: Fixed SVG browser compatibility

2 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Jun Pataleta [Fri, 5 Oct 2018 02:28:59 +0000 (10:28 +0800)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

2 years agoMDL-62395 tool_dataprivacy: Purpose name and description in one column
Jun Pataleta [Tue, 2 Oct 2018 06:43:38 +0000 (14:43 +0800)]
MDL-62395 tool_dataprivacy: Purpose name and description in one column

* Show the purpose's name and description under one column.

2 years agoMDL-60710 course: Refine setting name and description
Alexander Bias [Thu, 4 Oct 2018 06:32:30 +0000 (08:32 +0200)]
MDL-60710 course: Refine setting name and description

2 years agoMerge branch 'MDL-35788-master' of git://github.com/andrewnicols/moodle
Jun Pataleta [Thu, 4 Oct 2018 04:45:09 +0000 (12:45 +0800)]
Merge branch 'MDL-35788-master' of git://github.com/andrewnicols/moodle

2 years agoMDL-35788 mod_forum: Move post creation fetch
Andrew Nicols [Thu, 4 Oct 2018 00:56:15 +0000 (08:56 +0800)]
MDL-35788 mod_forum: Move post creation fetch

2 years agoMerge branch 'MDL-63442-master' of git://github.com/abias/moodle
Jun Pataleta [Thu, 4 Oct 2018 03:02:34 +0000 (11:02 +0800)]
Merge branch 'MDL-63442-master' of git://github.com/abias/moodle

2 years agoAutomatically generated installer lang files
AMOS bot [Thu, 4 Oct 2018 00:07:14 +0000 (00:07 +0000)]
Automatically generated installer lang files

2 years agoMerge branch 'MDL-63141-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Wed, 3 Oct 2018 22:20:02 +0000 (00:20 +0200)]
Merge branch 'MDL-63141-master' of git://github.com/rezaies/moodle

2 years agoMerge branch 'MDL-63142-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Wed, 3 Oct 2018 22:18:35 +0000 (00:18 +0200)]
Merge branch 'MDL-63142-master' of git://github.com/rezaies/moodle

2 years agoMerge branch 'MDL-63143-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Wed, 3 Oct 2018 22:02:21 +0000 (00:02 +0200)]
Merge branch 'MDL-63143-master' of git://github.com/rezaies/moodle

2 years agoMDL-62610 tests: fix Gherkin lint problem
Eloy Lafuente (stronk7) [Wed, 3 Oct 2018 21:56:31 +0000 (23:56 +0200)]
MDL-62610 tests: fix Gherkin lint problem

2 years agoMerge branch 'MDL-62610-master' of git://github.com/lameze/moodle
Eloy Lafuente (stronk7) [Wed, 3 Oct 2018 16:00:08 +0000 (18:00 +0200)]
Merge branch 'MDL-62610-master' of git://github.com/lameze/moodle

2 years agoMerge branch 'mdl63334-master' of https://github.com/tlock/moodle
David Monllao [Wed, 3 Oct 2018 15:19:18 +0000 (17:19 +0200)]
Merge branch 'mdl63334-master' of https://github.com/tlock/moodle

2 years agoMerge branch 'MDL-62558-master' of git://github.com/abgreeve/moodle
David Monllao [Wed, 3 Oct 2018 09:17:06 +0000 (11:17 +0200)]
Merge branch 'MDL-62558-master' of git://github.com/abgreeve/moodle

2 years agoMerge branch 'MDL-63426-master' of https://github.com/lucaboesch/moodle
Jun Pataleta [Wed, 3 Oct 2018 07:25:22 +0000 (15:25 +0800)]
Merge branch 'MDL-63426-master' of https://github.com/lucaboesch/moodle

2 years agoMerge branch 'MDL-63211_master' of git://github.com/markn86/moodle
Jun Pataleta [Wed, 3 Oct 2018 05:45:52 +0000 (13:45 +0800)]
Merge branch 'MDL-63211_master' of git://github.com/markn86/moodle

2 years agoMDL-63211 core_message: respect new setting 'messagingallusers'
Mark Nelson [Mon, 1 Oct 2018 03:55:43 +0000 (11:55 +0800)]
MDL-63211 core_message: respect new setting 'messagingallusers'

2 years agoMDL-63211 core_message: deprecated api::is_user_blocked
Mark Nelson [Fri, 28 Sep 2018 04:44:47 +0000 (12:44 +0800)]
MDL-63211 core_message: deprecated api::is_user_blocked

2 years agoMDL-63211 message: update behat
Damyon Wiese [Thu, 27 Sep 2018 08:28:37 +0000 (16:28 +0800)]
MDL-63211 message: update behat

Approve the contact requests in the behat test.

2 years agoMDL-63211 core: added notification when contact request is made
Mark Nelson [Mon, 10 Sep 2018 07:04:15 +0000 (15:04 +0800)]
MDL-63211 core: added notification when contact request is made

2 years agoMDL-63211 core_message: add temporary pending contact requests page
Mark Nelson [Fri, 7 Sep 2018 09:06:39 +0000 (17:06 +0800)]
MDL-63211 core_message: add temporary pending contact requests page

2 years agoMDL-63211 core: update core to use new APIs
Mark Nelson [Tue, 28 Aug 2018 09:41:15 +0000 (17:41 +0800)]
MDL-63211 core: update core to use new APIs

2 years agoMDL-63211 core: updated upgrade.txt files
Mark Nelson [Tue, 28 Aug 2018 08:51:45 +0000 (16:51 +0800)]
MDL-63211 core: updated upgrade.txt files

2 years agoMDL-63211 core_message: updated privacy provider
Mark Nelson [Wed, 29 Aug 2018 09:16:37 +0000 (17:16 +0800)]
MDL-63211 core_message: updated privacy provider

2 years agoMDL-63211 core_message: added new web services
Mark Nelson [Tue, 4 Sep 2018 06:53:19 +0000 (14:53 +0800)]
MDL-63211 core_message: added new web services

2 years agoMDL-63211 core_message: deprecated functions and added new API
Mark Nelson [Thu, 30 Aug 2018 04:08:29 +0000 (12:08 +0800)]
MDL-63211 core_message: deprecated functions and added new API

2 years agoMDL-63211 core: created new events for blocking/unblocking users
Mark Nelson [Tue, 28 Aug 2018 09:35:20 +0000 (17:35 +0800)]
MDL-63211 core: created new events for blocking/unblocking users

2 years agoMDL-62558 tool_dataprivacy: Create a summary page for users.
Adrian Greeve [Fri, 28 Sep 2018 07:13:31 +0000 (15:13 +0800)]
MDL-62558 tool_dataprivacy: Create a summary page for users.

2 years agoMerge branch 'MDL-35788-master' of git://github.com/andrewnicols/moodle
Jun Pataleta [Wed, 3 Oct 2018 02:13:40 +0000 (10:13 +0800)]
Merge branch 'MDL-35788-master' of git://github.com/andrewnicols/moodle

2 years agoMerge branch 'MDL-60685-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Tue, 2 Oct 2018 22:23:10 +0000 (00:23 +0200)]
Merge branch 'MDL-60685-master' of git://github.com/damyon/moodle

2 years agoMerge branch 'MDL-63435-master' of https://github.com/lucaboesch/moodle
Eloy Lafuente (stronk7) [Tue, 2 Oct 2018 21:47:52 +0000 (23:47 +0200)]
Merge branch 'MDL-63435-master' of https://github.com/lucaboesch/moodle

2 years agoMerge branch 'MDL-58000-master' of https://github.com/mackensen/moodle
Eloy Lafuente (stronk7) [Tue, 2 Oct 2018 21:39:27 +0000 (23:39 +0200)]
Merge branch 'MDL-58000-master' of https://github.com/mackensen/moodle

2 years agoMDL-60425 core_blog: New WS core_blog_get_entries
Juan Leyva [Tue, 16 Jan 2018 16:16:14 +0000 (17:16 +0100)]
MDL-60425 core_blog: New WS core_blog_get_entries

2 years agoMDL-60425 core_blog: Move access validation to API
Juan Leyva [Tue, 16 Jan 2018 16:16:07 +0000 (17:16 +0100)]
MDL-60425 core_blog: Move access validation to API

2 years agoMerge branch 'MDL-63493-master' of git://github.com/junpataleta/moodle
Andrew Nicols [Tue, 2 Oct 2018 03:40:20 +0000 (11:40 +0800)]
Merge branch 'MDL-63493-master' of git://github.com/junpataleta/moodle

2 years agoMDL-63493 core_question: Fix field parameters for the index definitions
Jun Pataleta [Tue, 2 Oct 2018 01:33:35 +0000 (09:33 +0800)]
MDL-63493 core_question: Fix field parameters for the index definitions

* The fields for the ID number-related indexes that were created for
  the question and question_categories tables in MDL-62708 should not
  be in comma-separated strings.

2 years agoMDL-63493 core_message: Fix field parameters for the index definitions
Jun Pataleta [Tue, 2 Oct 2018 03:31:02 +0000 (11:31 +0800)]
MDL-63493 core_message: Fix field parameters for the index definitions

* The fields for the ID number-related indexes that were created for
  the messages and message_user_actions tables in MDL-36941 should not
  be in comma-separated strings.

2 years agoMDL-60710 course: setting to show/hide duplicate coursecontact
David Knuplesch [Sat, 22 Sep 2018 20:54:20 +0000 (22:54 +0200)]
MDL-60710 course: setting to show/hide duplicate coursecontact

2 years agoMDL-62610 mod_quiz: fix behat failure
Simey Lameze [Mon, 1 Oct 2018 01:24:53 +0000 (09:24 +0800)]
MDL-62610 mod_quiz: fix behat failure

2 years agoMDL-62610 mod_quiz: fix CiBoT issues
Simey Lameze [Mon, 1 Oct 2018 00:27:28 +0000 (08:27 +0800)]
MDL-62610 mod_quiz: fix CiBoT issues

2 years agoMDL-35788 forum: Show post creation time not modified
Andrew Nicols [Thu, 12 Jul 2018 08:18:48 +0000 (16:18 +0800)]
MDL-35788 forum: Show post creation time not modified

2 years agoMDL-63390 quiz_statistics: Remove Min/Median/Maximum rows
Shamim Rezaie [Fri, 28 Sep 2018 06:49:35 +0000 (16:49 +1000)]
MDL-63390 quiz_statistics: Remove Min/Median/Maximum rows

Part of MDL-62610

2 years agoMDL-63390 quiz_statistics: Make the summary row more distinguishable
Shamim Rezaie [Fri, 28 Sep 2018 06:41:56 +0000 (16:41 +1000)]
MDL-63390 quiz_statistics: Make the summary row more distinguishable

2 years agoMDL-63390 Quiz: Use lang rules to format quiz summark as a percentage
Shamim Rezaie [Fri, 28 Sep 2018 06:29:28 +0000 (16:29 +1000)]
MDL-63390 Quiz: Use lang rules to format quiz summark as a percentage

Part of MDL-62610

2 years agoMDL-63390 quiz_statistics: Added formating functions
Shamim Rezaie [Fri, 28 Sep 2018 06:26:17 +0000 (16:26 +1000)]
MDL-63390 quiz_statistics: Added formating functions

Refactored quiz_statistics_table class to remove some duplications by defining and using
format_range(), format_percentage() and format_percentage_range() methods.

Part of MDL-62610

2 years agoMDL-63390 quiz_statistics, question: Handling variants as well
Shamim Rezaie [Fri, 28 Sep 2018 06:09:32 +0000 (16:09 +1000)]
MDL-63390 quiz_statistics, question: Handling variants as well

Variants should also be treated like random questions in the sense that
a summary row
should be displayed for them as well.
This commit deals with handling variants.
Also the name of the calculated_random_question_summary class has
changed to
calculated_question_summary to be more generic as the summary row is not
specific to random questions only.
Also removed the protected function too_many_subq_and_or_variant_rows
and the const SUBQ_AND_VARIANT_ROW_LIMIT as they were not being used
anymore.

Part of MDL-62610

2 years agoMDL_63390 question: Fixed get_min_max_of and get_min_max_of_sd
Shamim Rezaie [Fri, 28 Sep 2018 05:41:02 +0000 (15:41 +1000)]
MDL_63390 question: Fixed get_min_max_of and get_min_max_of_sd

Fixed calculated_random_question_summary:get_min_max_of and calculated_random_question_summary:get_min_max_of_sd
functions and added unit tests

Part of MDL-62610

2 years agoMDL-63185 mod_quiz: more fixes to new behat code
Tim Hunt [Wed, 26 Sep 2018 17:01:56 +0000 (18:01 +0100)]
MDL-63185 mod_quiz: more fixes to new behat code

Part of MDL-62610

2 years agoMDL-63185 mod_quiz: make CiBoT happy again
Simey Lameze [Thu, 27 Sep 2018 02:21:02 +0000 (10:21 +0800)]
MDL-63185 mod_quiz: make CiBoT happy again

Part of MDL-62610

2 years agoMDL-63185 mod_quiz: add behat coverage for statistics report
Simey Lameze [Wed, 26 Sep 2018 06:17:06 +0000 (14:17 +0800)]
MDL-63185 mod_quiz: add behat coverage for statistics report

Part of MDL-62610

2 years agoMDL-63185 mod_quiz: replace user session handling to use set_user()
Simey Lameze [Wed, 26 Sep 2018 01:08:17 +0000 (09:08 +0800)]
MDL-63185 mod_quiz: replace user session handling to use set_user()

Part of MDL-62610

2 years agoMDL-63185 core_test: add set_user function to behat
Simey Lameze [Wed, 26 Sep 2018 01:00:53 +0000 (09:00 +0800)]
MDL-63185 core_test: add set_user function to behat

Part of MDL-62610

2 years agoMDL-63185 mod_quiz: convert responses report behat to use new step
Simey Lameze [Thu, 27 Sep 2018 01:58:38 +0000 (09:58 +0800)]
MDL-63185 mod_quiz: convert responses report behat to use new step

Part of MDL-62610

2 years agoMDL-63185 mod_quiz: create steps to handle diferent behaviours
Simey Lameze [Thu, 27 Sep 2018 01:57:03 +0000 (09:57 +0800)]
MDL-63185 mod_quiz: create steps to handle diferent behaviours

Part of MDL-62610

2 years agoMDL-63185 core_question: add callback to some question types
Simey Lameze [Thu, 27 Sep 2018 01:43:09 +0000 (09:43 +0800)]
MDL-63185 core_question: add callback to some question types

Part of MDL-62610