Skip to content

Commit

Permalink
fix: no entities specified, use all entities enabled by default (#6450)
Browse files Browse the repository at this point in the history
* fix: no entities specified, use all entities enabled by default

* fix: no entities specified, use all entities enabled by default
  • Loading branch information
abeizn committed Nov 13, 2023
1 parent ba51389 commit c6c5bb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/helpers/pluginhelper/api/pipeline_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 {
Expand Down

0 comments on commit c6c5bb1

Please sign in to comment.