[ECOMMERCE-195] INVESTIGATION. Findbar search doesn’t find all products in commercetools Created: 09/Apr/19  Updated: 06/May/19  Resolved: 23/Apr/19

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Neutral
Reporter: Antonín Juran Assignee: Nguyen Phung Chi
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 2d 5h
Original Estimate: Not Specified

Issue Links:
relation
is related to ECOMMERCE-191 NoSuchMethodException will be thrown ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Documentation update required:
Yes
Date of First Response:
Epic Link: E-com improvements 1.0 - 1.1.1 - 1.2
Sprint: Add-Ons 10
Story Points: 8

 Description   

commercetools implementation of Products.All#fetch doesn't do what is expected, it returns only 500 products (it’s a commercetools maximum)

It’s used in ProductSearchResultSupplier#search method where are the products filtered (if product name contains given query string)

The implementation is quite expensive and doesn’t provide all results.

We should provide  API in e-commerce connectors for getting products by name or in general by other criteria.

Dev notes

  • Approach 1. Get all and filter
  • Approach 2. Fetch product projection to avoid memory issue
  • Approach 3. API should fetch by filter


 Comments   
Comment by Julie Legendre [ 23/Apr/19 ]

Thanks for the information nguyen.phung!

Is the Product endpoint affected too or is it completely unrelated?

Comment by Julie Legendre [ 26/Apr/19 ]

thank you

Generated at Mon Feb 12 01:41:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.