klesh commented on code in PR #5691:
URL:
https://github.com/apache/incubator-devlake/pull/5691#discussion_r1267822474
##########
backend/server/services/project.go:
##########
@@ -364,5 +373,21 @@ func makeProjectOutput(baseProject *models.BaseProject)
(*models.ApiOutputProjec
if err != nil {
return nil, errors.Default.Wrap(err, "Error to get blueprint by
project")
}
+ if withLatestPipeLine {
+ if projectOutput.Blueprint == nil {
+ logger.Warn(fmt.Errorf("Blueprint is nil"), "want to
get latest pipeline, but blueprint is nil")
+ } else {
+ pipelines, pipelinesCount, err :=
GetPipelines(&PipelineQuery{
Review Comment:
It would be better to specify the `PageSize` with `1`
--
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]