Make specialists, facets, and holdings data optional via settings#291
Make specialists, facets, and holdings data optional via settings#291
Conversation
…ethods and implement conditional data fetching Co-authored-by: bertrama <2932803+bertrama@users.noreply.github.com>
…oldings? methods Co-authored-by: bertrama <2932803+bertrama@users.noreply.github.com>
|
@copilot The changes to the Primo search engine are incorrect.
A correct implementation will change the |
…ams method instead of modifying extract_facets Co-authored-by: bertrama <2932803+bertrama@users.noreply.github.com>
Fixed in commit ba36dea. Reverted the changes to |
…ehavior Co-authored-by: bertrama <2932803+bertrama@users.noreply.github.com>
|
@copilot The boolean logic for disableSplitFacets is not inverted. |
…ve_facets? directly Co-authored-by: bertrama <2932803+bertrama@users.noreply.github.com>
|
@copilot Add stub methods for Spectrum::Request::Null for the three accessor methods that return true. |
…rieve_holdings? to Spectrum::Request::Null Co-authored-by: bertrama <2932803+bertrama@users.noreply.github.com>
This chained hash lookup throws an exception when the first one retrieves nil.
|
I fixed some issues and reverted an unnecessary change. |
retrieve_specialists?,retrieve_facets?, andretrieve_holdings?accessor methods toSpectrum::Request::Requestymoduleretrieve_facets?retrieve_facets?retrieve_specialists?retrieve_holdings?Summary
All changes have been implemented successfully. The implementation allows clients to optionally disable specialists, facets, and holdings retrieval via the
settingsobject in search requests. All features default to enabled (true) for backward compatibility.Changes:
Spectrum::Request::Requestythat check the settings objectretrieve_facets?settingdisableSplitFacets: request.retrieve_facets?(as specified)Spectrum::Request::Nullthat returntruefor all three accessor methodsPrimo Implementation:
disableSplitFacetskey inparamsmethod with value fromrequest.retrieve_facets?disableSplitFacetshas the same value asrequest.retrieve_facets?(not inverted)extract_facetsproperly handles user-selected facets as intendedOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.