Skip to content

the query parameter limit is not working for jobs #2426

Description

@francescoingv

Description
The url /jobs does not return a limited number of records of 20 as it should be by default.
Even if the query parameter limit is explicitly given (e.g. /jobs?limit=2) the result is not limited and all records are returned.

Steps to Reproduce
Make 3 execution requests, and then submit /jobs?limit=2
All 3 jobs will show.
For default, make 21 execution requests, and then submit /jobs

Expected behavior
By default only 20 records should return.
If the query parameter "limit" is specified, only the number of records specified must return.

Environment
Docker component: FROM geopython/pygeoapi:latest

  • OS:
  • Python version:
  • pygeoapi version: 0.25.dev0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions