1815 Commits

Author SHA1 Message Date
Shamim Rezaie
96ca995d61 Merge branch 'MDL-70083-master' of git://github.com/jleyva/moodle 2021-11-05 19:20:26 +11:00
Juan Leyva
2d5ee7bf1a MDL-70083 message: Adapt tests to new number of default providers
We now have enough default providers, so no need to show a warning in that case
2021-11-05 08:51:26 +01:00
Simey Lameze
1eed73fc4b MDL-72667 message: fix contrast issue in the drawer 2021-11-04 21:01:56 +08:00
Neill Magill
a8d9b17b4b MDL-63983 messaging: Improve the performance of non-contact searches
When the messagingallusers setting is disabled only contacts that are
on the same course as the user should be returned as results.

We can reduce the number of candidate users significantly by
pre-filtering them by being enrolled on the same courses as the user
performing the search.

Since we must also return the user themselves sometimes, even when they
are not enrolled on a course I used a UNION as the most efficient way of
retriving them, this meant that the order by had to reference returned
columns by number to be sufficiently cross-database compatiable.
2021-10-28 10:56:38 +01:00
Andrew Nicols
349312143d MDL-72013 js: Fix jsdocs to meet stricter eslint 2021-10-21 13:28:00 +08:00
Dani Palou
1e75faeade MDL-72586 message: Use count SQL in get_unread_notification_count 2021-10-15 16:32:28 +08:00
Andrew Nicols
8d5d300047 Merge branch 'MDL-72586-master' of git://github.com/dpalou/moodle 2021-10-15 10:23:15 +08:00
Andrew Nicols
2f0fb8f99b Merge branch 'MDL-72585-master' of git://github.com/dpalou/moodle 2021-10-15 09:53:19 +08:00
Ilya Tregubov
a4a59a4a74 Merge branch 'MDL-72455-master' of git://github.com/bmbrands/moodle 2021-10-05 23:18:51 +02:00
Dani Palou
2e61125a4a MDL-72586 message: New WebService get_unread_notification_count 2021-10-04 14:40:48 +02:00
Bas Brands
61bacfb935 MDL-72455 theme_boost: enable roundness for bootstrap components 2021-09-30 15:53:44 +02:00
Dani Palou
1d388e154f MDL-72585 message: Return notifications iconurl in get_messages WS 2021-09-30 08:00:27 +02:00
Dani Palou
244aade1d6 MDL-72587 message: Support getting both read and unread messages 2021-09-28 10:37:39 +02:00
Sara Arjona
f471a7d23a MDL-71473 message: Remove jabber output notification
Jabber is not widely used these days so message_jabber has been removed
from Moodle core.
2021-09-13 08:32:47 +02:00
Paul Holden
b95dd8c5db MDL-72071 message: preserve window scroll opening processor modal. 2021-08-31 11:57:30 +01:00
Andrew Nicols
8662be1d85 MDL-58579 core_message: Refine behat steps to use message drawer 2021-08-25 14:01:57 +08:00
Andrew Nicols
73754b8c39 Merge branch 'MDL-72143-master' of git://github.com/jleyva/moodle 2021-08-19 09:10:18 +02:00
Andrew Nicols
d5e04cab9a MDL-66266 core_message: Whitespace fix 2021-08-19 09:10:18 +02:00
Andrew Nicols
c0d2f724ef Merge branch 'MDL-66266-master' of git://github.com/cescobedo/moodle 2021-08-19 09:10:18 +02:00
Eloy Lafuente (stronk7)
39d9c8fdd4 Merge branch 'master-MDL-72210' of https://github.com/golenkovm/moodle 2021-08-19 09:10:17 +02:00
Mikhail Golenkov
227a831aa1 MDL-72210 phpunit: Remove excessive curl mock responses 2021-08-14 10:38:55 +10:00
David Mudrák
f9ee118e94 MDL-72325 user: Use the core_user::awaiting_action() in existing places
There were existing places each doing its own checks similar to the ones
covered by the newly added core_user::awaiting_action() method. This
patch replaces those custom checks with this new API call.
2021-08-12 13:05:38 +02:00
Juan Leyva
1f5ceda78e MDL-72143 airnotifier: Additional configuration check
Additional check for $CFG->noemailever
2021-07-28 09:38:18 +02:00
Andrew Nicols
776f4bd80c MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
cescobedo
4631be32eb MDL-66266 core_message: Final deprecation of 3.8 api functions
Final deprecation of:
- can_post_message
- get_individual_conversations_between_users
2021-07-22 06:31:05 +02:00
Eloy Lafuente (stronk7)
a0ac76505b Merge branch 'MDL-67338' of git://github.com/paulholden/moodle 2021-07-15 00:33:57 +02:00
Paul Holden
bf97f707cd MDL-67338 message: re-implement block page type patterns.
The `page_type_list` method for the message component was deprecated
in 5b0769db as part of MDL-54744. However it is still required when
trying to configure blocks on any messaging pages.
2021-07-14 19:34:13 +01:00
cescobedo
7a6d65eedb MDL-72139 core_message: Fix encoding UTF-8 in prevent unclosed tags 2021-07-14 07:41:00 +02:00
cescobedo
9aa5f7fe9b MDL-71919 core_message: Fix unclosed html tags in email notification 2021-07-08 23:30:35 +02:00
cescobedo
2f4647c684 MDL-71917 core_message: Use $USER in WS delete_message_for_all_users 2021-07-06 13:34:23 +08:00
Eloy Lafuente (stronk7)
5df31d920b Merge branch 'MDL-71293-master' of git://github.com/bmbrands/moodle 2021-06-23 23:43:08 +02:00
Bas Brands
c36972b2c0 MDL-71293 theme_boost: improve navbar for new navigation 2021-06-23 12:03:10 +02:00
Andrew Nicols
4f422785c6 MDL-71113 javascript: Improve basic JS Documentation 2021-06-18 09:38:05 +08:00
Andrew Nicols
92179b7057 MDL-71113 js: Fix all jsdoc warnings 2021-06-18 09:38:05 +08:00
Eloy Lafuente (stronk7)
9d6aa39985 MDL-71583 versions: Add all the missing full-stops to version/requires
It seems that the new phpcs3 checker is now controlling those
line comments that previously were ignored.

This commit just looks for all the cases and bulk-add
them when needed. The bash script (mac) used to add all them is:

while read -r line; do
    arr=(${line//:/ })
    if [[ -n ${arr[0]} ]] && [[ -n ${arr[1]} ]]; then
        echo "  file ${arr[0]}, line ${arr[1]}"
        sed -i "${arr[1]}s/\$/\./" ${arr[0]}
    fi
done < <(find . -name version.php | xargs ag --nomultiline '>(version|requires) *=.*//.*[^;\.]$')
2021-05-11 20:11:07 +02:00
Andrew Nicols
430caa5de1 Merge branch 'MDL-70897-master' of git://github.com/kabalin/moodle 2021-04-29 10:18:01 +08:00
Sara Arjona
6319dc8c2c Merge branch 'MDL-71403' of git://github.com/paulholden/moodle 2021-04-27 16:01:55 +02:00
Víctor Déniz
54191ad718 Merge branch 'MDL-65687' of git://github.com/paulholden/moodle 2021-04-27 00:51:43 +01:00
Paul Holden
ad7092d281 MDL-71403 message: Bootstrap controls for message preferences.
Replicates changes made to notification preferences in e41b3485.
The templates for each are similar enough than one can be used
from the other. Remove redundant styles for previous controls.
2021-04-25 16:43:06 +01:00
Paul Holden
702b119f57 MDL-57831 theme_boost: accessibility update for message preferences.
The preferences table did not meet accessibility guidelines regarding
colour contrast between hovered rows and the disabled switch
elements.

Ensure white background is used for all table cells, and replace the
highlighted columns used to differentiate processors with borders.
2021-04-21 21:46:29 +01:00
Marina Glancy
881b4258f7 MDL-70897 various: uasort callback can not return bool
Co-authored-by: Ruslan Kabalin <ruslan.kabalin@gmail.com>
2021-04-20 14:58:25 +01:00
Paul Holden
e41b3485ba MDL-57831 message: Boostrap controls for notification preferences.
Switch from previous custom controls that caused problems with
overflowing labels when using long language strings.
2021-04-19 23:48:36 +01:00
Sara Arjona
b9de0d1794 Merge branch 'MDL-65983-master' of git://github.com/jleyva/moodle 2021-04-13 12:19:25 +02:00
Juan Leyva
47a142704d MDL-65983 airnotifier: Configuration check report 2021-04-12 11:23:06 +02:00
Sara Arjona
fc59c4773e Merge branch 'MDL-65616' of git://github.com/paulholden/moodle 2021-04-08 17:45:41 +02:00
Paul Holden
6150e8c7f4 MDL-65687 message: increase confirmation dialog zindex.
Make sure that confirmation dialogs (such as block/unblock user,
delete conversation) are shown with prominence in the messaging
drawer.
2021-03-30 10:50:29 +01:00
sam marshall
5e72715e4f MDL-71099 Lib: Move new user_fields class from core to core_user
This class would belong more appropriately within the 'user' API
(core_user) instead of within the 'core' API, since it is
directly related to user data.

Since the class has only just been added to Moodle, now is a good
time to move it.
2021-03-25 13:47:23 +00:00
Eloy Lafuente (stronk7)
cfba0366db Merge branch 'MDL-70893-master' of git://github.com/marinaglancy/moodle 2021-03-18 00:23:26 +01:00
Jun Pataleta
ebf078458d Merge branch 'MDL-71036' of https://github.com/stronk7/moodle 2021-03-17 20:05:25 +08:00
Paul Holden
58501c742f MDL-65616 message: always notify user after sending contact request. 2021-03-15 18:56:36 +00:00