MDL-78962 core/loadingicon: remove jQuery requirement in the API
[moodle.git] / grade / upgrade.txt
blobc3f099e586acee94264bcff767ea1d6342d24518
1 This file describes API changes in /grade/* ;
2 Information provided here is intended especially for developers.
4 === 4.3 ===
5 * The $showtitle parameter in the print_grade_page_head function located inside grade/lib.php has been deprecated and is not used anymore.
6 * The deprecated `core_grades_create_gradecategory` external method has been removed, in addition to the accompanying
7   `core_grades_external::create_gradecategory` methods
8 * User, Group & Grade item JS classes have been added to easily enable the creation of combobox search components.
9   Refer to the dev docs on details of how to implement this feature if desired.
10 * basewidget.js has been deprecated and its uses replaced with the new JS classes mentioned above.
11 * With the basewidget being deprecated all usages of it in core have now been migrated and the files that used it removed.
12   The basewidget itself will go through the proper deprecation process and be removed in a future version.
13 * The following webservices have had some optional parameters changed:
14   - grade/classes/external/get_enrolled_users_for_selector
15     - profileimage -> profileimageurl & profileimageurlsmall
16     - return changed to use the core_user_external::user_description() method instead of a custom baked one.
17   - grade/classes/external/get_groups_for_selector
18     - Has been relocated to core_group_external::get_groups_for_selector()
19     - groupimageurl is now available as an optional parameter to give the user an image either set or generated for the group.
21 === 4.1 ===
22 * The $importactiveurl parameter in the constructor of the core_grades\output\import_action_bar class has been deprecated and is not used anymore.
23 * The $exportactiveurl parameter in the constructor of the core_grades\output\export_action_bar class has been deprecated and is not used anymore.
24 * The select_in_gradebook_navigation_selector() function in behat_grade.php has been deprecated. Please use
25   behat_forms::i_set_the_field_to() instead.
27 === 4.0 ===
29 * The select_in_gradebook_tabs() function in behat_grade.php has been deprecated. Please use the function
30   select_in_gradebook_navigation_selector() instead.
31 * The setting $CFG->grade_navmethod setting has been completely removed because it's not required anymore. This setting
32   was used to set the type of navigation (tabs or dropdown box) used in gradebook which is now replaced with tertiary
33   navigation.
34 * The print_grade_plugin_selector() function has been deprecated. This function was used to generate and output the
35   dropdown box navigation in gradebook which is now replaced with tertiary navigation.
36 * The grade_print_tabs() function has been deprecated. This function was used to generate and output the tabs navigation
37   in gradebook which is now replaced with tertiary navigation.
38 * There is a new callback inside of grade_get_plugin_info called extend_gradebook_plugininfo
39   which allows for new tabs to be added to the gradebook.
41 === 3.7 ===
43 * The grade_cron() function has been removed. Please use grade_history_cleanup_task and grade_cron_task scheduled tasks instead.
45 === 3.6 ===
47 * The grade_plugin_return constructor now uses parameters from the
48   request as defaults, which can be overridden by parameters supplied
49   to the constructor. This may lead to a change in behaviour if only
50   some of the possible parameters are supplied.
51 * The grade_plugin_return class now tracks groupid as well as the
52   type, plugin, courseid, userid and page parameters that were tracked
53   previously. The groupid parameter will be set using
54   groups_get_course_group for the relevant course if the group is
55   otherwise unspecified.
56 * The above changes mean that code using grade_plugin_return objects
57   should generally no longer call groups_get_course_group directly,
58   but should use the gpr->groupid parameter instead.
59 * The grade_plugin_return constructor now accepts either course or
60   courseid as a parameter to specify course.