woodpecker-ci / woodpecker

Woodpecker is a simple yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
3.94k stars 353 forks source link

Add pagination on repo pipelines view #2976

Open runephilosof-karnovgroup opened 7 months ago

runephilosof-karnovgroup commented 7 months ago

Clear and concise description of the problem

It is not possible to see list of older pipelines for a repo

Suggested solution

Add pagination on https://ci.woodpecker-ci.org/repos/3780

Alternative

Add a load more button. Although, I prefer pagination, because then you can share a link to the page and you will see the same view.

Additional context

Relevant code

Backend does have support for pagination https://github.com/woodpecker-ci/woodpecker/blob/6432109daf7e7a466c25dcc1a4f540b3dd766d94/server/api/pipeline.go#L104 The frontend store needs to support it https://github.com/woodpecker-ci/woodpecker/blob/6432109daf7e7a466c25dcc1a4f540b3dd766d94/web/src/store/pipelines.ts#L50 The frontend component needs to have a button, etc. https://github.com/woodpecker-ci/woodpecker/blob/6432109daf7e7a466c25dcc1a4f540b3dd766d94/web/src/components/repo/pipeline/PipelineList.vue

Validations

anbraten commented 7 months ago

I've create a Load more button component some time ago, could be worth using it in general: #2977

yekibud commented 3 months ago

This would be very helpful. I frequently find myself wondering what happened to a pipeline, only to find it's no longer available to inspect in the UI or CLI. I'll add it to my personal contributor list to look into, but unlikely to get to it for a while.