You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2022/09/29 15:43:19 UTC

[incubator-devlake] branch main updated: fix: duration only cal how long beganAt to now when status is running or created (#3265)

This is an automated email from the ASF dual-hosted git repository.

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 2211d0ac fix: duration only cal how long beganAt to now when status is running or created (#3265)
2211d0ac is described below

commit 2211d0ac94e6ee7b80774094e5577a073cb39e81
Author: likyh <l...@likyh.com>
AuthorDate: Thu Sep 29 23:43:14 2022 +0800

    fix: duration only cal how long beganAt to now when status is running or created (#3265)
    
    Co-authored-by: linyh <ya...@meri.co>
---
 config-ui/src/pages/blueprints/blueprint-detail.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/pages/blueprints/blueprint-detail.jsx b/config-ui/src/pages/blueprints/blueprint-detail.jsx
index 9e01726b..56586c6b 100644
--- a/config-ui/src/pages/blueprints/blueprint-detail.jsx
+++ b/config-ui/src/pages/blueprints/blueprint-detail.jsx
@@ -336,7 +336,7 @@ const BlueprintDetail = (props) => {
         duration:
           p.beganAt && p.finishedAt
             ? dayjs(p.beganAt).from(p.finishedAt, true)
-            : p.beganAt
+            : p.beganAt && [TaskStatus.RUNNING, TaskStatus.CREATED].includes(p?.status)
             ? dayjs(p.beganAt).toNow(true)
             : ' - '
       }))