2885 Commits

Author SHA1 Message Date
Shamim Rezaie
a70a2b25de Merge branch 'MDL-73612-master-2' of https://github.com/bmbrands/moodle 2022-02-01 14:33:34 +11:00
Bas Brands
a74c715627 MDL-73612 gradereport_grader: drawer layout issues 2022-01-31 10:09:33 +01:00
Eloy Lafuente (stronk7)
100bc51f1d MDL-73485 phpunit: externallib, generator and filter tescase names
All externallib_test, generator_test and filter_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to tests under testing/tests:

1) The core_testing component doesn't exist.
2) But testing/tests are allowed because there is a suite pointing to it (phpunit.xml).
3) So, the only possible namespace for them is "core".
4) And to avoid problems with other core testcases (under lib/tests)
   they have been renamed to have testing_xxxx as prefix.

Finally, also modified calendar/tests/events/events_test.php because it uses
some renamed (core_calendar_externallib_testcase => \core_calendar\externallib_test)
classes.
2022-01-21 19:48:23 +01:00
Sara Arjona
8969abd82a MDL-73581 grade: Display success message on the same page
The "Grades were set for X items "message will be displayed on the
same screen, to safe one click to users and make it more consistent
with other similar actions in Moodle.
2022-01-18 15:12:55 +01:00
Eloy Lafuente (stronk7)
0c53a3dec8 MDL-73476 phpunit: events, external and search tescase names
All events_test, external_test and search_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to lib/external/tests/external_test.php:
- external is not a valid component
- hence, its only valid namespace is "core"
- also, it's testing lib/external/externallib.php
- hence, the file (and class) have been renamed to external_externallib_test.php
  (to avoid conflicts with other external_test that may exist in core)
2022-01-14 16:18:39 +01:00
Víctor Déniz
ea3568ff6d Merge branch 'MDL-73572-master' of git://github.com/jleyva/moodle 2022-01-13 23:40:51 +00:00
Juan Leyva
7cb78905a0 MDL-73572 grade: Fix return type for gradeformatted
Regression caused MDL-70874
2022-01-13 12:49:44 +01:00
Paul Holden
6d18f136ae MDL-72772 gradereport_overview: account for users with parent roles. 2022-01-12 14:18:52 +01:00
Paul Holden
1964d68f85 MDL-72772 gradereport_overview: access checks for viewing grades. 2022-01-12 13:43:35 +08:00
Jun Pataleta
c0ec69a3aa Merge branch 'MDL-73352' of https://github.com/stronk7/moodle 2022-01-04 21:25:53 +08:00
Adrian Greeve
0a04ebde11 MDL-72930 navigation: Remove duplicated navigation boxes.
Some pages have settings that really aren't required anymore.
These have been removed and a function has been aded so that other
developers can turn off the navigation overflow if they want.
2022-01-04 15:58:52 +08:00
Eloy Lafuente (stronk7)
511801cb46 MDL-73352 phpunit: lib_test and locallib_test testcase names
All lib_test and locallib_test classes:

- Namespaced with component (and API whenever makes sense).
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed or add new uses.
- All them passing individually.
- Complete runs passing too.

Special mention to tests under login/tests:

1) The core_login component doesn't exist.
2) But login/tests are allowed because there is a suite pointing to it (phpunit.xml).
3) So, the only possible namespace for them is "core".
4) And to avoid problems with other core testcases (under lib/tests)
   they have been renamed to have login_xxxx as prefix.
2021-12-30 16:21:42 +01:00
Sara Arjona
65b10e3dc7 MDL-72911 behat: Unrelated, remove the @skip_interim tag
This commit is UNRELATED to the MDL-72911, but we need the
@skip_interim tag removed to one scenario that was causing lots
of noise and failures @ CI infrastructure. This tag can now be
removed because these failures were fixed a days ago.

So we are using MDL-72911 (this extra commit) to remove that tag
(sorry for the noise).
2021-12-29 11:13:10 +01:00
Jun Pataleta
80c17cd2a0 Merge branch 'MDL-72701-master' of https://github.com/andrewnicols/moodle 2021-12-23 12:10:46 +08:00
Andrew Nicols
3a70983d53 MDL-72701 unit tests: Generate default coverage 2021-12-21 09:24:00 +08:00
Eloy Lafuente (stronk7)
e4a2d9c1d4 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:02 +01:00
Eloy Lafuente (stronk7)
57e6fb7ad9 MDL-73348 phpunit: privacy and privacy_provider testcase names
All privacy_test and privacy_provider_test classes:

- Namespaced with component\privacy.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Renamed a few files to make all be privacy_test or privacy_provider_test.php
- All them passing individually.
- Complete runs passing too.
2021-12-17 14:21:02 +01:00
Mihail Geshoski
c728778df8 MDL-72873 core_grades: Update table headings in the user report page 2021-12-16 00:10:13 +08:00
Mihail Geshoski
31f3922cda MDL-72873 core_grades: Add unit tests 2021-12-16 00:10:13 +08:00
Mihail Geshoski
b4e8e0a50d MDL-72873 core_grades: Create method that resets all static caches
Creates a new method reset_caches() in grade_helper which resets
all static caches within this class. This is required for unit
testing.
2021-12-16 00:10:13 +08:00
Mihail Geshoski
17bfe7e79f MDL-72873 behat: Update behat tests 2021-12-16 00:10:13 +08:00
Mihail Geshoski
c744bdd1d4 MDL-72873 core_grades: Deprecate select_in_gradebook_tabs()
Deprecates the function select_in_gradebook_tabs() in behat_grade.php.
After the tertiary navigation changes in gradebook this function became
obsolete and is now replaced by select_in_gradebook_navigation_selector().
2021-12-16 00:10:13 +08:00
Mihail Geshoski
ddd40c79f1 MDL-72873 core_grades: Update behat step definitions in grades
The behat definition step which is used for navigating to a specific
page in the course gradebook has been updated to reflect the changes
related to the addition of tertiary navitaion in gradebook.
2021-12-16 00:10:13 +08:00
Mihail Geshoski
de53412989 MDL-72873 core_grades: Remove $CFG->grade_navmethod
The $CFG->grade_navmethod setting has been removed because it is not
required anymore. This setting was used to set the type of navigation
(tabs or dropdown box) which will be used in gradebook. However, these
navigation methods are no longer used and replaced with tertiary
navigation.
2021-12-16 00:10:13 +08:00
Mihail Geshoski
95b35652d3 MDL-72873 core_grades: Deprecate unused methods
The functions grade_print_tabs() and print_grade_plugin_selector()
can be deprecated as they are no longer used. These functions were
used to generate and output the tabs and dropdown box navigation
in gradebook which is now replaced with tertiary navigation.
2021-12-16 00:10:13 +08:00
Mihail Geshoski
eb0b022bb7 MDL-72873 core_grades: Add tertiary navigation in grade scales 2021-12-16 00:10:13 +08:00
Mihail Geshoski
4f403bfdca MDL-72873 core_grades: Add tertiary nav in grader report preferences 2021-12-16 00:10:13 +08:00
Mihail Geshoski
c94ba3eea5 MDL-72873 core_grades: Add tertiary navigation in course grade settings 2021-12-16 00:10:13 +08:00
Mihail Geshoski
afbc8b2586 MDL-72873 core_grades: Add tertiary navigation in grade outcomes 2021-12-16 00:10:13 +08:00
Mihail Geshoski
c326402e86 MDL-72873 core_grades: Add tertiary navigation in grade export plugins 2021-12-16 00:10:13 +08:00
Mihail Geshoski
bd13229e75 MDL-72873 core_grades: Add tertiary navigation in grade import plugins 2021-12-16 00:10:13 +08:00
Mihail Geshoski
08e90eeef4 MDL-72873 core_grades: Add tertiary navigation in grade letters 2021-12-16 00:10:13 +08:00
Mihail Geshoski
cdc4aeae3e MDL-72873 core_grades: Add tertiary navigation in gradebook setup 2021-12-16 00:10:13 +08:00
Mihail Geshoski
d1a0e4a95c MDL-72873 core_grades: Add general tertiary navigation 2021-12-16 00:10:13 +08:00
Ilya Tregubov
9e5ffa2229 Merge branch 'MDL-72095-master-3' of https://github.com/bmbrands/moodle 2021-12-13 18:46:16 +02:00
Ilya Tregubov
16a7c3a698 Merge branch 'MDL-72413-master-dec13' of https://github.com/peterRd/moodle 2021-12-13 09:35:14 +02:00
Peter Dias
d9e0d4ed31 MDL-72413 assign: Use the common module for setting the header 2021-12-13 09:49:34 +08:00
Ilya Tregubov
6f44f008d8 Merge branch 'MDL-73278' of https://github.com/stronk7/moodle 2021-12-10 18:51:40 +02:00
abgreeve
fcd4de8639 MDL-72090 navigation: Update to behat feature files for navigation.
This updates feature files to use the new steps to navigate to certain
pages.
2021-12-09 11:13:35 +08:00
abgreeve
d02274137a MDL-72090 navigation: Create an overflow menu for course admin.
This adds a select menu for navigation on course administration
 pages such as import, export, course copy, and course reset.
2021-12-09 11:13:35 +08:00
Bas Brands
946fd915e2 MDL-72095 theme_boost: max width for activity pages 2021-12-08 17:29:49 +01:00
Eloy Lafuente (stronk7)
61f5c2038b MDL-73278 phpunit: Fix namespaces for the renamed classes
Within the renamed classes in the previous commit, there were a
few incorrect namespace, this commit fixes all them to be
correct component[\api] ones.

Also fix a few incorrect leading backslashes in namespace/use
statements. And tests extending renamed tests.
2021-12-07 23:54:29 +01:00
Eloy Lafuente (stronk7)
deb0e76eee MDL-73278 phpunit: Rename already namespaced classes to match file name
These are the only cases 100% safe to apply the renaming of the
testcase class names to match the file names.

All other cases are not safe, because they are missing namespace
and may enter into name conflicts. Adding namespaces is not as
simple as imagined because it implies to, also, add a good number
of modifications to core. See the issue for more details.
2021-12-07 23:54:29 +01:00
Sujith Haridasan
1cdab24b3a MDL-71915 gradereport_grader: Fix ajax_grader failure
Fix ajax_grader behat failure.
2021-12-06 10:26:41 +05:30
Eloy Lafuente (stronk7)
2f1936be67 MDL-72791 behat: Unrelated, add the @skip_interim tag
This commit is UNRELATED to the MDL-72791, but we need the
@skip_interim tag added to one scenario that is causing lots
of noise and failures @ CI infrastructure.

So we are using MDL-72791 (this extra commit) to add that tag ASAP.
(sorry for the noise, the tag will be removed once the scenario
or its causes are fixed).
2021-12-01 17:15:56 +01:00
Sara Arjona
ca8f2deea4 Merge branch 'MDL-73140' of https://github.com/timhunt/moodle 2021-12-01 12:29:47 +01:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Tim Hunt
e1b28a7fc6 MDL-73140 grade history: fix badly formatted lists 2021-11-22 23:48:19 +00:00
Sara Arjona
dc0e7a45df Merge branch 'MDL-70721-master' of git://github.com/rezaies/moodle 2021-11-18 15:18:51 +01:00
Sara Arjona
b238091f7c Merge branch 'MDL-71699' of https://github.com/mkassaei/moodle 2021-11-17 08:53:34 +01:00