MDL-79510 report_configlog : implement filtering by plugin.

This commit is contained in:
oliviervalentin 2023-09-27 14:42:56 +02:00
parent c6e727732a
commit 634d1a3dcd
3 changed files with 12 additions and 0 deletions

View File

@ -172,6 +172,16 @@ class config_change extends base {
date::DATE_CURRENT,
]);
// Plugin filter.
$filters[] = (new filter(
text::class,
'plugin',
new lang_string('plugin', 'report_configlog'),
$this->get_entity_name(),
"COALESCE({$tablealias}.plugin, 'core')"
))
->add_joins($this->get_joins());
// Setting filter.
$filters[] = (new filter(
text::class,

View File

@ -103,6 +103,7 @@ class config_changes extends system_report {
*/
protected function add_filters(): void {
$filters = [
'config_change:plugin',
'config_change:setting',
'config_change:value',
'config_change:oldvalue',

View File

@ -37,6 +37,7 @@ Feature: In a report, admin can see configuration changes
And I should not see "<excluded>" in the "reportbuilder-table" "table"
Examples:
| field | search | plugin | setting | value | excluded |
| Plugin | folder | folder | maxsizetodownload | 2048 | quiz |
| Setting | initialnumfeedbacks | quiz | initialnumfeedbacks | 5 | maxsizetodownload |
| Setting | maxsizetodownload | folder | maxsizetodownload | 2048 | initialnumfeedbacks |
| New value | Perth | core | defaultcity | Perth | maxsizetodownload |