From 78cc536f54366213363bdabe0421b7199cea4314 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 29 Nov 2022 15:46:43 +0100 Subject: [PATCH] Bug fixing pagination on start index (but it is not used at the moment) --- .../server/GeoportalDataViewerServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java index c180e8d..c81b992 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java @@ -662,8 +662,8 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme LOG.info("Total Docs read from config: " + totalProjectForProfile); // FIRST QUERY TO RETRIEVE IDs - // LIMIT IS NULL MEANS THAT IT IS EQUAL TO NUMBER TOTAL OF DOCUMENTS - final Iterator projectsIDs = client.queryOnMongo(theProfileID, totalProjectForProfile, start, null, + // LIMIT IS NULL AND START = 0 MEANS THAT IT IS EQUAL TO NUMBER TOTAL OF DOCUMENTS + final Iterator projectsIDs = client.queryOnMongo(theProfileID, totalProjectForProfile, 0, null, filter); //Getting the Project IDs from the Iterable