3500 Commits

Author SHA1 Message Date
Ilya Tregubov
8189d3b2f5
MDL-78438 gradereport_grader: Fix Behat test
Seems Oracle is too slow on pressing buttons :))
2024-03-19 23:18:13 +07:00
Ilya Tregubov
eda139f3a0 Merge branch 'MDL-80240' of https://github.com/paulholden/moodle 2024-03-19 10:27:54 +08:00
Ilya Tregubov
87f5d69ba5 Merge branch 'MDL-78438' of https://github.com/paulholden/moodle 2024-03-19 09:46:59 +08:00
Paul Holden
357445b43c
MDL-81254 grade: ensure we always close the graded user iterator.
This ensures that the recordsets contained within are also closed
when we're done with them.
2024-03-15 14:59:11 +00:00
Eloy Lafuente (stronk7)
361dfe8145
MDL-75952 general: Since php81, refection->setAccessible() is no-op
Refereces:
- https://wiki.php.net/rfc/make-reflection-setaccessible-no-op
- https://www.php.net/manual/en/reflectionproperty.setaccessible.php
- https://www.php.net/manual/en/reflectionmethod.setaccessible.php

As of PHP 8.1.0, calling this method has no effect; all methods are
invokable by default. So, let's remove all uses from core, they are
no-op.
2024-03-10 21:15:00 +01:00
Ilya Tregubov
24e42ed7d1 Merge branch 'MDL-79044-main' of https://github.com/geichelberger/moodle 2024-03-08 11:15:16 +08:00
Jun Pataleta
3278ce7aba
Merge branch 'MDL-65292' of https://github.com/stronk7/moodle 2024-03-08 08:00:41 +08:00
Simey Lameze
503cd95b9f MDL-79990 behat: custom step to verify assign grading data
This commit also optimise the new behat test.
2024-03-07 09:43:53 +08:00
Angelia Dela Cruz
87f413b4d6 MDL-79990 gradingform: Behat test for marking guide information display 2024-03-07 08:21:14 +08:00
Paul Holden
d995caab80
MDL-78438 gradereport_grader: use lang string for collapsed columns. 2024-03-05 11:41:52 +00:00
Huong Nguyen
084fa3fb15 Merge branch 'MDL-77980' of https://github.com/paulholden/moodle 2024-03-05 10:55:47 +07:00
Sara Arjona
e1034deb8b
Merge branch 'MDL-75670-main' of https://github.com/roland04/moodle 2024-03-04 16:05:18 +01:00
Paul Holden
b0f02b0eb0
MDL-80240 gradereport_grader: fix userfields parameter to search sql. 2024-03-04 14:43:30 +00:00
Paul Holden
4e9b6c78b8
MDL-77980 gradereport_grader: link to each activity in table heading.
* The activity link is now always it's view.php page;
* The user fields in the grader report are now initially sorted via the
  cell action menu (ascending/descending).
2024-03-04 11:21:09 +00:00
Mikel Martín
d0d62fd06c MDL-75670 theme: Refactor form-inline helper class dropped in BS5
- Replace .form-inline Bootstrap helper class with .d-flex.flex-wrap.align-items-center
- Refactor .form-inline occurrences in SCSS files or remove when unneeded
2024-02-29 13:56:46 +01:00
Mikel Martín
4ce883ae21 MDL-75670 theme: Refactor form-group helper class dropped in BS5
- Replace .form-group Boostrap helper class with .mb-3. The .form-group class was only
adding margin bottom styles, so it is an straightforward change.
- Replace .form-group references in SCSS files with .fitem now .form-group has been removed.
- There were some other .form-group occurrences in the code that were using it not for styling
but incorrectly for managing some logic. These have been also replaced with .fitem or removed.
2024-02-29 13:55:37 +01:00
Eloy Lafuente (stronk7)
29a541724f
MDL-65292 style: Fix all the function declaration ordering
This has been generated running the following Sniff,
part of the Moodle's CodeSniffer standard:
- PSR2.Methods.MethodDeclaration

It just ensures all the function declarations have
the correct order for:
- abstract and final.
- visibility (public, protected, private).
- static.

So, all the lines modified by this commit are function declarations
and the only changes are in the positions of those keywords.
2024-02-28 23:47:47 +01:00
Eloy Lafuente (stronk7)
ba1f804ffa
MDL-65292 style: Fix all function declarations white space
This has been generated running the following Sniffs, all
them part of the Moodle's CodeSniffer standard:
- PSR12.Functions.ReturnTypeDeclaration
- PSR12.Functions.NullableTypeDeclaration
- moodle.Methods.MethodDeclarationSpacing
- Squiz.Whitespace.ScopeKeywordSpacing

All them are, exclusively, about correct spacing, so the changes
are, all them, only white space changes.

Only exceptions to the above are 3 changes what were setting the
return type in a new line, and, when that happens, the closing
parenthesis (bracket) has to go to the same line than the colon.
2024-02-28 23:33:26 +01:00
Neill Magill
6ff5e7aabd MDL-77965 unit tests: Add covers annotation 2024-02-23 09:32:07 +00:00
Neill Magill
32a915ecd2 MDL-77965 grade: Improve data export performance
The existing query was inefficient using an index scan and
index merges. This change splits the query up into many individually
much more efficient queries.

This should significantly improve performance on large sites.
2024-02-23 09:32:06 +00:00
Sara Arjona
969897c2fe
Merge branch 'MDL-78944' of https://github.com/Chocolate-lightning/moodle 2024-02-21 09:18:45 +01:00
Sara Arjona
8cdd62ca88
MDL-78284 theme: Add new interactive content and update styles 2024-02-15 17:49:43 +01:00
Jun Pataleta
b660a59889
Merge branch 'MDL-80766' of https://github.com/paulholden/moodle 2024-02-13 15:34:38 +08:00
Mathew May
02480eec44 MDL-78944 gradereport_grader: Spurious behat fix 2024-02-13 15:01:23 +08:00
Andrew Nicols
85c1dd0077
MDL-80072 core: Deprecate format_text smiley option
This was actually deprecated in Moodle 2.0 but did not emit.
2024-02-12 11:11:18 +08:00
Gregor Eichelberger
7c4ca5f269
MDL-79044 gradebook: Add default export method setting
Introduces a new admin setting to configure the default export method
used for redirecting the user via /grade/export/index.php

Signed-off-by: Gregor Eichelberger <gregor.eichelberger@tuwien.ac.at>
2024-02-09 22:31:57 +01:00
Paul Holden
8ea7f73898
MDL-75081 grade: fix rogue gradebook scenarios containing invalid steps.
Various re-factors over recent releases appear to have led to quite a
drift between actual functionality and what these scenarios assert for
imagined functionality. Page elements and content are referenced that
don't exist in multiple places.
2024-02-06 17:31:46 +00:00
Paul Holden
717a616030
MDL-80766 gradereport_grader: omit max constraint for unlimited grades. 2024-01-31 18:26:38 +00:00
Sara Arjona
8b36abdb9d
Merge branch 'MDL-80259-main' of https://github.com/roland04/moodle 2024-01-24 09:16:12 +01:00
Ilya Tregubov
9bdc0a2669 Merge branch 'MDL-80270-main' of https://github.com/mihailges/moodle 2024-01-24 13:44:02 +08:00
Mikel Martín
a198884333 MDL-80259 theme_boost: Refactor badge helper classes for Bootstrap 5 2024-01-23 08:27:23 +01:00
Sara Arjona
2893dc713c
Merge branch 'MDL-80328' of https://github.com/paulholden/moodle 2024-01-22 17:22:50 +01:00
Jun Pataleta
613d638125
Merge branch 'MDL-80374' of https://github.com/paulholden/moodle 2024-01-22 16:29:32 +08:00
Andrew Nicols
f81adf978e
Merge branch 'MDL-80041-main' of https://github.com/junpataleta/moodle 2024-01-18 10:29:17 +08:00
Sara Arjona
502e1a8329
Merge branch 'MDL-71732' of https://github.com/paulholden/moodle 2024-01-10 17:00:02 +01:00
Paul Holden
a32397feda
MDL-80328 user: use modal confirmation for admin deleting users. 2024-01-10 09:06:07 +00:00
Simey Lameze
51de4a87fb MDL-73639 behat: improvements to the new recover grades test 2024-01-08 12:48:39 +08:00
Angelia Dela Cruz
a039b71583 MDL-73639 core_grades: Behat to test Recover grades default settings 2024-01-08 12:48:39 +08:00
Jun Pataleta
6c1e7773a1
MDL-80041 gradereport_singleview: Implement grade validation
Implement grade validation for numeric grade overrides by setting
the type attribute for the grade input to number and setting a min
and max attribute values. Submitting the form with invalid values
will trigger built-in validation of the inputs.
2023-12-21 22:15:07 +08:00
Huong Nguyen
0dbd3ffa50 Merge branch 'MDL-80394-main' of https://github.com/ilyatregubov/moodle 2023-12-14 09:22:20 +07:00
Ilya Tregubov
4051efc119 MDL-80394 core_grades: Revert changes to graded_users_iterator
Third party plugins are using it and change was breaking it
2023-12-13 09:34:13 +08:00
Simey Lameze
c905067a98
MDL-79270 behat: update tests to match new UI elements 2023-12-13 09:20:20 +08:00
Paul Holden
d51ebb89f4
MDL-80374 grade: show localised plugin name in report column heading. 2023-12-11 10:26:36 +00:00
Paul Holden
7143cf4cbc
MDL-79397 reportbuilder: update existing entity table definitions. 2023-12-07 17:19:01 +00:00
Huong Nguyen
d7416db402 Merge branch 'MDL-68652-master-1' of https://github.com/ilyatregubov/moodle 2023-12-07 09:31:05 +07:00
Ilya Tregubov
7c207dce1b MDL-68652 core_grades: Only return allowed fields.
Grade iterator should check user permissions.
2023-12-07 09:14:33 +08:00
Ilya Tregubov
faae0874ce MDL-68652 mod_forum: Only include gradable users in grading 2023-12-06 21:11:28 +08:00
Ilya Tregubov
bfb8ad5735 MDL-68652 core_grades: Refactor grades functions.
get_gradable_users now has extra param to retrieve only active
users. Grade reports hase their own grade_report::get_gradable_users
since they decided whether to inlcude active users from report preferences
2023-12-06 21:11:22 +08:00
Huong Nguyen
a3608ddbbf Merge branch 'MDL-50650-master' of https://github.com/ilyatregubov/moodle 2023-12-06 14:05:25 +07:00
Ilya Tregubov
b43ccea792 MDL-68652 core_grades: Add a webservice to retrive only gradable users. 2023-12-05 09:37:24 +08:00