1441 |
ariadna |
1 |
# core_grades (subsystem) Upgrade notes
|
|
|
2 |
|
|
|
3 |
## 5.0.2+
|
|
|
4 |
|
|
|
5 |
### Added
|
|
|
6 |
|
|
|
7 |
- - New grade_item::is_gradable function has been created to return whether the grade item is GRADE_TYPE_VALUE or GRADE_TYPE_SCALE.
|
|
|
8 |
|
|
|
9 |
For more information see [MDL-86173](https://tracker.moodle.org/browse/MDL-86173)
|
|
|
10 |
|
|
|
11 |
## 5.0
|
|
|
12 |
|
|
|
13 |
### Added
|
|
|
14 |
|
|
|
15 |
- `grade_regrade_final_grades()` now has an additional `async` parameter, which allows full course
|
|
|
16 |
regrades to be performed in the background. This avoids blocking the user for long periods and
|
|
|
17 |
while making changes to a large course. The actual regrade is performed using the
|
|
|
18 |
`\core_course\task\regrade_final_grades` adhoc task, which calls `grade_regrade_final_grades()`
|
|
|
19 |
with `async: false`.
|
|
|
20 |
|
|
|
21 |
For more information see [MDL-81714](https://tracker.moodle.org/browse/MDL-81714)
|
|
|
22 |
|
|
|
23 |
### Changed
|
|
|
24 |
|
|
|
25 |
- The `grade_object::fetch_all_helper()` now accepts a new `$sort` parameter with a default value is `id ASC` to sort the grade instances
|
|
|
26 |
|
|
|
27 |
For more information see [MDL-85115](https://tracker.moodle.org/browse/MDL-85115)
|
|
|
28 |
|
|
|
29 |
### Deprecated
|
|
|
30 |
|
|
|
31 |
- Deprecate print_graded_users_selector() from Moodle 2 era
|
|
|
32 |
|
|
|
33 |
For more information see [MDL-84673](https://tracker.moodle.org/browse/MDL-84673)
|
|
|
34 |
|
|
|
35 |
### Removed
|
|
|
36 |
|
|
|
37 |
- Removed unused grade_edit_tree_column_select class
|
|
|
38 |
|
|
|
39 |
For more information see [MDL-77668](https://tracker.moodle.org/browse/MDL-77668)
|
|
|
40 |
- The previously deprecated `grade_helper::get_lang_string` method has been removed
|
|
|
41 |
|
|
|
42 |
For more information see [MDL-78780](https://tracker.moodle.org/browse/MDL-78780)
|
|
|
43 |
- Final deprecation of
|
|
|
44 |
grade_structure::get_element_type_string(),
|
|
|
45 |
grade_structure::get_element_header(),
|
|
|
46 |
grade_structure::get_element_icon(),
|
|
|
47 |
grade_structure::get_activity_link()
|
|
|
48 |
|
|
|
49 |
For more information see [MDL-79907](https://tracker.moodle.org/browse/MDL-79907)
|
|
|
50 |
- The external function core_grades_get_enrolled_users_for_search_widget has been fully removed.
|
|
|
51 |
|
|
|
52 |
For more information see [MDL-84036](https://tracker.moodle.org/browse/MDL-84036)
|
|
|
53 |
- The external function core_grades_get_groups_for_search_widget has been fully removed.
|
|
|
54 |
|
|
|
55 |
For more information see [MDL-84036](https://tracker.moodle.org/browse/MDL-84036)
|
|
|
56 |
|
|
|
57 |
## 4.5
|
|
|
58 |
|
|
|
59 |
### Changed
|
|
|
60 |
|
|
|
61 |
- The grade `itemname` property contained in the return structure of the following external methods is now PARAM_RAW:
|
|
|
62 |
- `core_grades_get_gradeitems`
|
|
|
63 |
- `gradereport_user_get_grade_items`
|
|
|
64 |
|
|
|
65 |
For more information see [MDL-80017](https://tracker.moodle.org/browse/MDL-80017)
|
|
|
66 |
|
|
|
67 |
### Deprecated
|
|
|
68 |
|
|
|
69 |
- The behat step definition `\behat_grade::i_confirm_in_search_within_the_gradebook_widget_exists()` has been deprecated. Please use `\behat_general::i_confirm_in_search_combobox_exists()` instead.
|
|
|
70 |
|
|
|
71 |
For more information see [MDL-80744](https://tracker.moodle.org/browse/MDL-80744)
|
|
|
72 |
- The behat step definition `\behat_grade::i_confirm_in_search_within_the_gradebook_widget_does_not_exist()` has been deprecated. Please use `\behat_general::i_confirm_in_search_combobox_does_not_exist()` instead.
|
|
|
73 |
|
|
|
74 |
For more information see [MDL-80744](https://tracker.moodle.org/browse/MDL-80744)
|
|
|
75 |
- The behat step definition `\behat_grade::i_click_on_in_search_widget()` has been deprecated. Please use `\behat_general::i_click_on_in_search_combobox()` instead.
|
|
|
76 |
|
|
|
77 |
For more information see [MDL-80744](https://tracker.moodle.org/browse/MDL-80744)
|
|
|
78 |
- The `\core_grades_renderer::group_selector()` method has been deprecated. Please use `\core_course\output\actionbar\renderer` to render a `group_selector` renderable instead.
|
|
|
79 |
|
|
|
80 |
For more information see [MDL-80745](https://tracker.moodle.org/browse/MDL-80745)
|
|
|
81 |
|
|
|
82 |
### Removed
|
|
|
83 |
|
|
|
84 |
- The following previously deprecated Behat step helper methods have been removed and can no longer be used:
|
|
|
85 |
- `\behat_grade::select_in_gradebook_navigation_selector()`
|
|
|
86 |
- `\behat_grade::select_in_gradebook_tabs()`
|
|
|
87 |
|
|
|
88 |
For more information see [MDL-74581](https://tracker.moodle.org/browse/MDL-74581)
|