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 72bd5d19a fix: resolution_date is early than created_date (#4998)
72bd5d19a is described below
commit 72bd5d19a5d1643e474a7906116791a3a8b52d42
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Apr 21 17:30:50 2023 +0800
fix: resolution_date is early than created_date (#4998)
---
backend/helpers/pluginhelper/api/graphql_collector.go | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/backend/helpers/pluginhelper/api/graphql_collector.go
b/backend/helpers/pluginhelper/api/graphql_collector.go
index 67e3eca80..2007dbfc6 100644
--- a/backend/helpers/pluginhelper/api/graphql_collector.go
+++ b/backend/helpers/pluginhelper/api/graphql_collector.go
@@ -305,9 +305,6 @@ func (collector *GraphqlCollector)
ExtractExistRawData(divider *BatchSaveDivider
defer cursor.Close()
row := &RawData{}
- // get the type of query and variables
- query, variables, _ := collector.args.BuildQuery(nil)
-
// prgress
collector.args.Ctx.SetProgress(0, -1)
ctx := collector.args.Ctx.GetContext()
@@ -318,6 +315,8 @@ func (collector *GraphqlCollector)
ExtractExistRawData(divider *BatchSaveDivider
return errors.Convert(ctx.Err())
default:
}
+ // get the type of query and variables. For each iteration, the
query should be a different object
+ query, variables, _ := collector.args.BuildQuery(nil)
err = db.Fetch(cursor, row)
if err != nil {
return errors.Default.Wrap(err, "error fetching row")