1645 Commits

Author SHA1 Message Date
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
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
8b39ae9369
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:33:31 +08:00
Jun Pataleta
ab08ac740c
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 09:50:00 +08:00
Ilya Tregubov
9df50931e0
MDL-77326 gradereport_summary: Use appropriate icons. 2023-10-31 10:15:06 +08:00
Ilya Tregubov
f44338eda0
MDL-77326 core_grades: Refactor grade report functions.
Those should be reusable
2023-10-31 10:15:05 +08:00
David Woloszyn
b3b45e31cd MDL-42189 gradereport_overview: Report hidden from suspended enrolments 2023-10-23 09:45:27 +11:00
Huong Nguyen
13f1247bc0 Merge branch 'MDL-78775-master' of https://github.com/ilyatregubov/moodle 2023-10-20 09:29:15 +07:00
Ilya Tregubov
ff4f9bf9a2
MDL-78775 gradereport_grade: Fix Behat.
Sort by lastname before doing any assertions.
2023-10-20 09:55:20 +08:00
Huong Nguyen
2f147dcd30 Merge branch 'MDL-78775-master' of https://github.com/ilyatregubov/moodle 2023-10-18 12:55:22 +07:00
Ilya Tregubov
cb2cf0602d
MDL-78775 core_grades: Fix Behat 2023-10-18 12:54:28 +08:00
Huong Nguyen
b3f32d6ad7 Merge branch 'MDL-78775-master' of https://github.com/ilyatregubov/moodle 2023-10-17 10:46:25 +07:00
Ilya Tregubov
9048eb1e53
MDL-78775 core_grades: Fix saving on grader report page
When we have a pagination on grader page and search for user
that is not on first page, saving was throwing an error
since page didn't have enough data
2023-10-13 14:08:31 +08:00
Jun Pataleta
9beff03a96
MDL-79626 upgrade: add the 4.3.0 separation line to all upgrade scripts 2023-10-10 10:44:17 +08:00
Jun Pataleta
94bc2cd38b
MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
Jake Dallimore
d7c348cfe1
Merge branch 'MDL-79056-master' of https://github.com/junpataleta/moodle 2023-10-03 12:02:52 +08:00
Ilya Tregubov
c80e366051
Merge branch 'MDL-79458-master' of https://github.com/ferranrecio/moodle 2023-10-02 13:30:07 +08:00
Jun Pataleta
7998d80302
MDL-79056 gradereport_user: Make column heading IDs unique
Associate column headings of user report tables to the user ID that the
report is being generated for. This will prevent duplicate IDs for the
report columns when multiple user report tables are displayed on the
User report page.
2023-09-29 11:03:14 +08:00
Jun Pataleta
af22c038b7
MDL-79056 gradereport_user: Set grade category and item names as th
* The table cells mentioned in the `headers` attribute of other table
cells need to be using the table header <th> tag. Otherwise, HTML
validation fails.
2023-09-29 11:03:14 +08:00
Mihail Geshoski
65b75f18cc MDL-78813 gradereport_grader: Revert border-top-width css change
Revert the modification of the border-top-width css attribute
to the grader table and the table header. This change seems to
be unnecessary.
2023-09-27 10:02:03 +02:00
Mihail Geshoski
8b9efc3135 MDL-78813 gradereport_grader: Make the average row sticky again
After MDL-75762 the overall average row in the grader report
was no longer properly pinned and hidden behind the sticky footer.
This change ensures that the overall average row is pinned again
at the top of the sticky footer when vertically scrolling. Also,
leveragning on the new sticky footer 'toggled' event it is making
sure that the row is properly pinned on narrower screens where the
sticky footer appears and disappears dynamically when scrolling.
2023-09-27 10:02:03 +02:00
Kevin Percy
01687d9125 MDL-78813 gradereport_grader: Fixed help icon covering course average 2023-09-27 10:02:03 +02:00
Ferran Recio
0184a477d5 MDL-79458 output: fix action menu subpanel behats 2023-09-26 13:22:51 +02:00
Jun Pataleta
e2f900b2ad
Merge branch 'MDL-79323-master-enfix' of https://github.com/vmdef/moodle 2023-09-21 15:29:40 +02:00
Víctor Déniz
0b838f6977 MDL-79323 lang: Fix Behat tests regressions after merging en_fix strings 2023-09-19 13:42:10 +01:00
Helen Foster
13b7ea5d44 MDL-79323 lang: Import fixed English strings (en_fix) 2023-09-19 10:24:37 +01:00
Paul Holden
92957ab97f
MDL-79327 gradereport_grader: fix markup in collapsed columns dialog. 2023-09-18 18:36:05 +01:00
Shamim Rezaie
24a063bd67
Merge branch 'MDL-78833-master' of https://github.com/ilyatregubov/moodle 2023-09-15 16:58:00 +08:00
Ilya Tregubov
4355e38e88
Merge branch 'MDL-78312-master' of https://github.com/NashTechOpenUniversity/moodle 2023-09-15 16:56:22 +08:00
Huong Nguyen
b65724480b
Merge branch 'MDL-79057-master' of https://github.com/junpataleta/moodle 2023-09-15 16:54:09 +08:00
Jun Pataleta
c356d161e8
Merge branch 'MDL-79158' of https://github.com/paulholden/moodle 2023-09-14 14:21:46 +08:00
hieuvu
a3da58a9cb MDL-78312 core_user: add an 'exact match only' option 2023-09-13 20:22:22 +07:00
Paul Holden
717c4b397e
MDL-79158 gradereport_grader: align collapsed columns dialog element. 2023-09-12 12:25:44 +01:00
Ilya Tregubov
0de64aa81b
MDL-78833 gradereport_grader: Propery align averages and ranges row.
Depending on editing mode or grade display type it can be right or
left aligned
2023-09-12 16:25:01 +08:00
Andrew Nicols
48bc688ccd
MDL-78324 core: Convert modals to use new static methods
This commit takes all modals which were not using the legacy
ModalFactory.create triggers and migrates them to the new Modal.create
method.
2023-09-09 00:04:11 +08:00
Andrew Nicols
98f0aebde6
MDL-78324 gradereport_singleview: Update modal usage to drop factory use
This change includes some additional simplifications to support this
change, including conversion from done/fail to then/catch, and some
simplification of Promise usage.

There were a number of cases of nested Modal usage which have been
removed.
2023-09-09 00:04:03 +08:00
Jun Pataleta
8b8efffd7e
Merge branch 'MDL-78779-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:27 +08:00
Ilya Tregubov
b8826a7a21
MDL-78082 gradereport_grader: Remove xpath from Behat. 2023-09-08 22:13:11 +08:00
Shamim Rezaie
56abfc2d22 MDL-78082 gradereport_grader: Acceptance test for locking 2023-09-07 05:46:55 +10:00
Shamim Rezaie
a1cf8f143a MDL-78082 gradereport_grader: Enter should submit the form
Problem:
Previously, when users pressed the Enter key while interacting with the
grader report, instead of submitting the form, a table column was
inadvertently expanded or collapsed. This behaviour occurred due to the
expand/collapse buttons lacking an explicit 'type' attribute within the
form. As a result, these buttons were mistakenly treated as submit
buttons.

Solution:
In this commit, we have addressed the issue by ensuring that the
expand/collapse buttons now have the correct 'type' attribute set,
explicitly identifying them as non-submit buttons. This adjustment
prevents them from interfering with form submission unintentionally.

Explanation:
By making this fix, we improve the user experience in the grade book,
allowing users to navigate and interact with the interface more
smoothly. Pressing the Enter key will now trigger the form submission as
expected, rather than inadvertently activating expand/collapse actions.
2023-09-06 22:18:40 +10:00