From 0fa9b22cc42cc81eac42f1915fecbd526c5653d4 Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Tue, 22 Mar 2022 15:35:02 +0200 Subject: [PATCH 1/2] Updated condition for batch token assignation in session --- Model/Service/Merchandise/RequestParamsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Service/Merchandise/RequestParamsService.php b/Model/Service/Merchandise/RequestParamsService.php index 8a9ca0e..a67c4a2 100644 --- a/Model/Service/Merchandise/RequestParamsService.php +++ b/Model/Service/Merchandise/RequestParamsService.php @@ -199,7 +199,7 @@ public function createRequestParams(FacetInterface $facets, $pageNumber, $limit) $batchModel = $this->resultSessionService->getBatchModel(); if ($batchModel != null && ($batchModel->getLastUsedLimit() == $limit) - && ($batchModel->getLastFetchedPage() == $pageNumber)) { + && ($batchModel->getLastFetchedPage() == $pageNumber - 1)) { $token = $batchModel->getBatchToken(); } From ddcdb0ead4cd571c5b8bd11c9a52c4f22b7a9a7b Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Wed, 23 Mar 2022 14:19:45 +0200 Subject: [PATCH 2/2] Bump version and update CHANGELOG.md --- CHANGELOG.md | 3 +++ composer.json | 2 +- etc/module.xml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc7908..46e070e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. +### 4.0.3 +* Fix GraphQl response when querying the same page more than once + ### 4.0.2 * Fix pagination when CM is disabled diff --git a/composer.json b/composer.json index 268236d..a076e24 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "nosto/module-nostocmp", "description": "Nosto Category Merchandising extension for Magento 2", "type": "magento2-module", - "version": "4.0.2", + "version": "4.0.3", "require-dev": { "magento-ecg/coding-standard": "3.*", "magento/module-store": "101.1.2", diff --git a/etc/module.xml b/etc/module.xml index 6e8ce86..43cc1da 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -37,7 +37,7 @@ - +