Ryan Wyllie
dd69ecb630
MDL-61363 question: unit tests for course context tagging
2018-03-07 10:31:47 +08:00
Ryan Wyllie
68beb75851
MDL-61363 question: update tags on question context change
2018-03-07 10:31:47 +08:00
Ryan Wyllie
081eb156c5
MDL-61363 question: add course context tagging
2018-03-07 10:31:47 +08:00
Ryan Wyllie
49374833fc
MDL-61363 tag: unit tests for change_instances_context
2018-03-07 10:31:47 +08:00
Ryan Wyllie
f7c1c97cac
MDL-61363 tag: unit tests for delete functions
2018-03-07 10:31:47 +08:00
Ryan Wyllie
4823de0269
MDL-61363 tag: unit tests for tagging in different context
2018-03-07 10:31:47 +08:00
Ryan Wyllie
4c3f4d2c2a
MDL-61363 tag: unit tests for get_items_tags function
2018-03-07 10:31:47 +08:00
Ryan Wyllie
5436b0ed02
MDL-61363 tag: allow tagging in different context to item
2018-03-07 10:31:46 +08:00
Andrew Nicols
988fb76589
Merge branch 'MDL-61404-master' of git://github.com/Kathrin84/moodle
2018-03-07 10:31:23 +08:00
Ryan Wyllie
8376557c4c
MDL-61363 tag: add change_instances_context function
2018-03-07 10:27:42 +08:00
Ryan Wyllie
694710d0f2
MDL-61363 tag: add get_items_tags function
2018-03-07 10:27:42 +08:00
Ryan Wyllie
064f6b5a81
MDL-61363 tag: add additional tag instance delete functions
2018-03-07 10:27:42 +08:00
Andrew Nicols
976ba87888
Merge branch 'MDL-61497-master' of https://github.com/lucaboesch/moodle
2018-03-07 09:58:29 +08:00
Andrew Nicols
79e4395888
MDL-38829 core: Rewrite xmlize unit tests
...
These changes adjust the unit tests to compare known values rather than
calculating them on the fly.
The unit test against a 'bad' source has been modified to simply check
for the relevant exception as PHP prevents any output on exceptions
anyway.
2018-03-07 09:40:11 +08:00
Jake Dallimore
98aaa343f1
Merge branch 'MDL-60991' of https://github.com/mkassaei/moodle
2018-03-07 09:29:54 +08:00
Andrew Nicols
475d4345f9
Merge branch 'MDL-61380-master' of git://github.com/rezaies/moodle
2018-03-07 09:00:15 +08:00
AMOS bot
7e9468ed20
Automatically generated installer lang files
2018-03-07 00:06:13 +00:00
Eloy Lafuente (stronk7)
647db53d14
Merge branch 'MDL-61503-master' of git://github.com/rezaies/moodle
2018-03-07 00:55:29 +01:00
Eloy Lafuente (stronk7)
e975671ca3
Merge branch 'MDL-61312-master' of git://github.com/jleyva/moodle
2018-03-07 00:47:44 +01:00
Eloy Lafuente (stronk7)
e28b586b9c
Merge branch 'MDL-61557-master' of git://github.com/rezaies/moodle
2018-03-07 00:19:50 +01:00
Eloy Lafuente (stronk7)
e35205bfec
Merge branch 'MDL-61556-master' of git://github.com/rezaies/moodle
2018-03-07 00:13:01 +01:00
Shamim Rezaie
81053f8cbe
MDL-61380 Quiz: Behat test for tag filter in the random question form
2018-03-07 07:34:11 +11:00
Shamim Rezaie
1b63ff10f9
MDL-61380 behat: Added autocomplete_suggestions name selector
2018-03-07 06:52:01 +11:00
Shamim Rezaie
f3f21c995c
MDL-61380 Quiz: Re-attempting the same "random" question by tag
...
Some question behaviours allow the same question to be re-attempted several times during a quiz attempt.
This commit takes care of the case where a "random" question is re-attempted during a quiz attempt.
2018-03-07 05:43:44 +11:00
Shamim Rezaie
2a1c9daccd
MDL-61380 Quiz: build attempt from "random" questions by tag
2018-03-07 05:43:38 +11:00
Shamim Rezaie
2adefc21ac
MDL-61380 Questions: Support selecting "random" by tag in question bank
2018-03-07 05:33:11 +11:00
Shamim Rezaie
82c67ac7f0
MDL-61380 Quiz: Fix url generation in notenoughrandomquestions exception
2018-03-07 05:33:11 +11:00
Shamim Rezaie
6650c66b59
MDL-61380 Questions: Editing configuration of existing random questions
...
Editing "random" questions follows a different procedure than adding them.
This commit takes care of editing a "random" question's configuration.
This commit also introduces mod_quiz\form\randomquestion_form, so mod_quiz
can edit random questions without having to use the form that is inside qtype_random.
2018-03-07 05:32:40 +11:00
Shamim Rezaie
4f964a1ca0
MDL-61380 Quiz,Questions: Adding "random" question by tag
2018-03-07 00:30:32 +11:00
Kilian
533a7edeae
MDL-38829 core: Unit test for xmlize using two sample xml files.
...
The file sample_questions.xml from moodle-stack is properly formed.
The file sample_questions_wrong.xml has mismatching tags.
Comparison is performed with recursive array comparison.
Error messages and returned data structures are compared.
Call with: phpunit lib/tests/xmlize_test.php
2018-03-06 15:36:14 +08:00
Kilian
7825ffb1d5
MDL-38829 core: fix for xmlize is unable to import xml files>10MB
...
Since version 2.7.3 the libxml library (https://bugs.php.net/bug.php?id=49660 )
limits parsing in memory files to 10MB. Unfortunately the libxml option
LIBXML_PARSEHUGE to release the 10MB limit is not exposed to php. Through
using the sax parser which is typically used to parse directly from files but
instead chunking the string in memory xml files larger than 10MB can again
be parsed. I copied the exact behaviour of the previous routine
by Hans Anderson (http://www.hansanderson.com/contact/ ) so compatibility
should be maintained.
2018-03-06 15:36:08 +08:00
Kilian
e4d61d8321
MDL-38829 core: Remove xmlize from thirdpartylibs
2018-03-06 15:35:46 +08:00
Eloy Lafuente (stronk7)
6a5d9ce4b9
Merge branch 'MDL-36157-master' of https://github.com/lucaboesch/moodle
2018-03-06 02:47:33 +01:00
Luca Bösch
345a010ea4
MDL-36157 block_rss_client: Don't double escape titles.
2018-03-06 00:15:38 +01:00
Eloy Lafuente (stronk7)
9655ef534d
Merge branch 'MDL-61211-master' of git://github.com/mihailges/moodle
2018-03-05 23:30:19 +01:00
Eloy Lafuente (stronk7)
6d3f2f9036
Merge branch 'MDL-55153-master' of git://github.com/sarjona/moodle
2018-03-05 23:25:23 +01:00
Eloy Lafuente (stronk7)
56a7177741
Merge branch 'MDL-61549-master' of git://github.com/Dagefoerde/moodle
2018-03-05 23:22:47 +01:00
Shamim Rezaie
c1d31e42ba
MDL-61526 Questions: phpunit test to test restore from 3.4 and 3.5
2018-03-06 01:43:32 +11:00
Shamim Rezaie
e9897ee6ef
MDL-61526 Questions: Add 2 backup fixtures from 3.4 and 3.5
2018-03-06 01:41:45 +11:00
Shamim Rezaie
0f80f793df
MDL-61526 Questions: Fix creation of multiple TOP question categories
...
Backup files that are made from Moodle 3.5 already contain TOP categories.
There is no need to create an additional TOP category for them.
2018-03-05 15:44:29 +11:00
Shamim Rezaie
8ece85602a
MDL-61556 Questions: Add behat test
2018-03-05 14:17:52 +11:00
Shamim Rezaie
c618e93e66
MDL-61557 Questions: Add behat test
2018-03-05 14:16:13 +11:00
Shamim Rezaie
18d6ff7880
MDL-61557 Questions: Fixed moving question categories to top
2018-03-05 13:40:02 +11:00
Shamim Rezaie
536d4d5729
MDL-61557 Lib: Add get_top_level_parent_id function
2018-03-05 13:34:08 +11:00
Jonathan Champ
9651175f70
MDL-61584 auth_ldap: use get_cache_flag()
...
get_cache_flags() is only useful when you want multiple responses or
you don't know the name/key for the value pair. We know the name/key
here is the session ID, so use get_cache_flag() instead and gain the
performance benefit.
2018-03-03 15:50:58 -05:00
Shamim Rezaie
ee1052bd18
MDL-61556 Questions: Fixed moving question categories between contexts
2018-03-03 16:31:59 +11:00
Andrew Nicols
03d174d733
MDL-61268 core: Fix empty string DB cehck
...
(amended by stronk7 to use the helper better)
2018-03-02 16:31:11 +01:00
Kathrin Osswald
65992c2d25
MDL-61404 blocks: Removed unused strings.
2018-03-02 07:48:49 +01:00
Shamim Rezaie
2d7b0534d3
MDL-61503 Questions: Fix sql query to get questions by tags
2018-03-02 15:40:44 +11:00
Andrew Nicols
8b4510c4cc
Merge branch 'wip-MDL-61268-master' of git://github.com/abgreeve/moodle
2018-03-02 09:57:30 +08:00