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 vela get log (endpoint /api/v1/repos/+/+/builds/+/logs).

The server-side default changed from per_page=100 to per_page=10 in go-vela/server#798, so the cli arg here defaults to 100 to maintain the same behavior that users experienced before. But, now they can get additional pages of logs if there are more than 100, or they can lower the per_page amount if they want to see fewer.

Depends on:

@cognifloyd cognifloyd added the feature Indicates a new feature label Mar 28, 2023
@cognifloyd cognifloyd requested a review from a team as a code owner March 28, 2023 17:35
@cognifloyd cognifloyd self-assigned this Mar 28, 2023
@cognifloyd cognifloyd requested a review from jbrockopp March 28, 2023 17:37
@cognifloyd cognifloyd changed the title feat(log): Support paging on vela get log feat(log): Support paging on vela get log Mar 28, 2023
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
Copy link
Member Author

Implemented in #431

@cognifloyd cognifloyd closed this Apr 8, 2023
@wass3r
Copy link
Collaborator

wass3r commented Apr 8, 2023

My fault, I didn't realize you had already worked on this :(

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