woodpecker-ci / woodpecker

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

Add filter to list repository pipelines API #4416

Open 6543 opened 2 days ago

6543 commented 2 days ago

we currently filter thing on the client side:

https://github.com/woodpecker-ci/woodpecker/blob/ce8cd029b4cbc9035bd4572c2b30af5bd128a079/web/src/views/repo/RepoPullRequest.vue#L27-L40

this makes it possible to filter server side in an upcomming pull addressing the frontend

anbraten commented 2 days ago

We still need to filter on the client though to get reactive queries updating on changes coming from the sse stream.

6543 commented 2 days ago

:point_up: well yes but we also need it from the server as getting a random count of entry's even if there should exist more ... is bad

e.g: https://ci.woodpecker-ci.org/repos/3780/branches/main

-> somethimes it just displays 2 ... or 3 ... or some other random number

6543 commented 2 days ago

e.g. https://ci.woodpecker-ci.org/repos/3780/branches/bun / https://ci.woodpecker-ci.org/repos/3780/pull-requests/3676

but we have https://ci.woodpecker-ci.org/repos/3780/pipeline/15602 ....