Open-EO / Open-EO/openeo-python-driver

Pagination reports next page, but no additional data is available

Open
#350 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
12
Forks
8
Avg merge
6d 3h
Merged PRs (30d)
4

Description

I have 6 batch jobs.
https://openeo-dev.vito.be/openeo/1.2/jobs?limit=2&page=2 returns a next link with href https://openeo-dev.vito.be/openeo/1.2/jobs?limit=2&page=3
That link should not exist because https://openeo-dev.vito.be/openeo/1.2/jobs?limit=2&page=3 returns an empty job list

I think I remember a similar issue in STAC where ElasticSearch wasn't able to determine whether there are more results and as such also always returned an additional empty last page...

Origin: https://github.com/Open-EO/openeo-python-driver/issues/332#issuecomment-2524166355

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the jobs endpoint requests for page 2 and page 3 with limit=2, then trace the pagination logic serving /openeo/1.2/jobs. Compare its next-link handling with the related STAC pagination behavior and Elasticsearch result handling. Done when the response omits a next link when the following page has no jobs.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.