Skip to content

Conversation

@cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Mar 28, 2023

Adds support for the page and per_page query parameters in BuildService.GetLogs (endpoint /api/v1/repos/+/+/builds/+/logs).

BREAKING CHANGE: Calling BuildService.GetLogs now requires passing a new arg: pass either *ListOptions or nil.

Depends on go-vela/server#798

@cognifloyd cognifloyd added the feature Indicates a new feature label Mar 28, 2023
@cognifloyd cognifloyd self-assigned this Mar 28, 2023
@cognifloyd cognifloyd requested a review from a team as a code owner March 28, 2023 17:21
@cognifloyd cognifloyd changed the title feat(build): Support paging on BuildService.GetLogs feat(build): Support paging on BuildService.GetLogs Mar 28, 2023
cognifloyd added a commit to go-vela/cli that referenced this pull request Mar 28, 2023
@cognifloyd
Copy link
Member Author

Follow-up PR to review/merge once this one is merged:

@cognifloyd cognifloyd requested a review from jbrockopp March 28, 2023 17:37
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

@cognifloyd cognifloyd changed the title feat(build): Support paging on BuildService.GetLogs feat(build)!: Support paging on BuildService.GetLogs Mar 28, 2023
@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Merging #216 (dad426a) into main (6588cbb) will decrease coverage by 0.20%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
- Coverage   91.73%   91.54%   -0.20%     
==========================================
  Files          18       18              
  Lines        1379     1383       +4     
==========================================
+ Hits         1265     1266       +1     
- Misses         84       86       +2     
- Partials       30       31       +1     
Impacted Files Coverage Δ
vela/build.go 94.39% <50.00%> (-2.70%) ⬇️

@wass3rw3rk wass3rw3rk merged commit c34cd77 into main Apr 7, 2023
@wass3rw3rk wass3rw3rk deleted the log-paging branch April 7, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Indicates a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants