You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/11/28 06:42:13 UTC

[GitHub] [incubator-devlake] likyh commented on a diff in pull request #3813: feat: add collector_meta and startFrom for jira

likyh commented on code in PR #3813:
URL: https://github.com/apache/incubator-devlake/pull/3813#discussion_r1033173300


##########
plugins/jira/tasks/epic_collector.go:
##########
@@ -53,12 +53,7 @@ func CollectEpics(taskCtx core.SubTaskContext) errors.Error {
 	if err != nil {
 		return err
 	}
-	since := data.Since
 	jql := "ORDER BY created ASC"
-	if since != nil {
-		// prepend a time range criteria if `since` was specified, either by user or from database
-		jql = fmt.Sprintf("updated >= '%s' %s", since.Format("2006/01/02 15:04"), jql)
-	}
 	collector, err := helper.NewApiCollector(helper.ApiCollectorArgs{

Review Comment:
   Because now `data.startFrom` means `created>%s`. But issue created after `data.startFrom` may use the epics created before `data.startFrom`.
   
   In the old logic, Incremental is always false, So I think it is not correct here.
   
   And epic can collect 100 per page and it's not too big to collect incrementally. So I delete them.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org