You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "warren830 (via GitHub)" <gi...@apache.org> on 2023/02/20 04:48:55 UTC

[GitHub] [incubator-devlake] warren830 commented on a diff in pull request #4446: Bamboo blueprint

warren830 commented on code in PR #4446:
URL: https://github.com/apache/incubator-devlake/pull/4446#discussion_r1111451873


##########
backend/plugins/bamboo/impl/impl.go:
##########
@@ -108,6 +110,43 @@ func (p Bamboo) PrepareTaskData(taskCtx plugin.TaskContext, options map[string]i
 		return nil, errors.Default.Wrap(err, "unable to get Bamboo API client instance")
 	}
 
+	if op.ProjectKey != "" {
+		var scope *models.BambooProject
+		// support v100 & advance mode
+		// If we still cannot find the record in db, we have to request from remote server and save it to db
+		db := taskCtx.GetDal()
+		err = db.First(&scope, dal.Where("connection_id = ? AND key = ?", op.ConnectionId, op.ProjectKey))

Review Comment:
    should be project_key



-- 
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