StackedChart items ('agree or disagree') weren't being matched by the
question search, because for these items multiple survey responses are
nested under one question code. We therefore need to compare the
query to multiple responses for these questions, using the question code
instead of the response code.
Connects #78
Demo
Testing Instructions
On staging, select some countries and click 'next'.
Enter 'expense' into the search bar - you will see three questions found.
In the Netlify preview for this PR, select some countries and click 'next'. (You can find the Netlify preview link near the merge button below - where it says, 'deploy/netlify' click the 'details' link).
Enter 'expense' into the search bar - you will see four questions found.
Select any item and enter a new search that doesn't match that item. The selected item should remain visible, and appropriate items should be found matching your query.
Overview
StackedChart items ('agree or disagree') weren't being matched by the question search, because for these items multiple survey responses are nested under one question code. We therefore need to compare the query to multiple responses for these questions, using the question code instead of the response code.
Connects #78
Demo
Testing Instructions