-
Notifications
You must be signed in to change notification settings - Fork 11
[CSL-3151] Update search results load to v2 api #329
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
[CSL-3151] Update search results load to v2 api #329
Conversation
mocca102
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to update the types in tracker.d.ts as well
mocca102
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good just left small comments
jjl014
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty good to me!
Just left a couple comments and questions. Lmk what you think!
src/modules/tracker.js
Outdated
| resultCount = numResults || result_count, | ||
| customer_ids, | ||
| item_ids, | ||
| resultCount = numResults || result_count || 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add in an extra layer of logic here as an extra precaution before defaulting to 0? We could probably use the length of customerIds / itemIds
resultCount = numResults || result_count || customerIds?.length || itemIds?.length || 0
What do you think?
(out of scope for this story, but maybe we can do this for browse load and rec views as well if we think it makes sense 😛)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we want to move forward in making the change mentioned above?
jjl014
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for working on this and making the updates!
Things are looking great from what I can tell. Just left a follow-up comment, but otherwise I think this is ready to be shipped 🔥 🚢
src/modules/tracker.js
Outdated
| resultCount = numResults || result_count, | ||
| customer_ids, | ||
| item_ids, | ||
| resultCount = numResults || result_count || 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we want to move forward in making the change mentioned above?
No description provided.