This is an automated email from the ASF dual-hosted git repository.
abeizn 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 b2bd3b344 fix(helpers): use `isIncremental` instead of
`SyncPolicy.FullSync` (#7773)
b2bd3b344 is described below
commit b2bd3b344fc889fce78ee7acd63f0031da2dccc3
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
}