Return display string in compact resource respresentations #3041
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.
Not all records have (or require) titles. However the PUI breadcrumbs for search were expecting a title, which when absent results in an error.
This is resolved by including the display string in compact results and using that as a fallback when title is not present.
Before (ao has no no title, display string not included):
After (ao has no title, includes display_string):
Steps to reproduce the issue
Create published records:
resource -> child 1 (no title) -> child 2 (title)
In PUI search for child 2 title. Will error on master branch.
Types of changes
Checklist: