Skip to content

Conversation

@brezhart
Copy link

При выборе какой пайплайн отобразить на фронте, почему-то выбирался первый по времени. Хотя очевидно что хочется показывать тот, что был последним.

wrong pipeline order fixed
func pipelineLess(left *models.Pipeline, right *models.Pipeline) bool {
if classifyPipelineStatus(left.Status) == classifyPipelineStatus(right.Status) {
return left.StartedAt.Before(right.StartedAt)
return left.StartedAt.After(right.StartedAt)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это сломает зелёные пайплайны, для них нужно как раз брать первый

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants