[ECOMMERCE-543] Commerce tools: queries search only within 20 first items Created: 30/Mar/23  Updated: 14/Dec/23  Resolved: 30/Nov/23

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

Type: Improvement Priority: Major
Reporter: Jonathan Ayala Assignee: Alberto Soto
Resolution: Fixed Votes: 1
Labels: cs-bk, quickwin
Remaining Estimate: Not Specified
Time Spent: 5h
Original Estimate: Not Specified

Attachments: PNG File image-2023-03-30-17-31-34-819.png     PNG File image-2023-03-30-17-46-41-342.png     PNG File image-2023-03-30-17-49-02-214.png     PNG File image-2023-11-29-21-21-33-490.png     PNG File image-2023-11-29-21-30-07-292.png     PNG File image-2023-11-29-23-07-49-641.png    
Issue Links:
Relates
relates to ECOMMERCE-544 Commercetools. Customise the number o... Closed
causality
dependency
is depended upon by ECOMMERCE-590 Improve pagination on the commercetoo... Open
documentation
to be documented by ECOMMERCE-602 DOCU: Commerce tools (queries search ... Closed
relation
is related to ECOMMERCE-590 Improve pagination on the commercetoo... Open
is related to ECOMMERCE-609 Port to master ECOMMERCE-543 Accepted
is related to ECOMMERCE-614 Review default limit for commercetool... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: AuthorX Support
Team: AuthorX
Work Started:
Approved:
Yes

 Description   

Steps to reproduce

Prerequisites: Having more than 20 items of a certain category in commerce tools

+ Perform a query to find products by category id: commercetools/connection/336fb6c8-c190-4977-8d31-693029dffad4

             

+ Check results: only see 20 products

             

Expected results

List containing all products of the given category

Actual results

Only 20 results are returned and queries for products beyond those 20 retrieved items aren't found

Workaround

Development notes

+  A limit number is set on 20 by default in query of API.

So we need to put a limit number in ProductPagedQueryResponse

https://git.magnolia-cms.com/projects/ADDON/repos/ecommerce/browse/magnolia-ecommerce-commercetools-connector/src/main/java/info/magnolia/ecommerce/commercetools/products/ByCategoryId.java#56


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