3477 Commits

Author SHA1 Message Date
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
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
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
Ilya Tregubov
01f6b2f988 MDL-50650 core_grades: Validate minimum grade when importing grades
Also add behat test for max and min grade validation.
2023-12-04 16:03:49 +08:00
Kyle Matter
68ef883354 MDL-50650 core_grades: allow grade imports larger than 100 points 2023-12-04 12:34:44 +08:00
Jun Pataleta
9de014bff1
MDL-80043 grade: Add upgrade.txt notes 2023-12-01 09:07:31 +08:00
Jun Pataleta
87c950e0d0
MDL-80043 gradereport_grader: Define editingmode_title lang string 2023-12-01 09:07:30 +08:00
Jun Pataleta
4b4ced22b5
MDL-80043 grade: editingmode_title support for grade report plugins
* Add support for grade report plugins that define an
`editingmode_title` lang string. If the grade report plugin defines this
 language string, it will be used for the page title's unique
 identifying information when editing mode is turned on.
2023-12-01 09:07:30 +08:00
Jun Pataleta
3f75abcb8d
MDL-80043 gradereport_singleview: Improve heading wordings
* Make the headings for the single view easier to read and understand
* When on editing mode, update the heading for the grade and user
screens to convey to the user that the page is currently on editing
mode. This is helpful for screen reader users as they can immediately
know the current display mode of the single view report page when this
gets read via the page title.
2023-12-01 09:07:30 +08:00
Jun Pataleta
7c0eece4c6
MDL-80043 grade: Use heading parameter for the page title if provided 2023-12-01 09:02:00 +08:00
Mihail Geshoski
1ab7801c0e MDL-80270 gradereport_grader: User row as the last row cannot be sticky
In certain scenarios, a user row can be the last row in the grader
report table. The current logic does not take this into account and
always pins the last row regardless of the type.
This change ensures that the last row is not a user row before executing
the logic responsible for pinning this row.
2023-11-30 00:07:18 +08:00
Paul Holden
a5f4a725b8
MDL-71732 core: final removal of deprecated 400 methods. 2023-11-28 09:16:07 +00:00
Andrew Nicols
525212f2d2
MDL-78496 core: Address phpcs issues with upgrade.php files 2023-11-19 21:20:53 +08:00
Andrew Nicols
545b36cd4a
MDL-78496 upgrade: remove all the < 4.1.0 upgrade steps
Also includes an upgrade step to prevent upgrading from any
version < 2021112802 (v4.1.0) as anti-cheating measure.
2023-11-17 23:25:36 +08:00
Ilya Tregubov
ddd19a3bf2
Merge branch 'MDL-80121-main' of https://github.com/junpataleta/moodle 2023-11-16 10:00:39 +08:00
Jun Pataleta
3bb574b35a
MDL-80121 gradereport_singleview: Increase zero-state heading level
With the h2 heading not being rendered on the zero-state pages of the
Single view report, we need to increase the heading level of the
"Search for a user to view all their grades" and
"Select a grade item above" headings from h3 to h2.
2023-11-15 19:22:57 +08:00
Jun Pataleta
51a6181e16
MDL-80121 grade: Trim heading
In order to prevent rendering an empty heading <h2>, we need to make
sure that the $heading parameter passed to print_grade_page_head() is
not an empty string.
2023-11-15 19:20:55 +08:00
Jake Dallimore
c65f392532
Merge branch 'MDL-76588-master-2' of https://github.com/ilyatregubov/moodle 2023-11-15 12:10:59 +08:00
Ilya Tregubov
44f1937c57
Merge branch 'MDL-71941-master' of https://github.com/lucaboesch/moodle 2023-11-06 13:43:43 +08:00
Huong Nguyen
dfa2fd8445 Merge branch 'MDL-79062-master-2' of https://github.com/junpataleta/moodle 2023-11-06 10:51:05 +07:00
Ilya Tregubov
e37eb30a09
MDL-76588 gradereport_summary: Summary report hack
This is a hack since average is not correct for summary report
when we have suspended users. But since we don't want to change
display to user - it is set to match 4.1 behavior.
2023-11-03 13:46:43 +08:00
Ilya Tregubov
4cae211e4a
MDL-76588 gradereport_user: Deprecate calculate_averages
Calculate_average is used instead.
2023-11-03 12:40:55 +08:00
Ilya Tregubov
4a0770d0ca
MDL-76588 gradereport_grader: Deprecate get_right_avg_row
Calculate_average is used instead.
2023-11-03 12:40:50 +08:00
Ilya Tregubov
d47c36b28b
MDL-76588 core_grades: Refactor calculate_average for hidden grades case.
On grader report we include hidden grades in averages calculations.
On user report we don't include hidden grades. So to allow using of
calculate_averages it needs to be refactored for this case.

We also have to add group id param to calculate_average since for
grader report we calculate both overall average and group average
2023-11-03 12:40:46 +08:00
Luca Bösch
1e2300fbd6 MDL-71941 core_grades: use 'gradenoun' core string 2023-11-02 16:02:32 +01:00
Jun Pataleta
99bcfc1cdb
MDL-79062 grade: Behat test fixes
* Feature: We can use a minimum grade different than zero
  - Use correct minimum input values.
  - Use data generators for faster test execution.
* Scenario: Disable category overriding
  - Use the field name to ensure that the correct field is being tested.
2023-11-02 17:33:31 +08:00