[arvados-workbench2] updated: 2.6.3-43-g32e9b073

git repository hosting git at public.arvados.org
Wed Aug 2 22:27:50 UTC 2023


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

       via  32e9b073f9a153a02cecd6adb902b3bfa36e2ff3 (commit)
      from  abc9ef71a341f72c061c6fc8b0276fcf9937c411 (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 32e9b073f9a153a02cecd6adb902b3bfa36e2ff3
Author: Stephen Smith <stephen at curii.com>
Date:   Wed Aug 2 18:27:38 2023 -0400

    20219: Better variable name
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen 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 9da7d1b9..383de53d 100644
--- a/src/store/process-logs-panel/process-logs-panel-actions.ts
+++ b/src/store/process-logs-panel/process-logs-panel-actions.ts
@@ -141,18 +141,18 @@ const loadContainerLogFileContents = async (logFilesWithProgress: FileWithProgre
             return Promise.all([logService.getLogFileContents(process.containerRequest.uuid, file, lastByte, file.size-1)]);
         }
     })).then((res) => {
-        if (res.length && res.every(promise => (promise.status === 'rejected'))) {
+        if (res.length && res.every(promiseResult => (promiseResult.status === 'rejected'))) {
             // Since allSettled does not pass promise rejection we throw an
             //   error if every request failed
             return Promise.reject("Failed to load logs");
         }
-        return res.filter((one): one is PromiseFulfilledResult<LogFragment[]> => (
+        return res.filter((promiseResult): promiseResult is PromiseFulfilledResult<LogFragment[]> => (
             // Filter out log files with rejected promises
             //   (Promise.all rejects on any failure)
-            one.status === 'fulfilled' &&
+            promiseResult.status === 'fulfilled' &&
             // Filter out files where any fragment is empty
             //   (prevent incorrect snipline generation or an un-resumable situation)
-            !!one.value.every(logFragment => logFragment.contents.length)
+            !!promiseResult.value.every(logFragment => logFragment.contents.length)
         )).map(one => one.value)
     })).map((logResponseSet)=> {
         // For any multi fragment response set, modify the last line of non-final chunks to include a line break and snip line

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list