rode / grafeas-elasticsearch

An implementation of the Grafeas storage backend based on Elasticsearch
Apache License 2.0
12 stars 5 forks source link

For paginated results, the page token for the final page should be an empty string #66

Closed alexashley closed 3 years ago

alexashley commented 3 years ago

Currently, the last set of results in a series of pages includes a page token with a PIT and from value. Since there are no further results, paging beyond the last page just returns an empty result set.

Clients can check for that and end the pagination requests, but it would be ideal if the last page token was empty as a way to indicate that there are no more results.