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/06/16 11:01:53 UTC

[GitHub] [incubator-devlake] likyh commented on a diff in pull request #2220: Ref gitlab conn id mr 1

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: commits-unsubscribe@devlake.apache.org

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