diff --git a/UPGRADING.md b/UPGRADING.md index a601e0df950..b815f4d7456 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -35,6 +35,26 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt - The CLI script used to terminate user sessions (kill_all_sessions.php) has been improved to make it safer and more flexible. A new '--run' parameter has been introduced. Without '--run', the script performs a dry run making no changes. The script now supports targeted session termination using '--for-users' parameter. For more information see [MDL-87173](https://tracker.moodle.org/browse/MDL-87173) +- The __construct() method of the confirm_action class now accepts two optional new parameters: `$title` (string) to set the dialogue's heading, and `$dialogtype` (string) to specify the visual style of the action ('delete' for displaying the danger button). + + For more information see [MDL-87281](https://tracker.moodle.org/browse/MDL-87281) +- A new path_module parameter type for routing has been created + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) +- Public require_login() function in moodlelib.php has been change to redirect users to a restricted page when the activity restrictions are visible. + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) +- There is a new Behat `toast_message` named selector to more easily assert the presence of Toast messages on the page + + For more information see [MDL-87443](https://tracker.moodle.org/browse/MDL-87443) +- Added new `options` parameter to loadingicon.js functions for displaying the icon as `overlay`. + + For more information see [MDL-87517](https://tracker.moodle.org/browse/MDL-87517) +- The Checks API now supports multiple results being returned for a single instance of `\core\check\check`. + + To support this a new `get_results(): array;` method has been created which returns an array of `\core\check\result` objects. + + For more information see [MDL-87648](https://tracker.moodle.org/browse/MDL-87648) #### Changed @@ -58,6 +78,9 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt #### Removed +- Removed `qtype_random` from core. `core\component::is_valid_plugin_name` has an additional check to ensure no-one can create a new plugin called qtype_random, as this would conflict with the support for restoring old backups. + + For more information see [MDL-73602](https://tracker.moodle.org/browse/MDL-73602) - The following AMD modules have been removed following the final deprecation process. It is no longer possible or necessary to manually register modal types. See MDL-78324 for further details. - `core/modal_registry` @@ -70,6 +93,68 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt - Removed $CFG->wwwrootendsinpublic flag to force users to configure their server accordingly. For more information see [MDL-87072](https://tracker.moodle.org/browse/MDL-87072) +- The following functions have been removed from `public/lib/deprecatedlib.php` as part of the depreciation process: - `print_course_request_buttons()` - `cron_run()` - `cron_run_scheduled_tasks()` - `cron_run_adhoc_tasks()` - `cron_run_inner_scheduled_task()` - `cron_run_inner_adhoc_task()` - `cron_set_process_title()` - `cron_trace_time_and_memory()` - `cron_prepare_core_renderer()` - `cron_setup_user()` - `badges_get_oauth2_service_options()` - `theme_is_device_locked()` - `theme_get_locked_theme_for_device()` - `random_bytes_emulate()` - `plagiarism_get_file_results()` - `plagiarism_update_status()` - `calendar_top_controls()` - `calendar_get_link_previous()` - `calendar_get_link_next()` + + For more information see [MDL-87423](https://tracker.moodle.org/browse/MDL-87423) +- The `MOD_PURPOSE_INTERFACE` constant has been removed from `public/lib/moodlelib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- The `public/lib/classes/navigation/flat_navigation_node.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- The `public/question/qengine.js` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- - The `public/lib/amd/src/addblockmodal.js` file has been removed. - The `request()` has been removed from `public/lib/amd/src/pending.js`. - The `triggerSelector()` has been removed from `public/lib/amd/src/comboboxsearch/search_combobox.js`. - The `public/lib/classes/navigation/flat_navigation.php` file has been removed. - The following methods have been removed from `public/lib/classes/output/action_menu.php`: + - `\core\output\action_menu::set_alignment()` + - `\core\output\action_menu::set_constraint()` + - The following methods have been removed from `public/lib/classes/output/core_renderer.php`: + - `\core\output\core_renderer::activity_information()` + - `\core\output\core_renderer::htmllize_file_tree()` + - The `\core\output\action_menu\link::instance` property has been removed from `public/lib/classes/output/action_menu/link.php`. - The `\core\output\renderer_base::should_display_main_logo()` has been removed from `public/lib/classes/output/renderer_base.php`. - The `\core\task\manager::ensure_adhoc_task_qos()` has been removed from `public/lib/classes/task/manager.php`. - The following methods have been removed from `public/lib/classes/task/task_base.php`: + - `\core\task\task_base::set_blocking()` + - `\core\task\task_base::is_blocking()` + - The `\core\moodlenet\activity_sender::share_activity()` has been removed from `public/lib/classes/moodlenet/activity_sender.php`. - The `\core\encryption::is_sodium_installed()` has been removed from `public/lib/classes/encryption.php`. - The `\core\hook\manager::is_deprecated_plugin_callback()` has been removed from `public/lib/classes/hook/manager.php`. - The `\core\report_helper::save_selected_report()` has been removed from `public/lib/classes/report_helper.php`. - The `\core_text::reset_caches()` has been removed from `public/lib/classes/text.php`. - The following methods have been removed from `public/lib/classes/useragent.php`: + - `\core_useragent::get_device_type_list()` + - `\core_useragent::get_device_type_theme()` + - `\core_useragent::get_device_type_cfg_var_name()` + - The `M.util.set_user_preference()` has been removed from `public/lib/javascript-static.js`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- - The `\core\output\action_menu::do_not_enhance()` has been removed from `public/lib/classes/output/action_menu.php`. - The following functions have been removed from `public/lib/javascript-static.js`: + - `M.util.init_toggle_class_on_click()` + - `M.util.focus_login_form()` + - `M.util.focus_login_error()` + - `checkall()` + - `checknone()` + - `select_all_in_element_with_id()` + - `select_all_in()` + - `deselect_all_in()` + - `confirm_if()` + - `findParentNode()` + - `filterByParent()` + - `fix_column_widths()` + - `fix_column_width()` + - `stripHTML()` + - `M.form.init_smartselect()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) +- The `\admin_setting_configselect::output_select_html()` has been removed from `public/lib/adminlib.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) +- The `relateduserid` key inside the `other` array has been removed. + + For more information see [MDL-87427](https://tracker.moodle.org/browse/MDL-87427) +- - The following files have been removed: + - `public/lib/classes/event/content_viewed.php` + - `public/lib/classes/exception/webservice_parameter_exception.php` + - The `lightbox` attribute has been removed from `public/lib/yui/src/notification/js/dialogue.js`. - The following functions have been removed from `public/lib/deprecatedlib.php`: + - `get_context_instance()` + - `can_use_rotated_text()` + - `get_system_context()` + - `print_arrow()` + + For more information see [MDL-87427](https://tracker.moodle.org/browse/MDL-87427) #### Fixed @@ -84,6 +169,32 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-87079](https://tracker.moodle.org/browse/MDL-87079) +### core_analytics + +#### Removed + +- The `\core_analytics\manager::add_builtin_models()` has been removed from `public/analytics/classes/manager.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### core_availability + +#### Removed + +- - The `public/availability/amd/src/availability_more.js` file has been removed. - The `public/availability/renderer.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### core_backup + +#### Removed + +- - The following methods have been removed from `public/backup/controller/base_controller.class.php`: + - `\base_controller::set_copy()` + - `\base_controller::get_copy()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### core_badges #### Changed @@ -98,6 +209,32 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-85621](https://tracker.moodle.org/browse/MDL-85621) +#### Removed + +- - The following methods have been removed from `public/badges/renderer.php`: + - `\core_badges_renderer::print_badge_table_actions()` + - `\core_badges_renderer::render_badge_collection()` + - `\core_badges_renderer::render_badge_management()` + - `\core_badges_renderer::render_badge_recipients()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### core_block + +#### Removed + +- Removed block_activity_modules from Moodle 5.2. + + For more information see [MDL-86832](https://tracker.moodle.org/browse/MDL-86832) + +### core_calendar + +#### Removed + +- - The `calendar_add_event_metadata()` has been removed from `public/calendar/deprecatedlib.php`. - The `\core_external\external_api\calendar_information::prepare_for_view()` has been removed from `public/calendar/lib.php`. - The `\core_calendar_renderer::event()` has been removed from `public/calendar/renderer.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ### core_completion #### Changed @@ -138,6 +275,18 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86860](https://tracker.moodle.org/browse/MDL-86860) +#### Removed + +- - The `\core_course_bulk_activity_completion_renderer::edit_default_completion()` has been removed from `public/course/classes/output/bulk_activity_completion_renderer.php`. - The `\core_course\reportbuilder\local\formatters\enrolment::enrolment_name()` has been removed from `public/course/classes/reportbuilder/local/formatters/enrolment.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- The `replaceSectionActionItem()` has been removed from `public/course/amd/src/actions.js`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) +- - The `\core_courseformat\output\section_renderer\core_course_renderer::course_category_tree_category()` has removed in `public/course/renderer.php`. + + For more information see [MDL-87427](https://tracker.moodle.org/browse/MDL-87427) + ### core_courseformat #### Added @@ -157,6 +306,12 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt - Added the `set_visibility` method to the `core_courseformat\sectionactions` class. To optimize performance, this method does not return the list of affected resources, avoiding unnecessary database queries since the return value is unused. For more information see [MDL-86861](https://tracker.moodle.org/browse/MDL-86861) +- A new restricted page has been created using routing for users to access the activity information. Only the activities with visible restrictions will be available. + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) +- Public course_section_cm_unavailable_error_message() function has been changed to return the same message for all restricted activities. + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) #### Changed @@ -179,6 +334,41 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86861](https://tracker.moodle.org/browse/MDL-86861) +#### Removed + +- - The `\core_courseformat\output\local\content\section\availability::availability_info()` has been removed from `public/course/format/classes/output/local/content/section/availability.php`. - The `\core_courseformat\base::get_section_number()` has been removed from `public/course/format/classes/base.php`. - The `\core_courseformat\stateactions::section_move()` has been removed from `public/course/format/classes/stateactions.php`. - The `\core_courseformat\output\section_renderer\core_course_renderer::render_activity_information()` has been removed from `public/course/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### core_enrol + +#### Removed + +- - The `\enrol_plugin::update_communication()` has been removed from `public/lib/enrollib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### core_files + +#### Removed + +- The following methods have been removed from `public/lib/filestorage/file_storage.php`: - `\file_storage::content_exists()` - `\file_storage::try_content_recovery()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### core_form + +#### Removed + +- - The following methods have been removed from `public/lib/antivirus/clamav/classes/scanner.php`: + - `\antivirus_clamav\scanner::scan_data_execute_unixsocket()` + - `\antivirus_clamav\scanner::scan_file_execute_unixsocket()` + - The following methods have been removed from `public/lib/form/classes/filetypes_util.php`: + - `\core_form\filetypes_util::is_whitelisted()` + - `\core_form\filetypes_util::get_not_whitelisted()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ### core_grades #### Removed @@ -186,6 +376,23 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt - In Moodle 4.2, the legacy Gradebook base widget from 4.1 has been removed and replaced with a simpler class-based system due to a breaking change and excessive complexity in the old pattern. The files `core/grades/basewidget.js` and templates in `grade/templates/searchwidget/` have been deleted, with minimal expected third-party impact. For more information see [MDL-78325](https://tracker.moodle.org/browse/MDL-78325) +- - The `\grade_report::get_lang_string()` has been removed from `public/grade/report/lib.php`. - The following methods have been removed from `public/grade/tests/behat/behat_grade.php`: + - `\behat_grade::select_in_gradebook_tabs()` + - `\behat_grade::select_in_gradebook_navigation_selector()` + - The following methods have been removed from `public/grade/lib.php`: + - `\grade_structure::get_element_icon()` + - `\grade_structure::get_element_type_string()` + - `\grade_structure::get_element_header()` + - `\grade_structure::get_activity_link()` + - `\grade_structure::get_grade_analysis_icon()` + - `\grade_structure::get_reset_icon()` + - `\grade_structure::get_edit_icon()` + - `\grade_structure::get_hiding_icon()` + - `\grade_structure::get_locking_icon()` + - `\grade_structure::get_calculation_icon()` + - `\grade_helper::get_lang_string()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) ### core_group @@ -195,6 +402,41 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-81514](https://tracker.moodle.org/browse/MDL-81514) +### core_message + +#### Removed + +- - The following methods have been removed from `public/message/classes/api.php`: + - `\core_message\api::search_users_in_course()` + - `\core_message\api::search_users()` + - `\core_message\api::get_contacts()` + - `\core_message\api::get_contacts_with_unread_message_count()` + - `\core_message\api::get_non_contacts_with_unread_message_count()` + - `\core_message\api::get_messages()` + - `\core_message\api::get_most_recent_message()` + - `\core_message\api::get_profile()` + - `\core_message\api::delete_conversation()` + - `\core_message\api::mark_all_read_for_user()` + - `\core_message\api::can_post_message()` + - `\core_message\api::is_user_non_contact_blocked()` + - `\core_message\api::is_user_blocked()` + - `\core_message\api::get_individual_conversations_between_users()` + - `\core_message\api::create_conversation_between_users()` + - The following methods have been removed from `public/message/classes/helper.php`: + - `\core_message\helper::get_messages()` + - `\core_message\helper::create_messages()` + - `\core_message\helper::get_conversations_legacy_formatter()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### core_mnet + +#### Removed + +- The `\mnet_peer::get_public_key()` has been removed from `public/mnet/peer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### core_question #### Deprecated @@ -203,6 +445,15 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86798](https://tracker.moodle.org/browse/MDL-86798) +#### Removed + +- - The following methods have been removed from `public/question/renderer.php`: + - `\core_question_bank_renderer::render_category_condition()` + - `\core_question_bank_renderer::render_category_condition_advanced()` + - `\core_question_bank_renderer::render_hidden_condition_advanced()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + #### Fixed - In order to prevent re-use of question version numbers after a version is deleted, the `nextversion` column was added to `question_bank_entries`. This serves as a counter incremented each time a version is created. @@ -248,6 +499,36 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-87000](https://tracker.moodle.org/browse/MDL-87000) +#### Removed + +- - The `\core_reportbuilder\local\helpers\audience::get_all_audiences_menu_types()` has been removed from `public/reportbuilder/classes/local/helpers/audience.php`. - The `\core_reportbuilder\local\entities\base::get_default_table_aliases()` has been removed from `public/reportbuilder/classes/local/entities/base.php`. - The `\core_reportbuilder\local\helpers\report::get_available_columns()` has been removed from `public/reportbuilder/classes/local/helpers/report.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### core_repository + +#### Removed + +- The `\repository::get_file_size()` has been removed from `public/repository/lib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### core_tag + +#### Removed + +- The `public/tag/classes/manage_table.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### core_user + +#### Removed + +- - The `\profile_field_base::profile_field_base()` has been removed from `public/user/profile/lib.php`. - The `\core_user_renderer::unified_filter()` has been removed from `public/user/renderer.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ### core_webservice #### Changed @@ -256,6 +537,97 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-87034](https://tracker.moodle.org/browse/MDL-87034) +### auth_ldap + +#### Removed + +- - The following methods have been removed from `auth/ldap/lib.php`: + - `\auth_plugin_ldap::auth_plugin_ldap()` + - `\auth_plugin_ldap::iscreator()` + - The `public/auth/ldap/cli/sync_users.php` file has been removed. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### enrol_self + +#### Removed + +- The `\enrol_self_plugin::get_welcome_email_contact()` has been removed from `public/enrol/self/lib.php` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### gradereport_grader + +#### Removed + +- - The `\behat_gradereport_grader::get_grade_item_id()` has been removed from `public/grade/report/grader/tests/behat/behat_gradereport_grader.php`. - The following methods have been removed from `public/grade/report/grader/lib.php`: + - `\grade_report_grader::get_left_icons_row()` + - `\grade_report_grader::get_right_icons_row()` + - `\grade_report_grader::get_right_avg_row()` + - `\grade_report_grader::get_icons()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### gradereport_singleview + +#### Removed + +- - The `public/grade/report/singleview/classes/local/screen/select.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### mod_assign + +#### Removed + +- - The `ASSIGN_ATTEMPT_REOPEN_METHOD_NONE` constant has been removed from the `public/mod/assign/locallib.php`. - The `public/mod/assign/renderer.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### mod_book + +#### Removed + +- The `book_get_nav_classes()` has been removed from `public/mod/book/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### mod_choice + +#### Changed + +- Undo the deletion of public/mod/choice/classes/event/answer_updated.php file. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +#### Removed + +- - The following files have been removed: + - `public/mod/choice/classes/event/answer_submitted.php` + - `public/mod/choice/classes/event/answer_updated.php` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### mod_data + +#### Removed + +- - The following functions have been removed from `public/mod/data/deprecatedlib.php`: + - `data_print_template()` + - `data_preset_name()` + - `data_get_available_presets()` + - `data_get_available_site_presets()` + - `data_delete_site_preset()` + - `data_presets_save()` + - `data_presets_generate_xml()` + - `data_presets_export()` + - `data_user_can_delete_preset()` + - `data_view()` + - `is_directory_a_preset()` + - The `\mod_data_renderer::import_setting_mappings()` has been removed from `public/mod/data/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### mod_feedback #### Deprecated @@ -264,6 +636,22 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86607](https://tracker.moodle.org/browse/MDL-86607) +#### Removed + +- - The following files have been removed: + - `public/mod/feedback/edit_form.php`. + - `public/mod/feedback/use_templ_form.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### mod_folder + +#### Removed + +- - The `\mod_folder_renderer::htmllize_tree()` has been removed from `public/mod/folder/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### mod_forum #### Deprecated @@ -272,6 +660,12 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86699](https://tracker.moodle.org/browse/MDL-86699) +#### Removed + +- The `forum_print_discussion_header()` has been removed from `public/mod/forum/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### mod_glossary #### Added @@ -280,6 +674,32 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86960](https://tracker.moodle.org/browse/MDL-86960) +### mod_imscp + +#### Removed + +- The `imscp_libxml_disable_entity_loader()` has been removed from `public/mod/imscp/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### mod_lesson + +#### Removed + +- - The following files have been removed: + - `public/mod/lesson/classes/event/highscore_added.php` + - `public/mod/lesson/classes/event/highscores_viewed.php` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### mod_lti + +#### Removed + +- The `lti_libxml_disable_entity_loader()` has been removed from `public/mod/lti/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### mod_quiz #### Changed @@ -288,13 +708,57 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86916](https://tracker.moodle.org/browse/MDL-86916) +#### Removed + +- - The following functions have been removed from `public/mod/quiz/deprecatedlib.php`: + - `quiz_has_question_use()` + - `quiz_update_sumgrades()` + - `quiz_update_all_attempt_sumgrades()` + - `quiz_update_all_final_grades()` + - `quiz_set_grade()` + - `quiz_save_best_grade()` + - `quiz_calculate_best_grade()` + - `quiz_calculate_best_attempt()` + - `quiz_delete_override()` + - `quiz_delete_all_overrides()` + - `quiz_add_random_questions()` + - The following functions have been removed from `public/mod/quiz/classes/output/renderer.php`: + - `\mod_quiz\output\renderer::no_questions_message()` + - `\mod_quiz\output\renderer::render_mod_quiz_links_to_other_attempts()` + - `\mod_quiz\output\renderer::render_quiz_nav_question_button()` + - `\mod_quiz\output\renderer::render_quiz_nav_section_heading()` + - The following functions have been removed from `public/mod/quiz/classes/local/structure/slot_random.php`: + - `\mod_quiz\local\structure\slot_random::set_tags()` + - `\mod_quiz\local\structure\slot_random::set_tags_by_id()` + - The `\mod_quiz\structure::is_display_number_customised()` has been removed from `public/mod/quiz/classes/structure.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### mod_subsection #### Added -- A new scheduled task, `remove_existing_descriptions`, has been added. Once enabled, this task will remove the descriptions for all existing subsection instances. +- A new ad-hoc task, `migrate_subsection_descriptions_task`, has been added. This task will migrate all existing subsection descriptions into Text and media. To ensure system stability, the task processes records in batches of 100 and clears the original description upon successful migration. - For more information see [MDL-87280](https://tracker.moodle.org/browse/MDL-87280) + For more information see [MDL-87281](https://tracker.moodle.org/browse/MDL-87281) + +### mod_wiki + +#### Removed + +- The `\mod_wiki_renderer::wiki_info()` has been removed from `public/mod/wiki/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### qbank + +#### Removed + +- - The following methods have been removed from `public/question/engine/bank.php`: + - `\question_finder::get_questions_from_categories_with_usage_counts()` + - `\question_finder::get_questions_from_categories_and_tags_with_usage_counts()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) ### qbank_columnsortorder @@ -306,6 +770,91 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt For more information see [MDL-86855](https://tracker.moodle.org/browse/MDL-86855) +### qbank_history + +#### Removed + +- The `\qbank_history\question_history_view::display_advanced_search_form()` has been removed from `public/question/bank/history/classes/question_history_view.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### qbank_managecategories + +#### Removed + +- - The following methods have been removed from `public/question/bank/managecategories/classes/category_condition.php`: + - `\qbank_managecategories\category_condition::display_options()` + - `\qbank_managecategories\category_condition::display_options_adv()` + - `\qbank_managecategories\category_condition::display_category_form()` + - `\qbank_managecategories\category_condition::print_choose_category_message()` + - `\qbank_managecategories\category_condition::get_current_category()` + - `\qbank_managecategories\category_condition::print_category_info()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### qbank_statistics + +#### Removed + +- - The following methods have been removed from `public/question/bank/statistics/classes/helper.php`: + - `\qbank_statistics\helper::calculate_average_question_facility()` + - `\qbank_statistics\helper::calculate_average_question_discriminative_efficiency()` + - `\qbank_statistics\helper::calculate_average_question_discrimination_index()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### report_eventlist + +#### Removed + +- - The following methods have been removed from `public/report/eventlist/classes/list_generator.php`: + - `\report_eventlist_list_generator::get_core_events_list()` + - `\report_eventlist_list_generator::get_non_core_event_list()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### report_log + +#### Removed + +- The `public/report/log/graph.php` has been removed. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### repository_onedrive + +#### Removed + +- - The following methods have been removed from `public/repository/onedrive/lib.php`: + - `\repository_onedrive::can_import_skydrive_files()` + - `\repository_onedrive::import_skydrive_files()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### scormreport_graphs + +#### Removed + +- The `public/mod/scorm/report/graphs/graph.php` has been removed. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### theme_boost + +#### Removed + +- - The `public/theme/boost/templates/flat_navigation.mustache` file has been removed. - The `public/theme/boost/templates/nav-drawer.mustache` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + +### tool_mfa + +#### Removed + +- The `\tool_mfa\output\renderer::setup_factor()` has been removed from `public/admin/tool/mfa/classes/output/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### tool_mobile #### Changed diff --git a/public/admin/tool/mfa/UPGRADING.md b/public/admin/tool/mfa/UPGRADING.md index 4206777a98b..f42de74f8c1 100644 --- a/public/admin/tool/mfa/UPGRADING.md +++ b/public/admin/tool/mfa/UPGRADING.md @@ -1,5 +1,13 @@ # tool_mfa Upgrade notes +## 5.2dev + +### Removed + +- The `\tool_mfa\output\renderer::setup_factor()` has been removed from `public/admin/tool/mfa/classes/output/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Added diff --git a/public/analytics/UPGRADING.md b/public/analytics/UPGRADING.md index 72a7824d45a..03c702d5dda 100644 --- a/public/analytics/UPGRADING.md +++ b/public/analytics/UPGRADING.md @@ -1,5 +1,13 @@ # core_analytics (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- The `\core_analytics\manager::add_builtin_models()` has been removed from `public/analytics/classes/manager.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.0 ### Removed diff --git a/public/auth/ldap/UPGRADING.md b/public/auth/ldap/UPGRADING.md new file mode 100644 index 00000000000..f0694364eb3 --- /dev/null +++ b/public/auth/ldap/UPGRADING.md @@ -0,0 +1,13 @@ +# auth_ldap Upgrade notes + +## 5.2dev + +### Removed + +- - The following methods have been removed from `auth/ldap/lib.php`: + - `\auth_plugin_ldap::auth_plugin_ldap()` + - `\auth_plugin_ldap::iscreator()` + - The `public/auth/ldap/cli/sync_users.php` file has been removed. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + diff --git a/public/availability/UPGRADING.md b/public/availability/UPGRADING.md index 281ce62ac47..55ad8cac47e 100644 --- a/public/availability/UPGRADING.md +++ b/public/availability/UPGRADING.md @@ -1,5 +1,13 @@ # core_availability (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- - The `public/availability/amd/src/availability_more.js` file has been removed. - The `public/availability/renderer.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 4.5 ### Removed diff --git a/public/backup/util/ui/UPGRADING.md b/public/backup/util/ui/UPGRADING.md index 22a5739ef66..a02a4eaaed0 100644 --- a/public/backup/util/ui/UPGRADING.md +++ b/public/backup/util/ui/UPGRADING.md @@ -1,5 +1,15 @@ # core_backup (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/backup/controller/base_controller.class.php`: + - `\base_controller::set_copy()` + - `\base_controller::get_copy()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Added diff --git a/public/badges/UPGRADING.md b/public/badges/UPGRADING.md index a7e15df762f..2b6e03aec06 100644 --- a/public/badges/UPGRADING.md +++ b/public/badges/UPGRADING.md @@ -14,6 +14,16 @@ For more information see [MDL-85621](https://tracker.moodle.org/browse/MDL-85621) +### Removed + +- - The following methods have been removed from `public/badges/renderer.php`: + - `\core_badges_renderer::print_badge_table_actions()` + - `\core_badges_renderer::render_badge_collection()` + - `\core_badges_renderer::render_badge_management()` + - `\core_badges_renderer::render_badge_recipients()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/blocks/UPGRADING.md b/public/blocks/UPGRADING.md index a7ab28faf08..b4ab1fbedf7 100644 --- a/public/blocks/UPGRADING.md +++ b/public/blocks/UPGRADING.md @@ -1,5 +1,13 @@ # core_block (subsystem / plugintype) Upgrade notes +## 5.2dev + +### Removed + +- Removed block_activity_modules from Moodle 5.2. + + For more information see [MDL-86832](https://tracker.moodle.org/browse/MDL-86832) + ## 5.1 ### Changed diff --git a/public/calendar/UPGRADING.md b/public/calendar/UPGRADING.md index 22d6d6e84cb..d8749bff2b8 100644 --- a/public/calendar/UPGRADING.md +++ b/public/calendar/UPGRADING.md @@ -1,5 +1,13 @@ # core_calendar (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- - The `calendar_add_event_metadata()` has been removed from `public/calendar/deprecatedlib.php`. - The `\core_external\external_api\calendar_information::prepare_for_view()` has been removed from `public/calendar/lib.php`. - The `\core_calendar_renderer::event()` has been removed from `public/calendar/renderer.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.0 ### Deprecated diff --git a/public/course/UPGRADING.md b/public/course/UPGRADING.md index 5e068781c2d..01c855c420c 100644 --- a/public/course/UPGRADING.md +++ b/public/course/UPGRADING.md @@ -32,6 +32,18 @@ For more information see [MDL-86860](https://tracker.moodle.org/browse/MDL-86860) +### Removed + +- - The `\core_course_bulk_activity_completion_renderer::edit_default_completion()` has been removed from `public/course/classes/output/bulk_activity_completion_renderer.php`. - The `\core_course\reportbuilder\local\formatters\enrolment::enrolment_name()` has been removed from `public/course/classes/reportbuilder/local/formatters/enrolment.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- The `replaceSectionActionItem()` has been removed from `public/course/amd/src/actions.js`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) +- - The `\core_courseformat\output\section_renderer\core_course_renderer::course_category_tree_category()` has removed in `public/course/renderer.php`. + + For more information see [MDL-87427](https://tracker.moodle.org/browse/MDL-87427) + ## 5.1 ### Added diff --git a/public/course/format/UPGRADING.md b/public/course/format/UPGRADING.md index cd1de0df0de..96f36a8c816 100644 --- a/public/course/format/UPGRADING.md +++ b/public/course/format/UPGRADING.md @@ -19,6 +19,12 @@ - Added the `set_visibility` method to the `core_courseformat\sectionactions` class. To optimize performance, this method does not return the list of affected resources, avoiding unnecessary database queries since the return value is unused. For more information see [MDL-86861](https://tracker.moodle.org/browse/MDL-86861) +- A new restricted page has been created using routing for users to access the activity information. Only the activities with visible restrictions will be available. + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) +- Public course_section_cm_unavailable_error_message() function has been changed to return the same message for all restricted activities. + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) ### Changed @@ -41,6 +47,12 @@ For more information see [MDL-86861](https://tracker.moodle.org/browse/MDL-86861) +### Removed + +- - The `\core_courseformat\output\local\content\section\availability::availability_info()` has been removed from `public/course/format/classes/output/local/content/section/availability.php`. - The `\core_courseformat\base::get_section_number()` has been removed from `public/course/format/classes/base.php`. - The `\core_courseformat\stateactions::section_move()` has been removed from `public/course/format/classes/stateactions.php`. - The `\core_courseformat\output\section_renderer\core_course_renderer::render_activity_information()` has been removed from `public/course/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/enrol/UPGRADING.md b/public/enrol/UPGRADING.md index e31a2786397..165c1e214d8 100644 --- a/public/enrol/UPGRADING.md +++ b/public/enrol/UPGRADING.md @@ -1,5 +1,13 @@ # core_enrol (subsystem / plugintype) Upgrade notes +## 5.2dev + +### Removed + +- - The `\enrol_plugin::update_communication()` has been removed from `public/lib/enrollib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Added diff --git a/public/enrol/self/UPGRADING.md b/public/enrol/self/UPGRADING.md index acca5b6d3f1..084b58b20d0 100644 --- a/public/enrol/self/UPGRADING.md +++ b/public/enrol/self/UPGRADING.md @@ -1,5 +1,13 @@ # enrol_self Upgrade notes +## 5.2dev + +### Removed + +- The `\enrol_self_plugin::get_welcome_email_contact()` has been removed from `public/enrol/self/lib.php` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Deprecated diff --git a/public/files/UPGRADING.md b/public/files/UPGRADING.md index f543019f2e7..35b68caaeef 100644 --- a/public/files/UPGRADING.md +++ b/public/files/UPGRADING.md @@ -1,5 +1,13 @@ # core_files (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- The following methods have been removed from `public/lib/filestorage/file_storage.php`: - `\file_storage::content_exists()` - `\file_storage::try_content_recovery()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.0 ### Added diff --git a/public/grade/UPGRADING.md b/public/grade/UPGRADING.md index d5ef6571bc3..9e9ab57b70b 100644 --- a/public/grade/UPGRADING.md +++ b/public/grade/UPGRADING.md @@ -7,6 +7,23 @@ - In Moodle 4.2, the legacy Gradebook base widget from 4.1 has been removed and replaced with a simpler class-based system due to a breaking change and excessive complexity in the old pattern. The files `core/grades/basewidget.js` and templates in `grade/templates/searchwidget/` have been deleted, with minimal expected third-party impact. For more information see [MDL-78325](https://tracker.moodle.org/browse/MDL-78325) +- - The `\grade_report::get_lang_string()` has been removed from `public/grade/report/lib.php`. - The following methods have been removed from `public/grade/tests/behat/behat_grade.php`: + - `\behat_grade::select_in_gradebook_tabs()` + - `\behat_grade::select_in_gradebook_navigation_selector()` + - The following methods have been removed from `public/grade/lib.php`: + - `\grade_structure::get_element_icon()` + - `\grade_structure::get_element_type_string()` + - `\grade_structure::get_element_header()` + - `\grade_structure::get_activity_link()` + - `\grade_structure::get_grade_analysis_icon()` + - `\grade_structure::get_reset_icon()` + - `\grade_structure::get_edit_icon()` + - `\grade_structure::get_hiding_icon()` + - `\grade_structure::get_locking_icon()` + - `\grade_structure::get_calculation_icon()` + - `\grade_helper::get_lang_string()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) ## 5.1 diff --git a/public/grade/report/grader/UPGRADING.md b/public/grade/report/grader/UPGRADING.md index f62af4ba1c4..4bdd11f8aa7 100644 --- a/public/grade/report/grader/UPGRADING.md +++ b/public/grade/report/grader/UPGRADING.md @@ -1,5 +1,17 @@ # gradereport_grader Upgrade notes +## 5.2dev + +### Removed + +- - The `\behat_gradereport_grader::get_grade_item_id()` has been removed from `public/grade/report/grader/tests/behat/behat_gradereport_grader.php`. - The following methods have been removed from `public/grade/report/grader/lib.php`: + - `\grade_report_grader::get_left_icons_row()` + - `\grade_report_grader::get_right_icons_row()` + - `\grade_report_grader::get_right_avg_row()` + - `\grade_report_grader::get_icons()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Removed diff --git a/public/grade/report/singleview/UPGRADING.md b/public/grade/report/singleview/UPGRADING.md index 348fd85b34c..414085c7456 100644 --- a/public/grade/report/singleview/UPGRADING.md +++ b/public/grade/report/singleview/UPGRADING.md @@ -1,5 +1,13 @@ # gradereport_singleview Upgrade notes +## 5.2dev + +### Removed + +- - The `public/grade/report/singleview/classes/local/screen/select.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/lib/UPGRADING.md b/public/lib/UPGRADING.md index b89c2b4b122..2b1acbad08b 100644 --- a/public/lib/UPGRADING.md +++ b/public/lib/UPGRADING.md @@ -27,6 +27,26 @@ - The CLI script used to terminate user sessions (kill_all_sessions.php) has been improved to make it safer and more flexible. A new '--run' parameter has been introduced. Without '--run', the script performs a dry run making no changes. The script now supports targeted session termination using '--for-users' parameter. For more information see [MDL-87173](https://tracker.moodle.org/browse/MDL-87173) +- The __construct() method of the confirm_action class now accepts two optional new parameters: `$title` (string) to set the dialogue's heading, and `$dialogtype` (string) to specify the visual style of the action ('delete' for displaying the danger button). + + For more information see [MDL-87281](https://tracker.moodle.org/browse/MDL-87281) +- A new path_module parameter type for routing has been created + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) +- Public require_login() function in moodlelib.php has been change to redirect users to a restricted page when the activity restrictions are visible. + + For more information see [MDL-87283](https://tracker.moodle.org/browse/MDL-87283) +- There is a new Behat `toast_message` named selector to more easily assert the presence of Toast messages on the page + + For more information see [MDL-87443](https://tracker.moodle.org/browse/MDL-87443) +- Added new `options` parameter to loadingicon.js functions for displaying the icon as `overlay`. + + For more information see [MDL-87517](https://tracker.moodle.org/browse/MDL-87517) +- The Checks API now supports multiple results being returned for a single instance of `\core\check\check`. + + To support this a new `get_results(): array;` method has been created which returns an array of `\core\check\result` objects. + + For more information see [MDL-87648](https://tracker.moodle.org/browse/MDL-87648) ### Changed @@ -50,6 +70,9 @@ ### Removed +- Removed `qtype_random` from core. `core\component::is_valid_plugin_name` has an additional check to ensure no-one can create a new plugin called qtype_random, as this would conflict with the support for restoring old backups. + + For more information see [MDL-73602](https://tracker.moodle.org/browse/MDL-73602) - The following AMD modules have been removed following the final deprecation process. It is no longer possible or necessary to manually register modal types. See MDL-78324 for further details. - `core/modal_registry` @@ -62,6 +85,68 @@ - Removed $CFG->wwwrootendsinpublic flag to force users to configure their server accordingly. For more information see [MDL-87072](https://tracker.moodle.org/browse/MDL-87072) +- The following functions have been removed from `public/lib/deprecatedlib.php` as part of the depreciation process: - `print_course_request_buttons()` - `cron_run()` - `cron_run_scheduled_tasks()` - `cron_run_adhoc_tasks()` - `cron_run_inner_scheduled_task()` - `cron_run_inner_adhoc_task()` - `cron_set_process_title()` - `cron_trace_time_and_memory()` - `cron_prepare_core_renderer()` - `cron_setup_user()` - `badges_get_oauth2_service_options()` - `theme_is_device_locked()` - `theme_get_locked_theme_for_device()` - `random_bytes_emulate()` - `plagiarism_get_file_results()` - `plagiarism_update_status()` - `calendar_top_controls()` - `calendar_get_link_previous()` - `calendar_get_link_next()` + + For more information see [MDL-87423](https://tracker.moodle.org/browse/MDL-87423) +- The `MOD_PURPOSE_INTERFACE` constant has been removed from `public/lib/moodlelib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- The `public/lib/classes/navigation/flat_navigation_node.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- The `public/question/qengine.js` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- - The `public/lib/amd/src/addblockmodal.js` file has been removed. - The `request()` has been removed from `public/lib/amd/src/pending.js`. - The `triggerSelector()` has been removed from `public/lib/amd/src/comboboxsearch/search_combobox.js`. - The `public/lib/classes/navigation/flat_navigation.php` file has been removed. - The following methods have been removed from `public/lib/classes/output/action_menu.php`: + - `\core\output\action_menu::set_alignment()` + - `\core\output\action_menu::set_constraint()` + - The following methods have been removed from `public/lib/classes/output/core_renderer.php`: + - `\core\output\core_renderer::activity_information()` + - `\core\output\core_renderer::htmllize_file_tree()` + - The `\core\output\action_menu\link::instance` property has been removed from `public/lib/classes/output/action_menu/link.php`. - The `\core\output\renderer_base::should_display_main_logo()` has been removed from `public/lib/classes/output/renderer_base.php`. - The `\core\task\manager::ensure_adhoc_task_qos()` has been removed from `public/lib/classes/task/manager.php`. - The following methods have been removed from `public/lib/classes/task/task_base.php`: + - `\core\task\task_base::set_blocking()` + - `\core\task\task_base::is_blocking()` + - The `\core\moodlenet\activity_sender::share_activity()` has been removed from `public/lib/classes/moodlenet/activity_sender.php`. - The `\core\encryption::is_sodium_installed()` has been removed from `public/lib/classes/encryption.php`. - The `\core\hook\manager::is_deprecated_plugin_callback()` has been removed from `public/lib/classes/hook/manager.php`. - The `\core\report_helper::save_selected_report()` has been removed from `public/lib/classes/report_helper.php`. - The `\core_text::reset_caches()` has been removed from `public/lib/classes/text.php`. - The following methods have been removed from `public/lib/classes/useragent.php`: + - `\core_useragent::get_device_type_list()` + - `\core_useragent::get_device_type_theme()` + - `\core_useragent::get_device_type_cfg_var_name()` + - The `M.util.set_user_preference()` has been removed from `public/lib/javascript-static.js`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) +- - The `\core\output\action_menu::do_not_enhance()` has been removed from `public/lib/classes/output/action_menu.php`. - The following functions have been removed from `public/lib/javascript-static.js`: + - `M.util.init_toggle_class_on_click()` + - `M.util.focus_login_form()` + - `M.util.focus_login_error()` + - `checkall()` + - `checknone()` + - `select_all_in_element_with_id()` + - `select_all_in()` + - `deselect_all_in()` + - `confirm_if()` + - `findParentNode()` + - `filterByParent()` + - `fix_column_widths()` + - `fix_column_width()` + - `stripHTML()` + - `M.form.init_smartselect()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) +- The `\admin_setting_configselect::output_select_html()` has been removed from `public/lib/adminlib.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) +- The `relateduserid` key inside the `other` array has been removed. + + For more information see [MDL-87427](https://tracker.moodle.org/browse/MDL-87427) +- - The following files have been removed: + - `public/lib/classes/event/content_viewed.php` + - `public/lib/classes/exception/webservice_parameter_exception.php` + - The `lightbox` attribute has been removed from `public/lib/yui/src/notification/js/dialogue.js`. - The following functions have been removed from `public/lib/deprecatedlib.php`: + - `get_context_instance()` + - `can_use_rotated_text()` + - `get_system_context()` + - `print_arrow()` + + For more information see [MDL-87427](https://tracker.moodle.org/browse/MDL-87427) ### Fixed diff --git a/public/lib/form/UPGRADING.md b/public/lib/form/UPGRADING.md index 4d096849ae2..08de2a2e33e 100644 --- a/public/lib/form/UPGRADING.md +++ b/public/lib/form/UPGRADING.md @@ -1,5 +1,18 @@ # core_form (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/lib/antivirus/clamav/classes/scanner.php`: + - `\antivirus_clamav\scanner::scan_data_execute_unixsocket()` + - `\antivirus_clamav\scanner::scan_file_execute_unixsocket()` + - The following methods have been removed from `public/lib/form/classes/filetypes_util.php`: + - `\core_form\filetypes_util::is_whitelisted()` + - `\core_form\filetypes_util::get_not_whitelisted()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.0 ### Changed diff --git a/public/message/UPGRADING.md b/public/message/UPGRADING.md index e545b4fe765..4ce37ffe700 100644 --- a/public/message/UPGRADING.md +++ b/public/message/UPGRADING.md @@ -1,5 +1,32 @@ # core_message (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/message/classes/api.php`: + - `\core_message\api::search_users_in_course()` + - `\core_message\api::search_users()` + - `\core_message\api::get_contacts()` + - `\core_message\api::get_contacts_with_unread_message_count()` + - `\core_message\api::get_non_contacts_with_unread_message_count()` + - `\core_message\api::get_messages()` + - `\core_message\api::get_most_recent_message()` + - `\core_message\api::get_profile()` + - `\core_message\api::delete_conversation()` + - `\core_message\api::mark_all_read_for_user()` + - `\core_message\api::can_post_message()` + - `\core_message\api::is_user_non_contact_blocked()` + - `\core_message\api::is_user_blocked()` + - `\core_message\api::get_individual_conversations_between_users()` + - `\core_message\api::create_conversation_between_users()` + - The following methods have been removed from `public/message/classes/helper.php`: + - `\core_message\helper::get_messages()` + - `\core_message\helper::create_messages()` + - `\core_message\helper::get_conversations_legacy_formatter()` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.1 ### Added diff --git a/public/mnet/UPGRADING.md b/public/mnet/UPGRADING.md index d6288807073..21302e3f984 100644 --- a/public/mnet/UPGRADING.md +++ b/public/mnet/UPGRADING.md @@ -1,5 +1,13 @@ # core_mnet (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- The `\mnet_peer::get_public_key()` has been removed from `public/mnet/peer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Removed diff --git a/public/mod/assign/UPGRADING.md b/public/mod/assign/UPGRADING.md index e80c3a4a4b4..3186b958fa6 100644 --- a/public/mod/assign/UPGRADING.md +++ b/public/mod/assign/UPGRADING.md @@ -1,5 +1,13 @@ # mod_assign Upgrade notes +## 5.2dev + +### Removed + +- - The `ASSIGN_ATTEMPT_REOPEN_METHOD_NONE` constant has been removed from the `public/mod/assign/locallib.php`. - The `public/mod/assign/renderer.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/mod/book/UPGRADING.md b/public/mod/book/UPGRADING.md index 18d85a0a26f..2f5e83e2930 100644 --- a/public/mod/book/UPGRADING.md +++ b/public/mod/book/UPGRADING.md @@ -1,5 +1,13 @@ # mod_book Upgrade notes +## 5.2dev + +### Removed + +- The `book_get_nav_classes()` has been removed from `public/mod/book/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Deprecated diff --git a/public/mod/choice/UPGRADING.md b/public/mod/choice/UPGRADING.md index e1a7977a754..3388dc2cdc6 100644 --- a/public/mod/choice/UPGRADING.md +++ b/public/mod/choice/UPGRADING.md @@ -1,5 +1,21 @@ # mod_choice Upgrade notes +## 5.2dev + +### Changed + +- Undo the deletion of public/mod/choice/classes/event/answer_updated.php file. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + +### Removed + +- - The following files have been removed: + - `public/mod/choice/classes/event/answer_submitted.php` + - `public/mod/choice/classes/event/answer_updated.php` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.1 ### Added diff --git a/public/mod/data/UPGRADING.md b/public/mod/data/UPGRADING.md index 17c888e9c15..ffcc96d79ff 100644 --- a/public/mod/data/UPGRADING.md +++ b/public/mod/data/UPGRADING.md @@ -1,5 +1,25 @@ # mod_data Upgrade notes +## 5.2dev + +### Removed + +- - The following functions have been removed from `public/mod/data/deprecatedlib.php`: + - `data_print_template()` + - `data_preset_name()` + - `data_get_available_presets()` + - `data_get_available_site_presets()` + - `data_delete_site_preset()` + - `data_presets_save()` + - `data_presets_generate_xml()` + - `data_presets_export()` + - `data_user_can_delete_preset()` + - `data_view()` + - `is_directory_a_preset()` + - The `\mod_data_renderer::import_setting_mappings()` has been removed from `public/mod/data/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/mod/feedback/UPGRADING.md b/public/mod/feedback/UPGRADING.md index a8f568012e4..1f725a2c457 100644 --- a/public/mod/feedback/UPGRADING.md +++ b/public/mod/feedback/UPGRADING.md @@ -8,6 +8,14 @@ For more information see [MDL-86607](https://tracker.moodle.org/browse/MDL-86607) +### Removed + +- - The following files have been removed: + - `public/mod/feedback/edit_form.php`. + - `public/mod/feedback/use_templ_form.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/mod/folder/UPGRADING.md b/public/mod/folder/UPGRADING.md index 188df3d883e..4c8a8062d51 100644 --- a/public/mod/folder/UPGRADING.md +++ b/public/mod/folder/UPGRADING.md @@ -1,5 +1,13 @@ # mod_folder Upgrade notes +## 5.2dev + +### Removed + +- - The `\mod_folder_renderer::htmllize_tree()` has been removed from `public/mod/folder/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Deprecated diff --git a/public/mod/forum/UPGRADING.md b/public/mod/forum/UPGRADING.md index fa41c2dbe02..7e3a9c6dd39 100644 --- a/public/mod/forum/UPGRADING.md +++ b/public/mod/forum/UPGRADING.md @@ -8,6 +8,12 @@ For more information see [MDL-86699](https://tracker.moodle.org/browse/MDL-86699) +### Removed + +- The `forum_print_discussion_header()` has been removed from `public/mod/forum/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Deprecated diff --git a/public/mod/imscp/UPGRADING.md b/public/mod/imscp/UPGRADING.md index bbf878856ba..93beb17764d 100644 --- a/public/mod/imscp/UPGRADING.md +++ b/public/mod/imscp/UPGRADING.md @@ -1,5 +1,13 @@ # mod_imscp Upgrade notes +## 5.2dev + +### Removed + +- The `imscp_libxml_disable_entity_loader()` has been removed from `public/mod/imscp/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Deprecated diff --git a/public/mod/lesson/UPGRADING.md b/public/mod/lesson/UPGRADING.md index 6e7a7fb5dc3..e6ee1f15c91 100644 --- a/public/mod/lesson/UPGRADING.md +++ b/public/mod/lesson/UPGRADING.md @@ -1,5 +1,15 @@ # mod_lesson Upgrade notes +## 5.2dev + +### Removed + +- - The following files have been removed: + - `public/mod/lesson/classes/event/highscore_added.php` + - `public/mod/lesson/classes/event/highscores_viewed.php` + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.1 ### Added diff --git a/public/mod/lti/UPGRADING.md b/public/mod/lti/UPGRADING.md index b702171ef3f..159953077c7 100644 --- a/public/mod/lti/UPGRADING.md +++ b/public/mod/lti/UPGRADING.md @@ -1,5 +1,13 @@ # mod_lti Upgrade notes +## 5.2dev + +### Removed + +- The `lti_libxml_disable_entity_loader()` has been removed from `public/mod/lti/deprecatedlib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Removed diff --git a/public/mod/quiz/UPGRADING.md b/public/mod/quiz/UPGRADING.md index 7c642782ba4..55a854d588b 100644 --- a/public/mod/quiz/UPGRADING.md +++ b/public/mod/quiz/UPGRADING.md @@ -8,6 +8,32 @@ For more information see [MDL-86916](https://tracker.moodle.org/browse/MDL-86916) +### Removed + +- - The following functions have been removed from `public/mod/quiz/deprecatedlib.php`: + - `quiz_has_question_use()` + - `quiz_update_sumgrades()` + - `quiz_update_all_attempt_sumgrades()` + - `quiz_update_all_final_grades()` + - `quiz_set_grade()` + - `quiz_save_best_grade()` + - `quiz_calculate_best_grade()` + - `quiz_calculate_best_attempt()` + - `quiz_delete_override()` + - `quiz_delete_all_overrides()` + - `quiz_add_random_questions()` + - The following functions have been removed from `public/mod/quiz/classes/output/renderer.php`: + - `\mod_quiz\output\renderer::no_questions_message()` + - `\mod_quiz\output\renderer::render_mod_quiz_links_to_other_attempts()` + - `\mod_quiz\output\renderer::render_quiz_nav_question_button()` + - `\mod_quiz\output\renderer::render_quiz_nav_section_heading()` + - The following functions have been removed from `public/mod/quiz/classes/local/structure/slot_random.php`: + - `\mod_quiz\local\structure\slot_random::set_tags()` + - `\mod_quiz\local\structure\slot_random::set_tags_by_id()` + - The `\mod_quiz\structure::is_display_number_customised()` has been removed from `public/mod/quiz/classes/structure.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/mod/scorm/report/graphs/UPGRADING.md b/public/mod/scorm/report/graphs/UPGRADING.md new file mode 100644 index 00000000000..aa1a31e9449 --- /dev/null +++ b/public/mod/scorm/report/graphs/UPGRADING.md @@ -0,0 +1,10 @@ +# scormreport_graphs Upgrade notes + +## 5.2dev + +### Removed + +- The `public/mod/scorm/report/graphs/graph.php` has been removed. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + diff --git a/public/mod/subsection/UPGRADING.md b/public/mod/subsection/UPGRADING.md index a7e06889088..ef1a866e795 100644 --- a/public/mod/subsection/UPGRADING.md +++ b/public/mod/subsection/UPGRADING.md @@ -4,7 +4,6 @@ ### Added -- A new scheduled task, `remove_existing_descriptions`, has been added. Once enabled, this task will remove the descriptions for all existing subsection instances. - - For more information see [MDL-87280](https://tracker.moodle.org/browse/MDL-87280) +- A new ad-hoc task, `migrate_subsection_descriptions_task`, has been added. This task will migrate all existing subsection descriptions into Text and media. To ensure system stability, the task processes records in batches of 100 and clears the original description upon successful migration. + For more information see [MDL-87281](https://tracker.moodle.org/browse/MDL-87281) diff --git a/public/mod/wiki/UPGRADING.md b/public/mod/wiki/UPGRADING.md index 5d3a8686ad7..2c340c6b080 100644 --- a/public/mod/wiki/UPGRADING.md +++ b/public/mod/wiki/UPGRADING.md @@ -1,5 +1,13 @@ # mod_wiki Upgrade notes +## 5.2dev + +### Removed + +- The `\mod_wiki_renderer::wiki_info()` has been removed from `public/mod/wiki/renderer.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/question/UPGRADING.md b/public/question/UPGRADING.md index ce242c01588..e21e99f12e5 100644 --- a/public/question/UPGRADING.md +++ b/public/question/UPGRADING.md @@ -8,6 +8,15 @@ For more information see [MDL-86798](https://tracker.moodle.org/browse/MDL-86798) +### Removed + +- - The following methods have been removed from `public/question/renderer.php`: + - `\core_question_bank_renderer::render_category_condition()` + - `\core_question_bank_renderer::render_category_condition_advanced()` + - `\core_question_bank_renderer::render_hidden_condition_advanced()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ### Fixed - In order to prevent re-use of question version numbers after a version is deleted, the `nextversion` column was added to `question_bank_entries`. This serves as a counter incremented each time a version is created. diff --git a/public/question/bank/UPGRADING.md b/public/question/bank/UPGRADING.md index 5047568e384..9ccaf44a3f7 100644 --- a/public/question/bank/UPGRADING.md +++ b/public/question/bank/UPGRADING.md @@ -1,5 +1,15 @@ # qbank (plugin type) Upgrade notes +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/question/engine/bank.php`: + - `\question_finder::get_questions_from_categories_with_usage_counts()` + - `\question_finder::get_questions_from_categories_and_tags_with_usage_counts()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Removed diff --git a/public/question/bank/history/UPGRADING.md b/public/question/bank/history/UPGRADING.md new file mode 100644 index 00000000000..21004efbacc --- /dev/null +++ b/public/question/bank/history/UPGRADING.md @@ -0,0 +1,10 @@ +# qbank_history Upgrade notes + +## 5.2dev + +### Removed + +- The `\qbank_history\question_history_view::display_advanced_search_form()` has been removed from `public/question/bank/history/classes/question_history_view.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + diff --git a/public/question/bank/managecategories/UPGRADING.md b/public/question/bank/managecategories/UPGRADING.md index 00204ed0a5c..c01f12c0f31 100644 --- a/public/question/bank/managecategories/UPGRADING.md +++ b/public/question/bank/managecategories/UPGRADING.md @@ -1,5 +1,19 @@ # qbank_managecategories Upgrade notes +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/question/bank/managecategories/classes/category_condition.php`: + - `\qbank_managecategories\category_condition::display_options()` + - `\qbank_managecategories\category_condition::display_options_adv()` + - `\qbank_managecategories\category_condition::display_category_form()` + - `\qbank_managecategories\category_condition::print_choose_category_message()` + - `\qbank_managecategories\category_condition::get_current_category()` + - `\qbank_managecategories\category_condition::print_category_info()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 4.5 ### Changed diff --git a/public/question/bank/statistics/UPGRADING.md b/public/question/bank/statistics/UPGRADING.md new file mode 100644 index 00000000000..13169d8a31d --- /dev/null +++ b/public/question/bank/statistics/UPGRADING.md @@ -0,0 +1,13 @@ +# qbank_statistics Upgrade notes + +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/question/bank/statistics/classes/helper.php`: + - `\qbank_statistics\helper::calculate_average_question_facility()` + - `\qbank_statistics\helper::calculate_average_question_discriminative_efficiency()` + - `\qbank_statistics\helper::calculate_average_question_discrimination_index()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + diff --git a/public/report/eventlist/UPGRADING.md b/public/report/eventlist/UPGRADING.md index d81894fb8f6..213d1b1020f 100644 --- a/public/report/eventlist/UPGRADING.md +++ b/public/report/eventlist/UPGRADING.md @@ -1,5 +1,15 @@ # report_eventlist Upgrade notes +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/report/eventlist/classes/list_generator.php`: + - `\report_eventlist_list_generator::get_core_events_list()` + - `\report_eventlist_list_generator::get_non_core_event_list()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 4.5 ### Deprecated diff --git a/public/report/log/UPGRADING.md b/public/report/log/UPGRADING.md index c8c023064b3..947992e8388 100644 --- a/public/report/log/UPGRADING.md +++ b/public/report/log/UPGRADING.md @@ -1,5 +1,13 @@ # report_log Upgrade notes +## 5.2dev + +### Removed + +- The `public/report/log/graph.php` has been removed. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.0 ### Removed diff --git a/public/reportbuilder/UPGRADING.md b/public/reportbuilder/UPGRADING.md index 820e9f31118..96fa7dc7aa3 100644 --- a/public/reportbuilder/UPGRADING.md +++ b/public/reportbuilder/UPGRADING.md @@ -38,6 +38,12 @@ For more information see [MDL-87000](https://tracker.moodle.org/browse/MDL-87000) +### Removed + +- - The `\core_reportbuilder\local\helpers\audience::get_all_audiences_menu_types()` has been removed from `public/reportbuilder/classes/local/helpers/audience.php`. - The `\core_reportbuilder\local\entities\base::get_default_table_aliases()` has been removed from `public/reportbuilder/classes/local/entities/base.php`. - The `\core_reportbuilder\local\helpers\report::get_available_columns()` has been removed from `public/reportbuilder/classes/local/helpers/report.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/repository/UPGRADING.md b/public/repository/UPGRADING.md index 34fd001401a..d15407e2cb2 100644 --- a/public/repository/UPGRADING.md +++ b/public/repository/UPGRADING.md @@ -1,5 +1,13 @@ # core_repository (subsystem / plugintype) Upgrade notes +## 5.2dev + +### Removed + +- The `\repository::get_file_size()` has been removed from `public/repository/lib.php`. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Removed diff --git a/public/repository/onedrive/UPGRADING.md b/public/repository/onedrive/UPGRADING.md index 43be31fccfa..8cf2df3d29b 100644 --- a/public/repository/onedrive/UPGRADING.md +++ b/public/repository/onedrive/UPGRADING.md @@ -1,5 +1,15 @@ # repository_onedrive Upgrade notes +## 5.2dev + +### Removed + +- - The following methods have been removed from `public/repository/onedrive/lib.php`: + - `\repository_onedrive::can_import_skydrive_files()` + - `\repository_onedrive::import_skydrive_files()` + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 4.5 ### Removed diff --git a/public/tag/UPGRADING.md b/public/tag/UPGRADING.md index 97e91aec754..b79d45b7bcd 100644 --- a/public/tag/UPGRADING.md +++ b/public/tag/UPGRADING.md @@ -1,5 +1,13 @@ # core_tag (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- The `public/tag/classes/manage_table.php` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.0 ### Changed diff --git a/public/theme/boost/UPGRADING.md b/public/theme/boost/UPGRADING.md index d6609af5204..fa99bad9930 100644 --- a/public/theme/boost/UPGRADING.md +++ b/public/theme/boost/UPGRADING.md @@ -1,5 +1,13 @@ # theme_boost Upgrade notes +## 5.2dev + +### Removed + +- - The `public/theme/boost/templates/flat_navigation.mustache` file has been removed. - The `public/theme/boost/templates/nav-drawer.mustache` file has been removed. + + For more information see [MDL-87425](https://tracker.moodle.org/browse/MDL-87425) + ## 5.1 ### Added diff --git a/public/user/UPGRADING.md b/public/user/UPGRADING.md index cf4f4d3849b..9b004d55321 100644 --- a/public/user/UPGRADING.md +++ b/public/user/UPGRADING.md @@ -1,5 +1,13 @@ # core_user (subsystem) Upgrade notes +## 5.2dev + +### Removed + +- - The `\profile_field_base::profile_field_base()` has been removed from `public/user/profile/lib.php`. - The `\core_user_renderer::unified_filter()` has been removed from `public/user/renderer.php`. + + For more information see [MDL-87426](https://tracker.moodle.org/browse/MDL-87426) + ## 5.1 ### Added