MBS-14005 / MBS-14079: Show containment for place areas in search (inline and not) #3584
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix MBS-14005 / Implement MBS-14079
Problem
Place search results only provide the basic area for the place. In many cases, this is not super useful information to be sure the place is the right one. For example, the MBS-14005 example is in "York" - not UK, but a district of Toronto. But nothing about Toronto or Canada is shown in the search results, so a user might well skip it thinking it has nothing to do with what they are looking for.
Solution
For inline search, our code already tried to load the containment - but we had broken it in a previous commit so that nothing was ever loaded. The first commit just fixes that.
For normal search, this just loads the data for both direct and indexed search results and changes the area column to display containment.
Testing
Manually in both inline and normal search, both indexed and direct.