You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2022/10/31 11:57:11 UTC

[incubator-devlake] branch release-v0.14 updated: fix: the GetBlueprintPipelines pending add status filter (#3621)

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

abeizn pushed a commit to branch release-v0.14
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.14 by this push:
     new ac666113 fix: the GetBlueprintPipelines pending add status filter (#3621)
ac666113 is described below

commit ac666113a07a289de90ef5763ed97ebff7553736
Author: abeizn <zi...@merico.dev>
AuthorDate: Mon Oct 31 19:55:24 2022 +0800

    fix: the GetBlueprintPipelines pending add status filter (#3621)
    
    * feat: the GetBlueprintPipelines interface support page... params
    
    * feat: the GetBlueprintPipelines interface support page... params
    
    * fix: the GetBlueprintPipelines pending add status filter
    
    * fix: the GetBlueprintPipelines pending add status filter
---
 services/pipeline_helper.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/services/pipeline_helper.go b/services/pipeline_helper.go
index 5019b4df..cd9596cc 100644
--- a/services/pipeline_helper.go
+++ b/services/pipeline_helper.go
@@ -20,6 +20,7 @@ package services
 import (
 	"encoding/json"
 	goerror "errors"
+
 	"github.com/apache/incubator-devlake/config"
 	"github.com/apache/incubator-devlake/errors"
 	"github.com/apache/incubator-devlake/models"
@@ -106,7 +107,7 @@ func GetDbPipelines(query *PipelineQuery) ([]*models.DbPipeline, int64, errors.E
 		db = db.Where("status = ?", query.Status)
 	}
 	if query.Pending > 0 {
-		db = db.Where("finished_at is null")
+		db = db.Where("finished_at is null and status != ?", "TASK_FAILED")
 	}
 	var count int64
 	err := db.Count(&count).Error