Commit Graph

3471 Commits

Author SHA1 Message Date
Angelia Dela Cruz 228c9d27dd MDL-80107 gradingform: Behat test for defining marking guide 2024-04-23 12:55:23 +08:00
Mihail Geshoski a51e542e5b MDL-81584 gradereport_grader: Pin the last row only when necessary
Fixes the current behavior where the last row in the grader report is
always 'pinned', ensuring it is pinned only when necessary.
2024-04-18 16:15:11 +08:00
Didier 'OdyX' Raboud fecf2ee25a MDL-65381 grade_report: fix empty separate groups own grades access
On separate groups' courses, users without groups could not access
their own grade items.
2024-04-08 17:03:02 +02:00
Sara Arjona 65afe1196a Merge branch 'MDL-79913-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-21 17:18:18 +01:00
Sara Arjona 23ec91a2c4 Merge branch 'MDL-81112-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-21 17:11:35 +01:00
Paul Holden d3faf37e8b MDL-81112 gradereport_grader: show user country value correctly. 2024-03-20 23:49:57 +00:00
Ilya Tregubov b709cc3eee MDL-78438 gradereport_grader: Fix Behat test
Seems Oracle is too slow on pressing buttons :))
2024-03-19 17:46:47 +08:00
Ilya Tregubov 28f91d0b2d Merge branch 'MDL-80240-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-19 10:28:13 +08:00
Ilya Tregubov 7050d41112 Merge branch 'MDL-78438-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-03-19 09:47:16 +08:00
Paul Holden 2bc19b944e MDL-79913 grade: respect messaging config for user heading buttons. 2024-03-15 17:00:28 +00:00
Paul Holden 5c0e2639d4 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 16:04:07 +00:00
Simey Lameze c91ee7412e MDL-79990 behat: custom step to verify assign grading data
This commit also optimise the new behat test.
2024-03-07 09:44:22 +08:00
Angelia Dela Cruz 7e076e4dc8 MDL-79990 gradingform: Behat test for marking guide information display 2024-03-07 09:44:21 +08:00
Paul Holden 91af0db62a MDL-80240 gradereport_grader: fix userfields parameter to search sql. 2024-03-04 14:43:36 +00:00
Paul Holden e7bf300cdf MDL-78438 gradereport_grader: use lang string for collapsed columns. 2024-02-23 09:39:12 +00:00
Neill Magill f357b3f715 MDL-77965 unit tests: Add covers annotation 2024-02-23 09:32:45 +00:00
Neill Magill fe76a2562e 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:45 +00:00
Sara Arjona 701e4cc18d Merge branch 'MDL-78944-43' of https://github.com/Chocolate-lightning/moodle into MOODLE_403_STABLE 2024-02-21 09:18:56 +01:00
Mathew May 3fcfe24a7e MDL-78944 gradereport_grader: Spurious behat fix 2024-02-15 10:46:34 +08:00
Jun Pataleta 28f306aac9 Merge branch 'MDL-80766-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-02-13 15:34:29 +08:00
Paul Holden 0492cbf9b7 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:48 +00:00
Paul Holden c58a4359e8 MDL-80766 gradereport_grader: omit max constraint for unlimited grades. 2024-01-31 18:26:40 +00:00
Ilya Tregubov e8c1759b02 Merge branch 'MDL-80270-403' of https://github.com/mihailges/moodle into MOODLE_403_STABLE 2024-01-24 13:46:53 +08:00
Jun Pataleta 74a3fa91e4 Merge branch 'MDL-80374-403' of https://github.com/paulholden/moodle into MOODLE_403_STABLE 2024-01-22 16:29:38 +08:00
Andrew Nicols 5cd72ef46d Merge branch 'MDL-80041-403' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE 2024-01-18 10:54:00 +08:00
Simey Lameze fb59440170 MDL-73639 behat: improvements to the new recover grades test 2024-01-08 13:09:03 +08:00
Angelia Dela Cruz f91e98828d MDL-73639 core_grades: Behat to test Recover grades default settings 2024-01-08 13:09:03 +08:00
Jun Pataleta 3eca273205 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:18:53 +08:00
Ilya Tregubov 155abc6945 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:38:14 +08:00
Paul Holden 61f8a1fe55 MDL-80374 grade: show localised plugin name in report column heading. 2023-12-11 10:34:58 +00:00
Huong Nguyen 658953e34f Merge branch 'MDL-68652-403-1' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-12-07 09:31:46 +07:00
Ilya Tregubov 25e00b5e1f MDL-68652 core_grades: Only return allowed fields.
Grade iterator should check user permissions.
2023-12-07 09:12:39 +08:00
Huong Nguyen 4b26df011f Merge branch 'MDL-50650-403' of https://github.com/ilyatregubov/moodle into MOODLE_403_STABLE 2023-12-06 14:06:13 +07:00
Ilya Tregubov bbea6e1d31 MDL-68652 mod_forum: Only include gradable users in grading 2023-12-06 12:45:09 +08:00
Ilya Tregubov ade9f7177a 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-05 10:52:12 +08:00
Ilya Tregubov 05846ae405 MDL-68652 core_grades: Add a webservice to retrive only gradable users. 2023-12-05 10:52:12 +08:00
Ilya Tregubov 79ea6a2d22 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:21 +08:00
Kyle Matter e2f5104676 MDL-50650 core_grades: allow grade imports larger than 100 points 2023-12-04 12:53:21 +08:00
Jun Pataleta 3f10ec31b5 MDL-80043 grade: Add upgrade.txt notes 2023-12-01 09:10:53 +08:00
Jun Pataleta 488a653e50 MDL-80043 gradereport_grader: Define editingmode_title lang string 2023-12-01 09:10:53 +08:00
Jun Pataleta 7fa08a0b35 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:10:53 +08:00
Jun Pataleta 6a89731462 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:10:53 +08:00
Jun Pataleta fd8b7fc730 MDL-80043 grade: Use heading parameter for the page title if provided 2023-12-01 09:10:52 +08:00
Mihail Geshoski 222b528160 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:10:30 +08:00
Jun Pataleta 1f5e140ae9 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:24:04 +08:00
Jun Pataleta f65d067dec 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:24:04 +08:00
Jun Pataleta 60a1c97289 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:34:29 +08:00
Jun Pataleta 92afaa484f MDL-79062 grades: Sort-by-name menu item accessibility fixes
* <h6> tags cannot be in table cells. Replace them with <div> tags.
* Group the ascending/descending sort menu items to better indicate
where they belong to.
2023-11-02 17:34:28 +08:00
Jun Pataleta 9fdb460330 MDL-79062 gradereport_grader: Set numeric type for grade value inputs
* Set grade inputs for grade items with type set to GRADE_VALUE to
number and add min and max input attributes, where necessary.
2023-11-02 17:34:28 +08:00
Jun Pataleta ccfc156b43 MDL-79062 gradereport_grader: Remove setting of tabindex >= 1
Tab indices that are greater than or equal to 1 break the natural
tab order of the document and may cause problems for keyboard users.
2023-11-02 17:34:27 +08:00