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

github-bot pushed a commit to branch release-v1.0-auto-cherry-pick-7773
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit cb20835a04414c26264f9f66a939865189285648
Author: Lynwee <[email protected]>
AuthorDate: Tue Jul 23 19:01:11 2024 +0800

    fix(helpers): use `isIncremental`  instead of `SyncPolicy.FullSync` (#7773)
---
 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
        }
 

Reply via email to