Details
-
Improvement
-
Status: Waiting for integration review
-
Minor
-
Resolution: Unresolved
-
4.1
-
None
Description
Moot Italy Visitors
- The branch used to demonstrate conversion to Report builder is at https://github.com/moodle/moodle/compare/master...dravek:MDL-73141-presentation (as mentioned during the presentation
)
This issue is about converting the Cohort listing page into using Report Builder.
The idea is to use this issue to create a presentation for the Italian Moot and explain step by step how to convert the existing cohorts listing code to a system report explaining these ideas:
- Create a new system report class and how to call it
- Reuse existing Report Builder entities
- Create custom columns (columns not present in the entity and that will just be used in this report)
- Add filters to the report
- Add conditions (fixed filters that cannot be modified from UI)
- Use parameters
- Add actions to the report (Show/Hide cohort, Edit cohort, Delete cohort, Add members to the cohort) and check permissions using callbacks
- How to apply custom CSS to report rows
- Override column names (in case column needs a different name than the one defined in the entity)
The cohort entities added in MDL-72172 should provide most of the report data