MDL-76146 gradereport_grader: remove deprecated preferences.

This commit is contained in:
Ilya Tregubov 2023-02-14 09:24:57 +08:00
parent 5cb18337cb
commit 1b8ac1ff8c
4 changed files with 30 additions and 6 deletions

View File

@ -1,6 +1,13 @@
This files describes API changes in /grade/report/*,
information provided here is intended especially for developers.
=== 4.2 ===
* 'Show grade analysis icon' setting has been removed from grader report (link is moved to grade action menu)
* 'Show locks' setting has been removed from grader report (link is moved to grade action menu)
* 'Show show/hide icons' setting has been removed from grader report (link is moved to grade action menu)
* 'Enable AJAX' interface has been deprecated for grader report
* 'Quick feedback' interface has been deprecated for grader report
=== 3.6 ===
* External function gradereport_user_external::get_grade_items now return the following information (only for course managers).
- locked: Whether the grade item is locked.

View File

@ -2984,5 +2984,27 @@ privatefiles,moodle|/user/files.php';
upgrade_main_savepoint(true, 2023020800.00);
}
if ($oldversion < 2023021700.01) {
// Remove grade_report_showquickfeedback, grade_report_enableajax, grade_report_showeyecons,
// grade_report_showlocks, grade_report_showanalysisicon preferences for every user.
$DB->delete_records('user_preferences', ['name' => 'grade_report_showquickfeedback']);
$DB->delete_records('user_preferences', ['name' => 'grade_report_enableajax']);
$DB->delete_records('user_preferences', ['name' => 'grade_report_showeyecons']);
$DB->delete_records('user_preferences', ['name' => 'grade_report_showlocks']);
$DB->delete_records('user_preferences', ['name' => 'grade_report_showanalysisicon']);
// The grade_report_showquickfeedback, grade_report_enableajax, grade_report_showeyecons,
// grade_report_showlocks, grade_report_showanalysisicon settings have been removed.
unset_config('grade_report_showquickfeedback');
unset_config('grade_report_enableajax');
unset_config('grade_report_showeyecons');
unset_config('grade_report_showlocks');
unset_config('grade_report_showanalysisicon');
// Main savepoint reached.
upgrade_main_savepoint(true, 2023021700.01);
}
return true;
}

View File

@ -3,11 +3,6 @@ information provided here is intended especially for developers.
=== 4.2 ===
* 'Show grade analysis icon' setting has been removed from grader report (link is moved to grade action menu)
* 'Show locks' setting has been removed from grader report (link is moved to grade action menu)
* 'Show show/hide icons' setting has been removed from grader report (link is moved to grade action menu)
* 'Enable AJAX' interface has been deprecated for grader report
* 'Quick feedback' interface has been deprecated for grader report
* \single_button constructor signature has been changed to manage more types than just primary buttons.
The boolean "primary" parameter has been deprecated and replaced by a more generic type allowing to use
Bootstrap styles of buttons (danger, warning...). The constructor will still manage the boolean primary

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2023021700.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2023021700.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
$release = '4.2dev (Build: 20230217)'; // Human-friendly version name