Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.5
-
MOODLE_35_STABLE
-
MOODLE_35_STABLE
-
MDL-60953-master -
Description
While the backend support for group searching (MDL-58885) is useful in that it automatically restricts the search results to those from groups the user can access, we can give more benefit for students if we actually expose a user interface to search by group, for example if you are looking at a tutor group forum, and you want to search only for posts within your group.
Selecting groups only makes sense in the context of a single course or more specific search than that (activity, block), because groups are per-course.
I propose this works as follows:
- A new Groups autocomplete box in the search form filter section, similar to the existing 'Courses' and 'Areas' boxes.
- The new option only displays if you have chosen to filter results to a specific course or activity within a course (using the new search within option,
MDL-60880). It also doesn't display when you select a specific activity, if the specific activity does not have group mode enabled (separate/visible groups). - When the field is available, all groups in the course are available for selection. (I originally wanted to make this dependent on the option chosen in the dropdown but it is too complicated, because users can change the fields in either order.)
- Default option will be empty, i.e. all groups; this will show results from any group, and also results that don't have an associated group.
Note: One issue with this feature is that unlike MDL-58885, this will produce visibly wrong results if the relevant search areas have not been reindexed since the schema change to add groupid was applied. This means we could do with a better way to reindex a single search area (without deleting it) so that administrators can reindex after the upgrade (or maybe we could even do it automatically although I'm hesitant about that). I've submitted MDL-60981 to add that feature.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-60981 core_search: UI to gradually reindex a single area
-
- Closed
-
- is blocked by
-
MDL-58885 Global search: Add group support
-
- Closed
-
-
MDL-60880 core_search: Allow search of specific context
-
- Closed
-
- Testing discovered
-
MDL-62013 Labels are not visible after hideIf conditions are not satisfied in theme_clean
-
- Closed
-