-
Improvement
-
Resolution: Fixed
-
Minor
-
4.1
-
MOODLE_401_STABLE
-
MOODLE_403_STABLE
-
This was discovered by davidmatamoros in some unit tests: it's possible for duplicate conditions and/or filters to be added to a single report:
It's typically not possible to re-create this through normal UI interactions, but can be done by replaying WS requests for managing report content. This is potentially confusing when it does happen, because having duplicate conditions/filters has no effect, and they will conflict with each other when trying to apply differing values to each (note you can have the same type of condition/filter added to a report, e.g. User > Email as both a condition and a filter, but you cannot have two User > Email conditions in the same report)
We can prevent this by implementing checks in the API and adding constraints at the database level
- has been marked as being related by
-
MDL-76901 Custom reports are inefficient in requesting persistent element data
- Closed