Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(headless): don't leak pagination state to productSuggest call #4667

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

alexprudhomme
Copy link
Contributor

@alexprudhomme alexprudhomme commented Nov 11, 2024

https://coveord.atlassian.net/browse/KIT-3660

For some context,

Initially the ticket was "stop culling productSuggest to 5". It could not be done since the pagination part of the state was overwriting the perPage value for the productSuggest call (a feature from CAPI). So let's say there was 25 products in the page, there would be 25 product suggesting since both call were using the same pagination.

Pagination is useless for now in productSuggest so we can simply remove it from the request.

Copy link

github-actions bot commented Nov 11, 2024

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 243.8 243.8 0
commerce 355 355 0
search 414.9 414.9 0
insight 406.2 406.2 0
recommendation 256.1 256.1 0
ssr 408.8 408.8 0
ssr-commerce 372.7 372.7 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

@alexprudhomme alexprudhomme changed the title fix(headless): don't cull product suggestions to 5 fix(headless): don't leak pagination state to productSuggest call Jan 17, 2025
@alexprudhomme alexprudhomme marked this pull request as ready for review January 17, 2025 16:14
@alexprudhomme alexprudhomme requested a review from a team as a code owner January 17, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants