-
New Feature
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-72295-master -
-
0
-
HQ Team International Sprint 8, HQ Team International Sprint 9, HQ Team International Sprin 10, HQ Team International CI H2-21
To help filter content in the timeline block in a meaningful and flexible way, we need to add a search box to the top of the timeline block, as outlined in red here:
For the base implementation, the search should include the following content relating to the events in the timeline block:
- Course name.
- Activity name.
- Activity type (eg quiz).
Key implementation notes/requirements:
- Utilise and update existing timeline block web services (core_calendar_get_action_events_by_courses and core_calendar_get_action_events_by_timesort) and any other relevant services/methods to fetch and repopulate the timeline block consistent with the data they already provide, but applying the search term before returning the results. See
MDL-58579for ideas/any reusable content, as it implements a similar feature for course searching (rather than activity), and there may be some overlap. - Implement the backend method(s) to perform the search on the relevant events.
- Ensure the fetching applies usual checks to ensure only those events intended for the user are returned.
- The other filters/layout options applied in the block should be maintained when the web service returns the results, as should pagination/results size.
- Investigate whether an caching is applied and/or additional caching is required. The course overview version (
MDL-58579) does have some caching.
The reason for implementing a backend search instead of just frontend searching the visible text in the block, is that the content fed to the block is paginated, and it will be more useful for students to be able to search and filter content from their whole timeline (within the filtered constraints), not just the visible content which might be as little as 5 items in a long total list.
- blocks
-
MOBILE-3913 Add search box to timeline block
- Closed
- caused a regression
-
MDL-73040 Update core_calendar_get_action_events_by_course to accept the searchvalue param
- Closed
- has a non-specific relationship to
-
MDL-58579 Allow searching / filtering of courses in myoverview
- Closed
- has been marked as being related by
-
MDL-72650 Use search_input_auto for Course overview and Timeline block
- Closed
- is blocked by
-
MDL-72275 Timeline block "sort by courses" sometimes fetches incorrect or no results for time periods
- Closed
- links to