Commit graph

3979 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
0c9f92a317 Merge branch 'MDL-71956-master' of https://github.com/sarjona/moodle 2021-11-10 16:04:14 +01:00
Mathew May
072311e9f4 MDL-65799 forum: Final deprecations 2021-11-10 15:22:43 +08:00
Sara Arjona
03af737f21 MDL-71956 filter_h5p: Display the edit content button
The H5P filter will display now the "Edit content" button if the
user can edit the file.
2021-11-09 16:47:19 +01:00
Sara Arjona
eb4e36400e MDL-71956 core_h5p: Add more scenarios to can_edit_content
The method can_edit_content() now supports more scenarios where the
H5P content can be edited:
- Instead of supporting only mod_h5pactivity, now it supports any
mod or block when the user has the addinstance capability.
- If the component implements the can_edit_content method in the
h5p\canedit class and it returns true. For instance, the mod_forum
implements it and return true when filearea is post, if the user
can edit the post where the H5P is.
2021-11-09 16:47:18 +01:00
Andrew Nicols
69ec4376c7 Merge branch 'MDL-71439_master' of https://github.com/mdjnelson/moodle 2021-11-05 11:32:16 +08:00
Justin Merrill
bb8ad90938 MDL-72236 forum: index restructure on table forum_read 2021-11-03 12:45:41 -04:00
Neill Magill
653af355dc MDL-72767 forum: Stop duplicate digests being created
This change is to stop there being a possibility of 2 digests tasks
being created for a user on the day that MDL-72767 is applied.
2021-11-01 08:49:47 +00:00
Neill Magill
42171eb435 MDL-72767 forum: Ensure digests are sent
Before this change if a new post was made after the digest time but
before todays daily digest had been sent the run time on the digest
would be set to the next day resulting in no digest being sent to
the user.

By adding the server midnight to the custom data on the task we
ensure that in this case a new adhoc task is created for the next
day leaving the current one to get processed.

Server midnight is used so that if the digest time setting is
changed we would not get two tasks queued for the same day.
2021-11-01 08:49:46 +00:00
Neill Magill
7c8942046a MDL-72767 forum: Fix PHPDoc 2021-11-01 08:49:46 +00:00
Mark Nelson
2621d36782 MDL-71439 mod_forum: display user grade from web service 2021-10-27 12:19:31 +08:00
Andrew Nicols
349312143d MDL-72013 js: Fix jsdocs to meet stricter eslint 2021-10-21 13:28:00 +08:00
Ilya Tregubov
843066ecf4 Merge branch 'MDL-72091-rebase-3' of https://github.com/Chocolate-lightning/moodle 2021-10-11 14:46:54 +07:00
Mathew May
dba47e8641 MDL-72091 Navigation: Update navigation to match designs 2021-10-11 12:20:34 +08:00
abgreeve
24eac0b051 Merge branch 'MDL-72543-master' of git://github.com/lameze/moodle 2021-10-07 15:11:12 +08:00
Simey Lameze
9afd980b4e MDL-72543 block_timeline: change the display of event names 2021-10-07 14:05:34 +08:00
Peter
7a9e3db9dc MDL-52206 completion: Behat test
Co-authored-by: aanabit
2021-10-07 10:17:25 +08:00
Peter Dias
2c7893cf9f MDL-52206 core: Update new activity_custom_completion
Update the custom_completion classes to accept the new completion
criteria
2021-10-04 19:45:47 +08:00
Andrew Nicols
f4604fe5fb Merge branch 'MDL-72544' of git://github.com/paulholden/moodle 2021-10-01 10:14:51 +08:00
Ilya Tregubov
34a0ba3232 Merge branch 'MDL-71610-master' of git://github.com/bmbrands/moodle 2021-09-29 15:40:39 +02:00
Bas Brands
350797397e MDL-71610 core_behat: access site admin manage tags link 2021-09-29 09:25:36 +02:00
Bas Brands
16c726cde7 MDL-71610 core_behat: use new edit mode step in feature files 2021-09-29 09:25:36 +02:00
sam marshall
e332d1849d MDL-72643 core: Improve display_size
Allows display_size to use a fixed unit for easy comparison of
multiple results, and fixed decimal places for the same reason.

Improves behaviour by using consistent decimal places and a
consistent space before the unit (the previous one only has a space
before 'bytes', not before 'KB').

Of existing uses, all the ones that displayed a 'maxbytes' type
configuration setting (which are likely to have an 'exact' size
and would be better shown as 512 KB rather than 512.0 KB) have been
changed to use 0 decimal places, to preserve previous behaviour.
All the uses which were showing an actual file or memory size have
been left as default (1 decimal place).
2021-09-27 16:52:33 +01:00
Paul Holden
e8d7817f7f MDL-72544 output: set default core/toast message type to information.
Update existing code to set type to warning as appropriate.
2021-09-24 08:19:54 +01:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Eloy Lafuente (stronk7)
633c2fcc5d Merge branch 'MDL-69855-master' of git://github.com/junpataleta/moodle 2021-09-09 12:58:16 +02:00
Eloy Lafuente (stronk7)
3a4ad12034 Merge branch 'MDL-67610-master-2' of git://github.com/junpataleta/moodle 2021-09-07 19:25:15 +02:00
Jun Pataleta
58bd7256ec MDL-67610 mod_forum: Do not include private replies in unread count
Fetching the counts of unread posts should only include unread regular
posts or unread private reply posts directed to the user unless the user
has the capability to read private replies.
In order to retrieve the correct counts, we also need to loop through
each forum instance in the course to check the capability of the user to
read private replies in each forum.
2021-09-07 23:19:26 +08:00
Eloy Lafuente (stronk7)
49b057e4dc Merge branch 'MDL-72428-master-enfix' of git://github.com/mudrd8mz/moodle 2021-09-03 19:09:52 +02:00
David Mudrák
9f8349bdfb MDL-72428 lang: Use the fixed strings in the tests 2021-09-03 17:38:35 +02:00
Helen Foster
92cc461235 MDL-72428 lang: Import fixed English strings (en_fix) 2021-09-03 17:38:35 +02:00
Joseph Baxter
c66c299939 MDL-70046 message: handle call processor failure
* ensure message_send returns false if message not sent
* digests only clear queue on success
* notifications requeue failed messages
2021-08-31 10:36:54 +01:00
Eloy Lafuente (stronk7)
a0e23f7c48 MDL-71573 behat: Move to 4.0 course-index compatible steps 2021-08-26 17:45:04 +02:00
Sara Arjona
d2b5a689e1 MDL-68633 mod_forum: Fix behat error in classic 2021-08-26 08:11:18 +02:00
Sara Arjona
4f4b748a16 Merge branch 'MDL-69588-master-fix' of git://github.com/junpataleta/moodle 2021-08-26 07:23:34 +02:00
Sara Arjona
557d8fd475 Merge branch 'MDL-71029-master' of https://github.com/dcai/moodle 2021-08-26 07:12:20 +02:00
Andrew Nicols
3ab12ddbf5 Merge branch 'MDL-70176_master' of https://github.com/TomoTsuyuki/moodle 2021-08-26 12:08:56 +08:00
Jun Pataleta
b36bdd18d8 MDL-69588 core: Activity navigation fixes 2021-08-26 09:58:15 +08:00
Sara Arjona
f3ed47a47a Merge branch 'MDL-68633' of git://github.com/paulholden/moodle 2021-08-25 16:12:38 +02:00
Jun Pataleta
4e75e73cb5 Merge branch 'primary_secondary_nav' of https://github.com/Chocolate-lightning/moodle 2021-08-25 10:42:57 +08:00
Jun Pataleta
300d0bc03a MDL-69588 mod: Additional Behat step fixes 2021-08-25 10:35:33 +08:00
Adrian Greeve
f28535082c MDL-70196 behat: Add a new step for navigating with the navbar.
- Part of: MDL-69588
A lot of tests work on the basis that you can follow the last item
of the breadcrumb nav bar. This is not the case. This step will first
check to see if the page is already the one requested. If it is then
nothing further needs to happen, otherwise we follow the link in the
navbar.
2021-08-23 17:46:38 +08:00
Adrian Greeve
c3871a9174 MDL-70196 navigation: Update to pages to add a URL.
- Part of: MDL-69588
Some pages have added an item to the end of the  navbar without a
link for it. This adds the current page as a url to this navigation
node. Doing this brings it in line with all of the other pages
around Moodle and also helps with the new navigation changes in
theme boost.
2021-08-23 17:46:38 +08:00
Adrian Greeve
7d435fb5f2 MDL-70196 navigation: Update to feature files.
- Part of: MDL-69588
A lot of tests rely on the last element of the breadcrumb being
active. This updates feature files to not rely on this anymore.
2021-08-23 17:46:38 +08:00
Andrew Nicols
c79d58a50b MDL-71209 behat: Fix behat for new changes
Co-authored-by: Ilya Tregubov <ilya@moodle.com>
2021-08-20 16:49:06 +02:00
Tomo Tsuyuki
0646a40b20 MDL-70176 mod_forum: Grading respects separate groups filter 2021-08-20 13:27:50 +10:00
Eloy Lafuente (stronk7)
dd23f8d903 Merge branch 'MDL-72186' of git://github.com/paulholden/moodle 2021-08-19 09:10:17 +02:00
Jun Pataleta
6bd3db4fb5 MDL-69855 mod_forum: Deprecate postmailinfolink lang string
With the info text and reply link text being split, this lang string
is no longer being used and should be deprecated.
2021-08-16 17:42:18 +08:00
Jun Pataleta
6a82cbc6ab MDL-69855 mod_forum: Don't show reply link in email for private replies 2021-08-16 17:42:18 +08:00
Andrew Nicols
530322e2ce MDL-69918 core: Update uses of legacy form change checker 2021-08-10 23:54:01 +08:00
Paul Holden
0795695872 MDL-68633 mod_forum: confirmation for subscription change navigation. 2021-07-30 10:46:58 +01:00