Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-543

Commerce tools: queries search only within 20 first items

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.6
    • 1.3.5
    • None
    • Yes
    • Yes
    • Yes

      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

        Acceptance criteria

          1. image-2023-11-29-23-07-49-641.png
            430 kB
            Alberto Soto
          2. image-2023-11-29-21-30-07-292.png
            765 kB
            Alberto Soto
          3. image-2023-11-29-21-21-33-490.png
            730 kB
            Alberto Soto
          4. image-2023-03-30-17-49-02-214.png
            206 kB
            Thuy To
          5. image-2023-03-30-17-46-41-342.png
            111 kB
            Thuy To
          6. image-2023-03-30-17-31-34-819.png
            243 kB
            Thuy To

              asoto Alberto Soto
              jayala Jonathan Ayala
              AuthorX
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 5h
                  5h