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


##########
plugins/gitlab/tasks/mr_extractor.go:
##########
@@ -102,6 +102,7 @@ func ExtractApiMergeRequests(taskCtx core.SubTaskContext) 
error {
                                        AvatarUrl:      reviewer.AvatarUrl,
                                        WebUrl:         reviewer.WebUrl,
                                }
+                               gitlabReviewer.ConnectionId = 
data.Options.ConnectionId

Review Comment:
   why not added in line 96?



##########
plugins/gitlab/tasks/mr_enricher.go:
##########
@@ -40,7 +40,7 @@ func EnrichMergeRequests(taskCtx core.SubTaskContext) error {
        db := taskCtx.GetDal()
        clauses := []dal.Clause{
                dal.From(&models.GitlabMergeRequest{}),
-               dal.Where("project_id=?", data.Options.ProjectId),
+               dal.Where("project_id=? and connection_id = ?", 
data.Options.ProjectId, data.Options.ConnectionId),
        }
 
        cursor, err := db.Cursor(clauses...)

Review Comment:
   Line 63 and Line75 need to be added " and connection_id = ?"



##########
plugins/jira/jira.go:
##########
@@ -168,6 +168,7 @@ func (plugin Jira) MigrationScripts() []migration.Script {
                new(migrationscripts.UpdateSchemas20220527),
                new(migrationscripts.UpdateSchemas20220601),
                new(migrationscripts.UpdateSchemas20220614),
+               new(migrationscripts.UpdateSchemas20220616),

Review Comment:
   what's this?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to