[arvados-workbench2] updated: 2.4.0-376-g8b6cc8ee

git repository hosting git at public.arvados.org
Tue Dec 13 19:23:39 UTC 2022


Summary of changes:
 src/store/process-logs-panel/process-logs-panel-actions.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

       via  8b6cc8ee0934b5b3e0587d4aaaf5f2130a7606d3 (commit)
      from  fea546c92e3a63f0435a69352d4189dc89fb94aa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 8b6cc8ee0934b5b3e0587d4aaaf5f2130a7606d3
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Tue Dec 13 20:22:21 2022 +0100

    19851: Don't rely on the API.MaxItemsPerResponse setting for calculations.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/src/store/process-logs-panel/process-logs-panel-actions.ts b/src/store/process-logs-panel/process-logs-panel-actions.ts
index e0f5a14e..16177f18 100644
--- a/src/store/process-logs-panel/process-logs-panel-actions.ts
+++ b/src/store/process-logs-panel/process-logs-panel-actions.ts
@@ -87,8 +87,8 @@ const loadContainerLogs = async (containerUuid: string, logService: LogService,
         order: requestOrderAsc,
     });
 
-    // Request the remaining, or the last 'maxPageSize' logs if necessary
-    const remainingLogs = itemsAvailable - maxPageSize;
+    // Request additional logs if necessary
+    const remainingLogs = itemsAvailable - items.length;
     if (remainingLogs > 0) {
         const { items: itemsLast } = await logService.list({
             limit: min([maxPageSize, remainingLogs]),
@@ -96,7 +96,7 @@ const loadContainerLogs = async (containerUuid: string, logService: LogService,
             order: requestOrderDesc,
             count: 'none',
         })
-        if (remainingLogs > maxPageSize) {
+        if (remainingLogs - itemsLast.length > 0) {
             const snipLine = {
                 ...items[items.length - 1],
                 eventType: LogEventType.SNIP,

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list