-
Notifications
You must be signed in to change notification settings - Fork 55
Pagination on /events endpoint does not work #1071
Comments
Can't reproduce it: $ http GET "http://localhost:8080/api/v1/events?per_page=2&page=1" | jq '.[].id'
"41574765743355396c78326132764f514a496e73"
"41574765743355356c78326132764f514a496e72"
$ http GET "http://localhost:8080/api/v1/events?per_page=2&page=2" | jq '.[].id'
"41574765743355426c78326132764f514a496e71"
"41574765743236626c78326132764f514a496e70"
$ http GET "http://localhost:8080/api/v1/events?per_page=2&page=3" | jq '.[].id'
"41574765743257316c78326132764f514a496e6f"
"41574765743249516c78326132764f514a496e6e"
$ http GET "http://localhost:8080/api/v1/events?page=3&per_page=2" | jq '.[].id'
"41574765743257316c78326132764f514a496e6f"
"41574765743249516c78326132764f514a496e6e"
$ http GET "http://localhost:8080/api/v1/events?per_page=2" | jq '.[].id'
"41574765743355396c78326132764f514a496e73"
"41574765743355356c78326132764f514a496e72" |
Ok, what I can find is that max number of events is 30 (e.g. if you use |
@dragoslav Yeah, so we should fix the |
@tnolet you mean without hard limit? Reason for this is that Vamp sends request to Elasticsearch or whatever handles the events. Let's say you want last 100000 events, you could do that by sending many requests ( |
@tnolet could you describe how you would expect it to behave? tnx! |
It is impossible to get more than 30 items from the
/events
endpoint due to pagination not working as described in https://vamp.io/documentation/api/v0.9.5/using-the-api/#pagination.The
per_page
andpage
parameters seem to be completely ignored.Easy to reproduce with the following bash command or just by counting items.
Using Vamp 0.9.5 on DC/OS but this is most probably unrelated to orchestrator.
The text was updated successfully, but these errors were encountered: