MDL-75359 reportbuilder: fixes for custom/user profile field elements.

Ensures cross-DB compatibility for all types of both custom and user
profile fields, specifically when they're filtered and/or aggregated.

Implement stress testing of both via appropriate report sources.
This commit is contained in:
Paul Holden
2023-07-07 14:43:24 +01:00
parent 2ef6a3b9b9
commit a75a0a596e
6 changed files with 121 additions and 64 deletions
@@ -441,8 +441,7 @@ class users_test extends core_reportbuilder_testcase {
$this->resetAfterTest();
$this->getDataGenerator()->create_custom_profile_field(['datatype' => 'text', 'name' => 'Hi', 'shortname' => 'hi']);
$user = $this->getDataGenerator()->create_user(['profile_field_hi' => 'Hello']);
$user = $this->getDataGenerator()->create_user();
$this->datasource_stress_test_columns(users::class);
$this->datasource_stress_test_columns_aggregation(users::class);