2696 Commits

Author SHA1 Message Date
Andrew Nicols
9fb596408d MDL-69364 enrol: Improve cohort test 2021-09-20 12:07:30 +08:00
Jun Pataleta
385438b463 Merge branch 'MDL-72589' of https://github.com/stronk7/moodle 2021-09-16 09:46:56 +08:00
Eloy Lafuente (stronk7)
433212a33e Merge branch 'MDL-72093-master' of git://github.com/mihailges/moodle 2021-09-16 00:32:47 +02:00
Eloy Lafuente (stronk7)
9f9fe79c26 MDL-72589 behat: Add @skip_chrome_zerosize to failing scenarios
All the scenarios failing with Chrome zero-size errors are
getting the @skip_chrome_zerosize to be able to keep them apart from
regular runs. See MDL-71108 for more information about
that error.

They will be run by another job, specifically using that tag to
keep them failing and under control.
2021-09-15 20:25:11 +02:00
Eloy Lafuente (stronk7)
2f578362eb Merge branch 'MDL-72192' of git://github.com/paulholden/moodle 2021-09-14 22:17:19 +02:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Eloy Lafuente (stronk7)
add353c2f5 Merge branch 'MDL-72025-master' of https://github.com/sammarshallou/moodle 2021-09-07 16:30:44 +02:00
Paul Holden
1dfb62cbab MDL-71726 course: respect user access when exporting participants.
We should ensure that users being exported are enrolled on the
course being exported from. In courses where the current user can't
access all groups we should ensure that users being exported belong
to the same groups as them.
2021-09-07 09:04:23 +02:00
sam marshall
5d62223bf0 MDL-72025 Upgrade: Out of memory when updating social profile fields 2021-09-02 13:42:58 +01:00
Paul Holden
492b19db2c MDL-72192 user: observe fullname capability in selector context. 2021-08-31 12:17:28 +01:00
Andrew Nicols
b69b7184e9 Merge branch 'MDL-72311-master' of git://github.com/aanabit/moodle 2021-08-26 11:54:08 +08:00
Andrew Nicols
84556387ca Merge branch 'MDL-72153' of git://github.com/paulholden/moodle 2021-08-26 11:31:32 +08:00
Jun Pataleta
4e75e73cb5 Merge branch 'primary_secondary_nav' of https://github.com/Chocolate-lightning/moodle 2021-08-25 10:42:57 +08:00
Peter Dias
dfefc86393 MDL-72032 core: Add roles to items
- Part of: MDL-69588
2021-08-23 17:47:22 +08:00
Peter Dias
25e178aa59 MDL-71148 core_navigation: Move unauthenticated user checks to the lib
- Part of: MDL-69588
Added conditional information in user_get_user_navigation_info for
when a user is unauthenticated.
2021-08-23 17:45:55 +08:00
Andrew Nicols
891d1bfad3 MDL-71055 behat: Update core settings to use generator
These changes have only been applied to settings which were already
using settings names and values, but which were still using the UI.
2021-08-23 12:23:03 +08:00
Amaia Anabitarte
d45058fd21 MDL-72311 core_course: Go to course content when creating a course 2021-08-17 19:16:37 +02:00
Paul Holden
b45970de49 MDL-72153 privacy: correctly export user description/files. 2021-08-13 12:41:08 +01:00
Andrew Nicols
f06ef721f7 Merge branch 'MDL-72325-master-tourspolicy' of git://github.com/mudrd8mz/moodle 2021-08-13 09:58:12 +08: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
Víctor Déniz
eda5b689fd Merge branch 'MDL-72000' of https://github.com/paulholden/moodle 2021-08-11 10:59:03 +01:00
Paul Holden
25be710d23 MDL-72000 user: support custom user fields in participants export. 2021-08-09 10:33:48 +01:00
Paul Holden
2b6d4c3077 MDL-70165 course: always import inplace editable module.
It's required on the course participants table for the roles/groups
columns, but isn't always loaded after adding the first participant.
2021-08-09 10:30:22 +01:00
Amaia Anabitarte
9108771ea3 MDL-71621 core_user: Parents could edit custom fields in child profile 2021-07-23 12:51:39 +02:00
Ilya Tregubov
c3a731d2d2 Merge branch 'MDL-26171' of git://github.com/paulholden/moodle 2021-07-06 12:46:23 +02:00
Paul Holden
526f5eccb9 MDL-71981 user: escape identity fields if writer supports HTML. 2021-07-06 09:27:15 +08:00
Paul Holden
4098af1c52 MDL-26171 user: implement method for retrieving fullname via SQL. 2021-06-29 16:35:35 +01:00
Andrew Nicols
92179b7057 MDL-71113 js: Fix all jsdoc warnings 2021-06-18 09:38:05 +08:00
Paul Holden
c260bad774 MDL-69908 user: include groups with exported course participants. 2021-06-14 09:31:30 +01:00
Andrew Nicols
f7222e6ee4 Merge branch 'MDL-71559-master' of https://github.com/sammarshallou/moodle 2021-06-10 10:57:26 +08:00
Matt Porritt
8281261b5a MDL-69194 user: make core_user_update_users return warnings
Add unit test coverage for the new warning scenarios.
2021-06-08 01:24:48 +00:00
Vitaly Potenko
6e7d77d11c MDL-69194 user: make core_user_update_users return warnings
The external function 'core_user_update_users()' always returned 'null' no matter
if a user or users were successfully updated or there were some failures.
So, there was no way for the caller to know which users were updated and which were not.
After the commit changes the function returns an 'external_warnings' instance. The function uses
a delegated transaction for each user to update within a loop. This enables the function to update
as many users as possible. This differs from the previous behavior of the function when it used
a delegate transaction outside of the loop where the users were updated. This resulted in a rollback
of the whole users updating in case any of the users had some invalid data. For each user within a loop
a 'try-catch' block is used to throw exceptions which are actually returned
as warnings by the function when they are caught.
2021-06-07 05:44:49 +00:00
sam marshall
007cde2eab MDL-71559 core_user: Fields support for PROFILE_VISIBLE_TEACHERS 2021-06-03 11:23:06 +01:00
Paul Holden
dc9e6cb8f7 MDL-71647 user: allow searching user selector by identity fields.
Fixes regression from d916cd77, which passed empty extra fields when
not including custom fields.
2021-05-17 16:01:07 +01: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
David Mudrák
ad30fde448 MDL-71425 lang: Fix reworded strings in tests 2021-05-04 17:45:18 +02:00
Helen Foster
49efd0b4b6 MDL-71425 lang: Import fixed English strings (en_fix) 2021-05-04 14:51:44 +02:00
Ilya Tregubov
cf1cf222e7 MDL-66431 core: Fix behat tests.
Move activity creation to data generators. Only fixing those
tests failing due to removing usemodchooser preference.
2021-05-01 16:22:03 +02:00
Ilya Tregubov
430746d3a2 MDL-66431 core: Remove activity chooser user preference.
This commit removes activity chooser user preference and
course preference page. Separate dropdowns to activity and
resource is also removed.
2021-05-01 16:21:59 +02:00
Adrian Greeve
d6040d3056 MDL-71051 profilefield_datetime: Fix to missing required param.
The define_after_data method was looking for a required_param
when it should have been an optional parameter. This was causing
error messages when creating a new datetime field.
2021-04-30 13:00:21 +08:00
Ruslan Kabalin
3bf770c801 MDL-71051 core_user: fix issues and address review issues 2021-04-28 11:47:26 +02:00
Marina Glancy
8974874018 MDL-71051 core_user: create user profile field form is now modal form 2021-04-28 11:47:22 +02:00
Marina Glancy
4a159a0947 MDL-71051 core_user: move user profile edit field form to classes 2021-04-28 11:47:22 +02:00
Marina Glancy
60b95cd46f MDL-71051 core_user: editing user profiles - modal form, template 2021-04-28 11:47:22 +02:00
Marina Glancy
880aff7bf9 MDL-71051 core_user: move edit profile category form to classes 2021-04-28 11:47:22 +02:00
Marina Glancy
ef3d6a3d70 MDL-71051 core_user: use user profile generator in all tests 2021-04-28 11:47:21 +02:00
Marina Glancy
9a5fd6fbc1 MDL-71051 core_user: fix mistakes in phpdocs, deprecated unused func 2021-04-28 11:47:11 +02:00
Marina Glancy
5682b9a585 MDL-71051 core_user: always use API when working with profile fields 2021-04-28 11:39:04 +02:00
Víctor Déniz
48a42f2289 Merge branch 'MDL-71003' of git://github.com/paulholden/moodle 2021-04-27 00:38:11 +01:00
Bas Brands
0fe5d5faa8 MDL-28452 core_user: add custom profilefield capability
Add a setting to show custom profilefields to self or others
with capability moodle/sit:viewuseridentity in the course context only
2021-04-21 11:22:31 +02:00