3150 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
8cf7878e18 Merge branch 'MDL-70424-auth-avoid-changes' of https://github.com/brendanheywood/moodle 2021-03-04 00:27:53 +01:00
Paul Holden
1d66efeda5 MDL-65552 block_activity_results: correct Behat tests for idnumbers.
Teachers can see user idnumber fields only when they are configured
identity fields. Students cannot.
2021-03-03 23:15:07 +08:00
Paul Holden
a7e0ba1e71 MDL-65552 user: escape idnumber field on output.
This commit also corrects parameter definition of the field to
match core_user.
2021-03-03 23:15:07 +08:00
Peter Dias
36e529a889 MDL-59293 block_onlineusers: Update behat tests 2021-03-02 15:51:31 +00:00
Peter Dias
33d6017287 MDL-59293 block_onlineusers: Check whether current user can view online users
- Removed block from site admin.
- Blocked guest from viewuserlist cap
2021-03-02 15:51:31 +00:00
Brendan Heywood
300213ee2e MDL-70424 auth: Avoid random changes to $CFG->auth 2021-02-23 11:40:57 +11:00
Marina Glancy
440073ff20 MDL-64554 user: make private files editor modal/ajax form 2021-02-17 18:06:57 +01:00
Shamim Rezaie
3a9fa051c3 MDL-70173 dashboard: ARIA role presentation conflicted the empty alt
The markup <img role="presentation" alt="alt text"> is contradictory.

According to https://www.w3.org/TR/2017/WD-wai-aria-practices-1.1-20170628/examples/presentation/PresentationRoleExamples.html
 It is recommended that authors instead use empty alt text (alt="")
 where they use role="presentation".
2021-02-09 16:16:09 +11:00
Shamim Rezaie
b0b3a53521 MDL-70173 output: use an empty alt to hide user pic from screen readers
There is no need to use WAI-ARIA to hide images from screen readers.
See https://www.w3.org/WAI/tutorials/images/decorative/
2021-02-09 16:16:09 +11:00
Luca Bösch
0e9680d64a MDL-70705 block_blog_recent: support multilang blog entry titles 2021-02-03 15:14:46 +01:00
Eloy Lafuente (stronk7)
938c018963 Merge branch 'MDL-66979-master-7' of git://github.com/andrewnicols/moodle 2021-01-26 22:43:54 +01:00
Ilya Tregubov
7a77493ba5 MDL-70528 h5pactivity: Fix block can't be added to h5pactivity page. 2021-01-26 15:19:01 +02:00
Andrew Nicols
a61c4fbce3 MDL-66979 behat: Switch to generators
These steps were creating content manually in an unnecessary fashion. I
had to debug some issues with features in these areas so took the time
to update them to make use of data generators, which are significantly
faster.
2021-01-22 14:52:11 +08:00
Eloy Lafuente (stronk7)
77342b96fc MDL-69308 upgrade: remove all the < 3.6.0 upgrade steps
This just deletes all the upgrade steps previous to 3.6.0. Some
small adjustments, like tweaking globals can also be applied
when needed.

Also includes an upgrade step to prevent upgrading from any
version < 2018120300 (v3.6.0) as anti-cheating measure.

Note that in this case, there wasn't any case of upgradelib
functions being used, hence we haven't to deprecate/remove
anything in codebase. When there is such a need, that is done
in separate commits (one for each function) and documented here.

See MDL-65809 commits for an example removing/deprecating a
good number of functions.
2021-01-13 19:11:19 +01:00
Sara Arjona
cb9b0032be Merge branch 'MDL-70342-master' of git://github.com/abias/moodle 2020-12-15 15:28:39 +01:00
Tom Dickman
c00fc9707f MDL-67623 block overview: fix pagination regression
Fixed a regression caused by MDL-64194 resulting in Dashboard - Course
overview pagination not working from second page of courses onwards.

Course overview block should now do the following:
- Display no pagination controls when user has no courses
- Display no pagination controls when less than 12 courses to display
- Only display pagination controls up to the number of courses user is
enrolled in
- Work correctly when on a page greater than the second page.
2020-12-14 13:15:26 +11:00
Mihail Geshoski
d16faf211d MDL-57614 core_block: Create webservice that returns the addable blocks
Creates a webservice that returns the addable blocks in a given page.
The webservice expects the page context id, page type and page layout as
parameters and returns the block name and block title for each available
block.
2020-12-02 13:40:41 +08:00
Alexander Bias
3c0a064421 MDL-70342 block_timeline: Get rid of double quotes
This commit gets rid of double quotes around the activity name and course name
which have sneaked into block_timeline's view in MDL-65183.
2020-11-30 13:20:26 +01:00
Sara Arjona
01ac1cc74c Merge branch 'master-MDL-69773_v2' of https://github.com/golenkovm/moodle 2020-11-24 17:24:44 +01:00
Mikhail Golenkov
53663f2ea1 MDL-69773 block_section_links: Add an option to display section name 2020-11-24 11:33:27 +11:00
Andrew Nicols
0d580d2b3e MDL-67668 behat: Update tests for inplace editable field type 2020-11-23 09:01:19 +08:00
Eloy Lafuente (stronk7)
6ca32e21e5 Merge branch 'MDL-70148-master' of git://github.com/andrewnicols/moodle into master 2020-11-17 23:12:56 +01:00
Andrew Nicols
ba34d6e225 MDL-70148 behat: Update steps for keyboard 2020-11-17 15:14:43 +08:00
Luca Bösch
c2164fa6bb MDL-69526 block_myoverview: custom course fields natural sorting 2020-11-13 00:59:07 +01:00
Sara Arjona
c33f967019 Merge branch 'MDL-70063-master-1' of git://github.com/mihailges/moodle 2020-11-11 16:32:08 +01:00
Mihail Geshoski
ce76a3e89b MDL-70063 block_tag_youtube: Add behat tests 2020-11-11 21:24:44 +08:00
Mihail Geshoski
87b9e72f4e MDL-70063 block_tag_youtube: Fix category config in existing instances
Upgrade step that fixes the category configuration of existing
tag_youtube block instances.
2020-11-11 21:24:44 +08:00
Mihail Geshoski
ca5850e341 MDL-70063 block_tag_youtube: Update category config to use category ID
In YouTube Data API v3, the API call to fetch the videos related to a
certain category expects the category ID to be passed to the
videoCategoryId parameter, instead of the category name. Therefore, the
category config should store the category ID.
2020-11-11 21:10:12 +08:00
sam marshall
26231f17e6 MDL-70141 core_block: Web service set $PAGE url to avoid warnings 2020-11-06 17:37:11 +00:00
Jun Pataleta
16ff8bc54c Merge branch 'MDL-69390-master' of git://github.com/bmbrands/moodle 2020-10-28 22:44:15 +08:00
Bas Brands
451bd40752 MDL-69390 theme_boost: dropdown menu accessibility
- display a dot before the active element
- use the active colour for the hover colour
2020-10-28 14:01:17 +01:00
Bas Brands
56d3baa214 MDL-65792 mod_forum: show release time on timed posts 2020-10-27 08:58:26 +01:00
Sara Arjona
ca2db4be71 Merge branch 'MDL-67673' of https://github.com/stronk7/moodle into master 2020-10-21 17:38:05 +02:00
Eloy Lafuente (stronk7)
3a5641cb74 MDL-67673 phpunit: Remove deprecated assertEquals() params
The optional parameters of assertEquals() and assertNotEquals()
are deprecated in PHPUnit 8 (to be removed in PHPUnit 9):

- delta => use assertEqualsWithDelta()
- canonicalize => use assertEqualsCanonicalizing()
- ignoreCase => use assertEqualsIgnoringCase
- maxDepth => removed without replacement.

More info @ https://github.com/sebastianbergmann/phpunit/issues/3341

Initial search done with:

ag 'assert(Not)?Equals\(.*,.*,' --php

Then, running tests and fixing remaining cases.
2020-10-21 12:46:00 +02:00
Eloy Lafuente (stronk7)
40de097e65 MDL-67673 phpunit: Remove deprecated assertContains() uses on strings
Both assertContains() and assertNotContains() are deprecated in PHPUnit 8
for operations on strings. Also the optional case parameter is. All uses
must be changed to one of:

- assertStringContainsString()
- assertStringContainsStringIgnoringCase()
- assertStringNotContainsString()
- assertStringNotContainsStringIgnoringCase()

More info: https://github.com/sebastianbergmann/phpunit/issues/3422

Regexp to find all uses:

ag 'assert(Not)?Contains\('
2020-10-21 12:46:00 +02:00
Eloy Lafuente (stronk7)
f6711bb394 MDL-67673 phpunit: Fix the return type of template methods
All the setup/teardown/pre/post/conditions template methods
now are required to return void. This was warned with phpunit 7
and now is enforced.

At the same time, fix a few wrong function names,
provider data and param types, return statements...
2020-10-21 12:45:59 +02:00
Jun Pataleta
191de5fe26 MDL-69392 block_myoverview: Basic contrast check for the dashboard 2020-10-21 14:11:39 +08:00
Luca Bösch
71f05ec9cb MDL-65448 block_site_main_menu: Restyle moving. 2020-10-16 14:50:21 +02:00
Luca Bösch
d1c884a56a MDL-65448 block_social_activities: Restyle moving. 2020-10-16 14:50:21 +02:00
Sara Arjona
6bb0262ed8 Merge branch 'MDL-68098-master' of git://github.com/dpalou/moodle into master 2020-10-01 12:56:16 +02:00
Dani Palou
25bc7a3d6b MDL-68098 ws: Add unit tests to test mathjax in WS 2020-09-23 11:18:41 +02:00
Dani Palou
8c84eeeeac MDL-68098 ws: Fix WebServices broken by filters HTML 2020-09-22 09:43:03 +02:00
Bas Brands
411cf64738 MDL-69454 core_search: consistent block searches 2020-09-21 11:54:46 +02:00
Mihail Geshoski
03838167cb MDL-69630 format_social: Fix behat tests 2020-09-17 12:22:30 +08:00
Stephen Bourget
1a453e4d8d MDL-69630 format_social: Add ajax support 2020-09-10 19:04:34 -04:00
Mathew May
eacead6176 MDL-62609 lang: Final removal of deprecated strings 2020-09-07 08:06:02 +02:00
Andrew Nicols
6e116209db Merge branch 'MDL-69449' of https://github.com/paulholden/moodle 2020-08-20 09:23:39 +08:00
Andrew Nicols
d8e035e932 Merge branch 'MDL-68889-master' of git://github.com/bmbrands/moodle 2020-08-20 09:12:43 +08:00
Andrew Nicols
f24aae4cad Merge branch 'MDL-67735-master' of git://github.com/bmbrands/moodle 2020-08-19 08:28:49 +08:00
Eloy Lafuente (stronk7)
fbb0767536 MDL-69475 versions: bump all versions and requires in master
version = 2021052500 release version
requires= 2021052500 same than version

Why 20210525? (25th May 2021) ?

Because master is going to be Moodle 4.0, to be released
on November 2021. And, until then, we are going to have
a couple of "intermediate" releases:

- Moodle 3.10 to be released 9th November 2020. (2020110900)

  This version will be using versions from today to 2020110900
  (once it's released the YYYYMMDD part stops advancing).

- Moodle 3.11 to be released 10th May 2021. (2021051000)

  This version will be using versions from 3.10 release to 2021051000
  (once it's released the YYYYMMDD part stops advancing).

That means that all versions from today to 2021051000 are going
to be used by those 2 "intermediate" releases (3.10 and 3.11).

And we cannot use them in master, because it's forbidden to have
any overlapping of versions between branches (or different upgrade
paths will fail).

So, get that 2021051000, let's add it a couple of weeks to cover
the on-sync period (or a 2 weeks delay max!) and, the first version
that master can "own" in exclusive (without any overlap) is, exactly,
25th May 2021, hence our 20210525.
2020-08-18 00:47:15 +02:00