Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support paging in job listings #959

Closed
soxofaan opened this issue Dec 3, 2024 · 1 comment
Closed

Support paging in job listings #959

soxofaan opened this issue Dec 3, 2024 · 1 comment
Assignees

Comments

@soxofaan
Copy link
Member

soxofaan commented Dec 3, 2024

We're getting in trouble with user job listings getting too large, so we need to implement paging in job listings

related

@soxofaan
Copy link
Member Author

soxofaan commented Dec 6, 2024

paging support is now just deployed to CDSE dev and works there:

>>> connection.get("/jobs", params={"limit": 3, "page": 1}).json()
{'jobs': [
   {'id': 'j-241119233b06409aa3e739d58330caa0', ...}
  {'id': 'j-2411193d9701425a92426664cb984de2', ...}
  {'id': 'j-241119d9ff504e28b1a9f59d8e1a2f50', ...}
],
 'links': [{'href': 'https://openeo......copernicus.eu/openeo/1.2/jobs?limit=3&page=2',
   'rel': 'next'}]}

Only 3 jobs are listed (from total of a lot more), and there is a link to the next "page"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant