Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Суём неправильную ссылку на пайплайн #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brezhart
Copy link

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

wrong pipeline order fixed
@@ -62,7 +62,7 @@ func classifyPipelineStatus(status models.PipelineStatus) taskStatus {

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