Skip to content

Filtering for list endpoints #507

Open

Description

@david-crespo

We will need to able to filter list endpoints. Presumably, because these are GET endpoints, we will do this filtering through query parameters.

Example table design with filtering (Figma) image

It seems to me we will want something like the following in Nexus:

  • For each paginated endpoint, specify the fields clients can filter on and their schemas
  • Expose the above specifications in the OpenAPI spec as query parameters so clients know how to use them

Corners to cut

  • Start with only name and timestamp fields

Open questions

  • How do we do text matching on names
    • Presumably we want to keep it simple and start with something like WHERE name ILIKE '<query>%' and worry about getting fancy later

Activity

  1. davepacheco commented on Dec 13, 2021

    @davepacheco
    Collaborator

    I know we've talked a bunch about the scalability problems with this. (Basically, how do you avoid this turning into a table scan?) I can't remember if we've written this down somewhere.

  2. added
    api
    mvp
    on Jan 23, 2022
  3. added this to the MVP milestone on Jan 20, 2023
  4. removed
    mvp
    on Jan 5, 2024
  5. removed this from the MVP milestone on Mar 3, 2026
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

    api

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions