You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/07/23 10:29:37 UTC

(incubator-devlake) 01/01: fix(helpers): use `isIncremental` instead of `SyncPolicy.FullSync`

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

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

commit e5adb92105581f401806044d61447c7a8f8596a4
Author: d4x1 <15...@qq.com>
AuthorDate: Tue Jul 23 18:29:27 2024 +0800

    fix(helpers): use `isIncremental`  instead of `SyncPolicy.FullSync`
---
 backend/helpers/pluginhelper/api/api_collector_stateful.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/backend/helpers/pluginhelper/api/api_collector_stateful.go b/backend/helpers/pluginhelper/api/api_collector_stateful.go
index 2c1086bbc..09c1032a7 100644
--- a/backend/helpers/pluginhelper/api/api_collector_stateful.go
+++ b/backend/helpers/pluginhelper/api/api_collector_stateful.go
@@ -190,8 +190,7 @@ func NewStatefulApiCollectorForFinalizableEntity(args FinalizableApiCollectorArg
 		return nil, err
 	}
 
-	syncPolicy := args.Ctx.TaskContext().SyncPolicy()
-	if args.CollectUnfinishedDetails == nil || (syncPolicy != nil && syncPolicy.FullSync) {
+	if args.CollectUnfinishedDetails == nil || !isIncremental {
 		return manager, nil
 	}