Skip to content

Commit

Permalink
Merge branch 'MDL-401-master_brief_name' of https://github.com/olivie…
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Oct 31, 2023
2 parents 5059461 + 634d1a3 commit 70d0295
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ protected function get_all_filters(): array {
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ protected function add_columns(): void {
*/
protected function add_filters(): void {
$filters = [
'config_change:plugin',
'config_change:setting',
'config_change:value',
'config_change:oldvalue',
Expand Down
1 change: 1 addition & 0 deletions report/configlog/tests/behat/view_report.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit 70d0295

Please sign in to comment.