Skip to content

Commit c6c5bb1

Browse files
authored
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
1 parent ba51389 commit c6c5bb1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/helpers/pluginhelper/api/pipeline_plan.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package api
1919

2020
import (
2121
"fmt"
22+
2223
"github.com/apache/incubator-devlake/core/errors"
2324
plugin "github.com/apache/incubator-devlake/core/plugin"
2425
"github.com/apache/incubator-devlake/core/utils"
@@ -27,8 +28,9 @@ import (
2728
// MakePipelinePlanSubtasks generates subtasks list based on sub-task meta information and entities wanted by user
2829
func MakePipelinePlanSubtasks(subtaskMetas []plugin.SubTaskMeta, entities []string) ([]string, errors.Error) {
2930
subtasks := make([]string, 0)
31+
// if no entities specified, use all entities enabled by default
3032
if len(entities) == 0 {
31-
return subtasks, nil
33+
entities = plugin.DOMAIN_TYPES
3234
}
3335
wanted := make(map[string]bool, len(entities))
3436
for _, entity := range entities {

0 commit comments

Comments
 (0)