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

klesh 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 c6c5bb1ae fix: no entities specified, use all entities enabled by 
default (#6450)
c6c5bb1ae is described below

commit c6c5bb1aee338b04929517d7e37ba902f8a64d48
Author: abeizn <[email protected]>
AuthorDate: Mon Nov 13 18:15:55 2023 +0800

    fix: no entities specified, use all entities enabled by default (#6450)
    
    * fix: no entities specified, use all entities enabled by default
    
    * fix: no entities specified, use all entities enabled by default
---
 backend/helpers/pluginhelper/api/pipeline_plan.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/backend/helpers/pluginhelper/api/pipeline_plan.go 
b/backend/helpers/pluginhelper/api/pipeline_plan.go
index 2623765c0..ce920b168 100644
--- a/backend/helpers/pluginhelper/api/pipeline_plan.go
+++ b/backend/helpers/pluginhelper/api/pipeline_plan.go
@@ -19,6 +19,7 @@ package api
 
 import (
        "fmt"
+
        "github.com/apache/incubator-devlake/core/errors"
        plugin "github.com/apache/incubator-devlake/core/plugin"
        "github.com/apache/incubator-devlake/core/utils"
@@ -27,8 +28,9 @@ import (
 // MakePipelinePlanSubtasks generates subtasks list based on sub-task meta 
information and entities wanted by user
 func MakePipelinePlanSubtasks(subtaskMetas []plugin.SubTaskMeta, entities 
[]string) ([]string, errors.Error) {
        subtasks := make([]string, 0)
+       // if no entities specified, use all entities enabled by default
        if len(entities) == 0 {
-               return subtasks, nil
+               entities = plugin.DOMAIN_TYPES
        }
        wanted := make(map[string]bool, len(entities))
        for _, entity := range entities {

Reply via email to