Skip to content

Conversation

@JayCeeJr
Copy link
Contributor

Return the last 3 builds related to the deployment in the deployment list.

Related Issue: go-vela/community#364
Depends on: go-vela/types#193

@JayCeeJr JayCeeJr requested a review from a team as a code owner August 19, 2021 19:16
@codecov
Copy link

codecov bot commented Aug 19, 2021

Codecov Report

Merging #471 (c51abc8) into master (6dbd968) will increase coverage by 0.17%.
The diff coverage is 77.02%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #471      +/-   ##
==========================================
+ Coverage   50.98%   51.15%   +0.17%     
==========================================
  Files         149      149              
  Lines       11218    11291      +73     
==========================================
+ Hits         5719     5776      +57     
- Misses       5300     5316      +16     
  Partials      199      199              
Impacted Files Coverage Δ
api/deployment.go 0.00% <0.00%> (ø)
database/postgres/build_list.go 90.55% <100.00%> (+2.79%) ⬆️
database/sqlite/build_list.go 90.62% <100.00%> (+2.62%) ⬆️

Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

Looks like there are conflicts in the go.sum file.

Could we get those resolved?

https://github.com/go-vela/server/pull/471/conflicts

@JayCeeJr JayCeeJr requested a review from jbrockopp September 29, 2021 01:55
go.mod Outdated
@@ -1,5 +1,7 @@
module github.com/go-vela/server

replace github.com/go-vela/types => github.com/JayCeeJr/types v0.9.1-beta
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this line be removed?

Looks like go-vela/types#193 was merged 👍

So I think you could vendor in the latest changes from that repo instead of this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll pull that line out

jbrockopp
jbrockopp previously approved these changes Sep 30, 2021
Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

jbrockopp
jbrockopp previously approved these changes Oct 4, 2021
Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@matt-fevold matt-fevold left a comment

Choose a reason for hiding this comment

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

LGTM, minor question on why 3 builds and not say 1 or 10, but that's just my own curiosity. also looks like there's more go.mod conflicts so once those are resolved I'll approve.

Table(constants.TableBuild).
Select("*").
Where(filters).
Limit(3).
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the motivation behind 3?

Copy link
Contributor

@matt-fevold matt-fevold left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

@jbrockopp jbrockopp merged commit f378acd into go-vela:master Oct 13, 2021
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.

5 participants