
Description
Version used
1.5.4
Describe the bug
When using a taxonomy picker filter for a term set with multiple levels, if a child term is selected using taxonomy picker search and then a level 1 term is selected in the UI, only the level 1 term is displayed in the taxonomy picker after applying the filter.
To Reproduce
Steps to reproduce the behavior:
Prerequisite - set up a data visualizer web part to a SharePoint source, add a data filter web part and configure a taxonomy picker filter.
- Configure a taxonomy picker using a taxonomy with multiple levels (default settings - use OR between filters instead of default of AND when configuring filter, allow multiple filter values). In our example we are using a Geography term set which has continents as level 1 terms and countries as level 3 terms.
- Use the taxonomy filter search to search for an L3 term. We search for 'Canada' which is a L3 term under America. Click on the search result. You will see Canada added as a filter (we have not yet clicked Apply to filter the search results)
Note: use search to find an L2/L3 term without first expanding the L1 containing the term. If we view the L3 term in the UI before running these steps, we don't see an issue. Looks like a data load issue possibly. - Select an L1 term in the filter UI. In our example we select AFRICA
- Click Apply to apply both filters
Expected behavior
Both AFRICA and Canada are displayed as filters in the filter web part.
Actual Result: Only AFRICA (the L1 term) is displayed in the filter web part
Screenshots
Searching for 'Canada'
After searching for Canada and manually selecting AFRICA - before clicking Apply
After clicking Apply - note that both filters are displayed in the Data Visualizer web part, and search results are filtered correctly, but filter only shows AFRICA.
Desktop (please complete the following information):
- Chrome
Additional context
Also an issue in Aequos 1.4.1 and may be related to issue 66, which we also still see in V 1.5.4