4211 Commits

Author SHA1 Message Date
Tim Hunt
939218c2b6 MDL-46783 permissions: let some moodle/ caps be overriden in all mods
The capabilities changed ('contextlevel' => CONTEXT_COURSE changed to
'contextlevel' => CONTEXT_MODULE) are:

* moodle/site:accessallgroups
* moodle/site:viewfullnames
* moodle/site:trustcontent
* moodle/site:viewuseridentity

This list came from reviewing the _get_extra_capabilities functions in
all core activities. They were all somewhat inconsistent, but I think it
makes sense that these capabilities are consistently overridable in all
activities. E.g. moodle/site:accessallgroups affects conditional
availability even if there is no other user of groups, and
moodle/site:viewuseridentity and moodle/site:viewfullnames affect the
logs report, if nothing else.

As a result of this, several _get_extra_capabilities functions are no
longer needed, and all the rest have been simplified.
2018-12-05 16:44:25 +00:00
Eloy Lafuente (stronk7)
f47c8f3525 MDL-64300 upgrade: add 3.6.0 separation line to all upgrade scripts 2018-12-02 18:36:40 +01:00
Eloy Lafuente (stronk7)
085353b315 MDL-64282 versions: bump all versions and requires near release
version = 2018120300 release version
requires= 2018112800 current rc2 (week7roll1) version
2018-11-29 18:24:08 +01:00
David Monllao
9af8b0aef1 Merge branch 'MDL-63394-master' of git://github.com/jleyva/moodle 2018-11-19 19:42:06 +01:00
Simey Lameze
62b6e6f20d MDL-63468 mod_quiz: fix stats report visual style 2018-11-19 10:16:16 +08:00
Eloy Lafuente (stronk7)
6905c1c3fe MDL-64066 behat: more fixes to dialog names, old "add" steps 2018-11-17 12:10:37 +01:00
Juan Leyva
904c37c6c8 MDL-63394 mod_quiz: Do not fail overdue if there is a grace period 2018-11-16 16:56:40 +01:00
Andrew Nicols
705003beae MDL-63303 behat: Behat fixes 2018-11-15 16:26:16 +08:00
Andrew Nicols
5b2856864d Merge branch 'MDL-63564-master' of git://github.com/mihailges/moodle 2018-11-05 12:57:48 +08:00
Shamim Rezaie
6cd2de3ceb MDL-63564 mod_quiz: Added delete_quizaccess_data_for_users to polyfill
This issue is a part of the MDL-62560 Epic.
2018-11-02 14:04:25 +08:00
Shamim Rezaie
0db66dcf5d MDL-63564 mod_quiz: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-11-02 14:04:23 +08:00
Shamim Rezaie
92d26b3940 MDL-63564 mod_quiz: Added quizaccess_user_provider interface
This issue is a part of the MDL-62560 Epic.
2018-11-02 13:56:02 +08:00
Eloy Lafuente (stronk7)
bd5fdcfccd MDL-63422 general: review core loop / switch / case / continue
This commit reviews all continue uses in core happening within a
loop / switch / case hierarchy. This does not cover:

- Changes to libraries. Will be handled in another issue / commit.
- Uses out from loops, will be reviewed by other commit.

The policy followed has been:
- When possible, take rid of the continue.
- When clearly the intention was to jump to next element in loop
  change to continue 2
- When it was not clear, keep old behavior switching to break, no
  matter how weird the behavior may be.
2018-10-31 00:17:59 +01:00
Eloy Lafuente (stronk7)
4ea6f848fa NOBUG: Fixed file access permissions 2018-10-30 18:24:14 +01:00
Andrew Nicols
e538fc1549 Merge branch 'MDL-63626-master' of git://github.com/rezaies/moodle 2018-10-30 10:57:42 +08:00
Eloy Lafuente (stronk7)
f3d80b483b Merge branch 'MDL-63730-master-enfix' of git://github.com/mudrd8mz/moodle 2018-10-29 13:23:53 +01:00
Andrew Nicols
89689e64f4 Merge branch 'MDL-40695-master' of https://github.com/HuongNV13/moodle 2018-10-29 12:28:58 +08:00
David Mudrák
8743cade5b MDL-63730 quiz: Fix unit tests to use the new way of percents display
As agreed in MDL-63186, the English language pack has no space
separating the number and the percents. This patch removes the
regressions from the unit tests.
2018-10-26 14:26:12 +02:00
David Mudrák
f5d98e6173 MDL-63730 lang: Update Behat scenarios to use the new strings 2018-10-26 13:25:56 +02:00
Helen Foster
0c19b2c8fa MDL-63730 lang: Merge English strings from the en_fix language pack
Significant string changes:

* withselectedusers_help, core - removing mention of 'Add a common note'
  as the option no longer exists
* considereddigitalminor and digitalminor_desc, core - more
  child-friendly wording
* configmessagingallusers, core_admin - clearer explanation
* auth_dbtype, auth_db - fixed broken link
2018-10-26 12:48:40 +02:00
Damyon Wiese
cfd390ee94 MDL-63765 behat: Fix behat tests opening a menu
If javascript is disabled, we don't need to open the menus at all. If it is enabled
we should use the custom step where possible.

In some tests (user profile) we have to use link_or_button because
the element that opens the menu will be a link or a button in different themes.
2018-10-26 16:14:41 +08:00
Huong Nguyen
8b0a933d21 MDL-40695 Quiz: Move manual grading report display to renderer 2018-10-18 10:06:45 +07:00
Shamim Rezaie
44b30f9ced MDL-63626 mod_quiz: Fixed a bug when there was no attempt on the quiz 2018-10-12 01:03:39 +11:00
Tim Hunt
7a8782c4ae MDL-63194 quiz editing: subtle drag-drop bug if moving between sections 2018-10-08 17:37:11 +01:00
Eloy Lafuente (stronk7)
2f46cab80d MDL-62610 tests: fix Gherkin lint problem 2018-10-03 23:56:31 +02:00
Simey Lameze
484b179d06 MDL-62610 mod_quiz: fix behat failure 2018-10-01 09:53:34 +08:00
Simey Lameze
73aefa6bfc MDL-62610 mod_quiz: fix CiBoT issues 2018-10-01 08:27:28 +08:00
Shamim Rezaie
422d78648c MDL-63390 quiz_statistics: Make the summary row more distinguishable 2018-10-01 07:52:59 +08:00
Shamim Rezaie
24c28f3c9b MDL-63390 Quiz: Use lang rules to format quiz summark as a percentage
Part of MDL-62610
2018-10-01 07:52:50 +08:00
Shamim Rezaie
bef224c6e4 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
2018-10-01 07:52:42 +08:00
Shamim Rezaie
84140b9137 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
2018-10-01 07:52:31 +08:00
Tim Hunt
c5499edaef MDL-63185 mod_quiz: more fixes to new behat code
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
9b1fc262d8 MDL-63185 mod_quiz: make CiBoT happy again
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
bd92cfc6f9 MDL-63185 mod_quiz: add behat coverage for statistics report
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
df48d3cc71 MDL-63185 mod_quiz: replace user session handling to use set_user()
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
6e4fe9afe0 MDL-63185 mod_quiz: convert responses report behat to use new step
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
90ef250d52 MDL-63185 mod_quiz: create steps to handle diferent behaviours
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
3c4ff02e41 MDL-63185 mod_quiz: replace existing tests to use new step
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
5c0654d7ff MDL-63185 mod_quiz: change APIs to handle attempts on behat
Thanks to Tim Hunt for all the help.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
35aa9ade76 MDL-63185 mod_quiz: add custom behat step to create user attempts
Thanks to Tim Hunt for all the help.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie
b5fff70bdd MDL-63186 quiz_statistics: Highlight the summary row if is dubious
The summary row should be highlighted if any of the summarised rows are dubious.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie
666889f0f8 MDL-63186 quiz_statistics: Show each columns min,max in the summary row
The statistics table have been modified so that the summary row shows the minimum and maximum
values of each column for the set of questions that are being summarised.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie
6ee2b972c9 MDL-63186 quiz_statistics: Remove q number from the summary row
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Ryan Wyllie
29cc55079a MDL-63186 question: include random questions in statistics calculator
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Tim Schroeder
3a33d51497 MDL-50314 mod_quiz: removed hardcoded export columns
* The columns 'institution', 'department' and 'email' are no longer
  automatically included in all quiz result exports.
* These columns can still be used, but have to be configured under
  'showuseridentity'.
2018-09-07 14:18:25 +02:00
Eloy Lafuente (stronk7)
f6cafe495e Merge branch 'MDL-63249-master-enfix' of git://github.com/mudrd8mz/moodle 2018-09-04 22:34:51 +02:00
Helen Foster
24a29d720c MDL-63249 lang: Merge English strings from the en_fix language pack
Significant string changes:

* completionpass_help, gradetopassnotset in mod_quiz - grade to pass set
  in quiz settings not gradebook
* namecolumnmissing,core_cohort - fixing incorrect message about adding
  users to a cohort
2018-09-04 08:40:48 +02:00
Neill Magill
bbf1fde412 MDL-62944 activities: Activities should not require capability
Activities should not require the user manipulating them to have
calendar capabilities for their events to be added to the Moodle
calendar
2018-08-31 10:15:37 +01:00
Neill Magill
196aa50489 MDL-62944 activities: Test adding activities with no calendar capability 2018-08-31 10:15:36 +01:00
Víctor Déniz Falcón
02fda279ed MDL-57281 behat: deprecated step definition I navigate to node in
Definition step deprecated and affected tests modified.
2018-08-20 12:53:26 +01:00